package cn.stylefeng.workflow.instance.modular.tag.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;

@TableName("flow_engine_runtime_tag")
@Data
@EqualsAndHashCode(callSuper = true)
public class RuntimeTag extends BaseEntity {

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

    @TableField("instance_id")
    @ChineseDescription("流程实例id")
    private Long instanceId;

    @TableField("user_id")
    @ChineseDescription("标签所属人的id")
    private Long userId;

    @TableField("tag_name")
    @ChineseDescription("流程标签名称")
    private String tagName;

    @TableField("tag_color")
    @ChineseDescription("流程标签的颜色")
    private String tagColor;

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

}
