package com.dsk.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dsk.common.annotation.Excel;
import com.dsk.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 项目用户关联对象 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) */
    @Excel(name = "项目id(business_info表id)")
    private Integer businessId;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 是否创建人(1 是,0 否) */
    @Excel(name = "是否创建人(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;
    }
}
