package tech.easyflow.chatlog.domain.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 ChatSyncCheckpointBase implements Serializable {

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

    @Column(comment = "同步编码")
    private String syncCode;

    @Column(comment = "分片键")
    private String shardKey;

    @Column(comment = "游标表名")
    private String cursorTable;

    @Column(comment = "游标时间")
    private Date cursorTime;

    @Column(comment = "游标ID")
    private BigInteger cursorId;

    @Column(comment = "最后成功时间")
    private Date lastSuccessTime;

    @Column(comment = "最后批次大小")
    private Integer lastBatchSize;

    @Column(comment = "状态")
    private String status;

    @Column(comment = "备注")
    private String remark;

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

    public BigInteger getId() {
        return id;
    }

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

    public String getSyncCode() {
        return syncCode;
    }

    public void setSyncCode(String syncCode) {
        this.syncCode = syncCode;
    }

    public String getShardKey() {
        return shardKey;
    }

    public void setShardKey(String shardKey) {
        this.shardKey = shardKey;
    }

    public String getCursorTable() {
        return cursorTable;
    }

    public void setCursorTable(String cursorTable) {
        this.cursorTable = cursorTable;
    }

    public Date getCursorTime() {
        return cursorTime;
    }

    public void setCursorTime(Date cursorTime) {
        this.cursorTime = cursorTime;
    }

    public BigInteger getCursorId() {
        return cursorId;
    }

    public void setCursorId(BigInteger cursorId) {
        this.cursorId = cursorId;
    }

    public Date getLastSuccessTime() {
        return lastSuccessTime;
    }

    public void setLastSuccessTime(Date lastSuccessTime) {
        this.lastSuccessTime = lastSuccessTime;
    }

    public Integer getLastBatchSize() {
        return lastBatchSize;
    }

    public void setLastBatchSize(Integer lastBatchSize) {
        this.lastBatchSize = lastBatchSize;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreated() {
        return null;
    }

    public void setCreated(Date created) {
    }

    public Date getModified() {
        return modified;
    }

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