package com.xdap.self_development.domain.pojo;

import com.definesys.mpaas.query.annotation.RowID;
import com.definesys.mpaas.query.annotation.RowIDType;
import com.definesys.mpaas.query.annotation.Table;
import com.definesys.mpaas.query.model.MpaasBasePojo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;

@EqualsAndHashCode(callSuper = true)
@Data
@Table("yfsjglpt_model_approval_flow")
public class ApprovalFlowPojo extends MpaasBasePojo {
    @RowID(sequence = "approval_flow_s", type = RowIDType.UUID)
    private String id;
    private String processTitle;
    private String templateId;
    private Integer currentNode; // 节点：PROOFREAD, REVIEW, COUNTERSIGN, APPROVE
    private String flowStatus;  //DRAFT(草稿)、APPROVING（审批中）、COMPLETE(已完成)、RETURNED(已撤回)、REJECTED(已拒绝)
    private Integer returnNum;
    private Integer preNode;

    private String createBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createdTime;
    private Integer flowType;
    private String explanation;
}