package com.chinaweal.aiccs.aiccs.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 流程实例
 * </p>
 *
 * @author <a href="https://blog.lroyia.top">lroyia</a>
 * @since 2021-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tstwfprocess")
public class TSTwfProcess extends Model<TSTwfProcess> {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "PROCESSID", type = IdType.ASSIGN_UUID)
    private String processid;

    /**
     *  父实例ID
     */
    @TableField("PARENTPROCESSID")
    private String parentprocessid;

    /**
     * 完成时间
     */
    @TableField("COMPLETEDON")
    private LocalDateTime completedon;

    /**
     * 启动时间
     */
    @TableField("CREATEDON")
    private LocalDateTime createdon;

    /**
     * 状态
     */
    @TableField("STATUS")
    private Integer status;

    /**
     * 版本标识
     */
    @TableField("OPTLOCK")
    private Integer optlock;

    /**
     * 流程名
     */
    @TableField("DEFNAME")
    private String defname;

    /**
     * 最后更新时间
     */
    @TableField("LAUPTIME")
    private LocalDateTime lauptime;

    /**
     * 地区代码
     */
    @TableField("AREA_CODE")
    private String areaCode;

    @TableField("INDEPENDENT")
    private Integer independent;


    @Override
    protected Serializable pkVal() {
        return this.processid;
    }

}
