package cn.axzo.workflow.core.repository.entity;

import cn.axzo.framework.data.mybatisplus.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;


/**
 * 流程历史任务信息扩展表
 *
 * @author wangli
 * @version V1.0
 * @date 2023/10/9 16:01
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "ext_ax_hi_taskinst", autoResultMap = true)
@Data
@ToString(callSuper = true)
public class ExtAxHiTaskInst extends BaseEntity<ExtAxHiTaskInst> {

    private static final long serialVersionUID = 1L;

    /**
     * 流程模型ID
     */
    @TableField("proc_inst_id")
    private String procInstId;

    /**
     * 流程任务 ID
     */
    @TableField("task_id")
    private String taskId;

    /**
     * 流程节点定义 ID
     */
    @TableField("task_definition_key")
    private String taskDefinitionKey;

    /**
     * 操作状态
     */
    @TableField("status")
    private String status;

    /**
     * 同意的人
     */
    @TableField(value = "assignee", updateStrategy = FieldStrategy.NOT_EMPTY, insertStrategy = FieldStrategy.NOT_EMPTY)
    private String assignee;

}
