package tech.easyflow.approval.entity.base;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;

/**
 * 审批流程步骤基础字段。
 */
public class ApprovalFlowStepBase implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Generator, value = "snowFlakeId", comment = "主键")
    private BigInteger id;

    @Column(comment = "流程ID")
    private BigInteger flowId;

    @Column(comment = "步骤顺序")
    private Integer stepNo;

    @Column(comment = "步骤名称")
    private String stepName;

    @Column(comment = "审批对象类型")
    private String assigneeType;

    @Column(comment = "审批对象ID")
    private BigInteger assigneeTargetId;

    @Column(comment = "审批对象编码")
    private String assigneeTargetCode;

    @Column(comment = "审批对象名称")
    private String assigneeTargetName;

    @Column(comment = "创建时间")
    private Date created;

    @Column(comment = "创建者")
    private BigInteger createdBy;

    @Column(comment = "修改时间")
    private Date modified;

    @Column(comment = "修改者")
    private BigInteger modifiedBy;

    public BigInteger getId() {
        return id;
    }

    public void setId(BigInteger id) {
        this.id = id;
    }

    public BigInteger getFlowId() {
        return flowId;
    }

    public void setFlowId(BigInteger flowId) {
        this.flowId = flowId;
    }

    public Integer getStepNo() {
        return stepNo;
    }

    public void setStepNo(Integer stepNo) {
        this.stepNo = stepNo;
    }

    public String getStepName() {
        return stepName;
    }

    public void setStepName(String stepName) {
        this.stepName = stepName;
    }

    public String getAssigneeType() {
        return assigneeType;
    }

    public void setAssigneeType(String assigneeType) {
        this.assigneeType = assigneeType;
    }

    public BigInteger getAssigneeTargetId() {
        return assigneeTargetId;
    }

    public void setAssigneeTargetId(BigInteger assigneeTargetId) {
        this.assigneeTargetId = assigneeTargetId;
    }

    public String getAssigneeTargetCode() {
        return assigneeTargetCode;
    }

    public void setAssigneeTargetCode(String assigneeTargetCode) {
        this.assigneeTargetCode = assigneeTargetCode;
    }

    public String getAssigneeTargetName() {
        return assigneeTargetName;
    }

    public void setAssigneeTargetName(String assigneeTargetName) {
        this.assigneeTargetName = assigneeTargetName;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public BigInteger getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(BigInteger createdBy) {
        this.createdBy = createdBy;
    }

    public Date getModified() {
        return modified;
    }

    public void setModified(Date modified) {
        this.modified = modified;
    }

    public BigInteger getModifiedBy() {
        return modifiedBy;
    }

    public void setModifiedBy(BigInteger modifiedBy) {
        this.modifiedBy = modifiedBy;
    }
}
