package cn.stylefeng.workflow.design.modular.entity;

import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@TableName("flow_user_common_workflow")
@Data
@EqualsAndHashCode(callSuper = true)
public class UserCommonWorkflow extends BaseEntity {

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

    @TableField("user_id")
    @ChineseDescription("用户id")
    private Long userId;

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

    @TableField("fld_sort")
    @ChineseDescription("排序")
    private BigDecimal fldSort;

    @TableField(value = "tenant_id", fill = FieldFill.INSERT)
    @ChineseDescription("租户id")
    private Long tenantId;

}
