package com.dsk.biz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dsk.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 项目用户关联对象 business_user
 *
 * @author lxl
 * @date 2023-05-17
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("business_user")
public class BusinessUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "id",type = IdType.INPUT)
    private Integer id;

    /** 项目id(business_info表id) */
    private Integer businessId;

    /** 部门id */
    private Long deptId;

    /** 用户id */
    private Long userId;

    /** 是否创建人(1 是,0 否) */
    private Integer isFounder;

    public BusinessUser(Integer businessId, Long deptId, Long userId, Integer isFounder) {
        this.businessId = businessId;
        this.deptId = deptId;
        this.userId = userId;
        this.isFounder = isFounder;
    }
}
