package com.casic.missiles.modular.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;


/**
 * <p>
 *
 * </p>
 *
 * @author lwh123
 * @since 2022-06-07
 */
@Data
@TableName("bus_tenant_dept")
public class TenantDept extends Model<TenantDept> {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 租户主键
     */
    @TableField("tenant_id")
    private Long tenantId;
    /**
     * 组织主键
     */
    @TableField("dept_id")
    private Long deptId;

    @Override
    public String toString() {
        return "TenantDept{" +
                "id=" + id +
                ", tenantId=" + tenantId +
                ", deptId=" + deptId +
                "}";
    }
}
