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 lombok.NoArgsConstructor;

import java.sql.Timestamp;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@Table("yfsjglpt_model_revision_record")
public class RevisionRecordPojo extends MpaasBasePojo {
    @RowID(sequence = "revision_record_s", type = RowIDType.UUID)
    private String id;
    private String templateName;
    private Integer version;
    private String parameterNumber;
    private String modifyDetails;
    private String templateId;
    private String preTemplateId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;
    private String parameterId;

    private Integer returnNum;

    public RevisionRecordPojo(String templateName, Integer version,
                              String parameterNumber, String modifyDetails,
                              String templateId, String preTemplateId,
                              Timestamp createTime, String parameterId,
                              Integer returnNum) {
        this.templateName = templateName;
        this.version = version;
        this.parameterNumber = parameterNumber;
        this.modifyDetails = modifyDetails;
        this.templateId = templateId;
        this.preTemplateId = preTemplateId;
        this.createTime = createTime;
        this.parameterId = parameterId;
        this.returnNum = returnNum;
    }
}
