package cn.stylefeng.team.project.modular.filing.entity;

import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
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 lombok.Data;
import lombok.EqualsAndHashCode;

@TableName("devops_business_excel")
@Data
@EqualsAndHashCode(callSuper = true)
public class BusinessExcel extends BaseEntity {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ChineseDescription("主键id")
    private Long id;

    @TableField("business_id")
    @ChineseDescription("所属业务id")
    private Long businessId;

    @TableField("excel_name")
    @ChineseDescription("excel名称")
    private String excelName;

    @TableField("description")
    @ChineseDescription("描述")
    private String description;

    @TableField("excel_file_id")
    @ChineseDescription("excel文件的id")
    private Long excelFileId;

    @TableField("enable_flag")
    @ChineseDescription("是否开启(Y和N)，一个业务只能同时开启一个Excel表格")
    private String enableFlag;

}