package com.sino.mci.channel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sino.mci.shared.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mci_sync_task")
public class SyncTask extends BaseEntity {

    public static final int STATUS_PENDING = 0;
    public static final int STATUS_RUNNING = 1;
    public static final int STATUS_SUCCESS = 2;
    public static final int STATUS_FAILED = 3;

    private String tenantCode;
    private String taskType;
    private String channelType;
    private Long targetId;
    private String targetCode;
    private Integer taskStatus;
    private Integer syncedCount;
    private Integer failedCount;
    private String errorMessage;
    private Integer retryCount;
    private java.time.LocalDateTime finishTime;
    private Integer deleted;
}
