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_flow")
@Data
@EqualsAndHashCode(callSuper = true)
public class BusinessFlow extends BaseEntity {

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

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

    @TableField("flow_model_id")
    @ChineseDescription("关联的工作流模型id")
    private Long flowModelId;

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

}