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("tstwfprocessnode")
public class TSTwfProcessNode extends Model<TSTwfProcessNode> {

    private static final long serialVersionUID=1L;

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

    /**
     * 主键
     */
    @TableField("PROCESSID")
    private String processid;

    /**
     * 创建时间
     */
    @TableField("CREATEDON")
    private LocalDateTime createdon;

    /**
     * 当前节点
     */
    @TableField("CURRENTNODE")
    private String currentnode;

    /**
     * 节点流向
     */
    @TableField("NODEFLOW")
    private String nodeflow;

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

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

    /**
     * 当前用户ID
     */
    @TableField("CURRUSERID")
    private String curruserid;

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

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


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

}
