package com.usky.issue.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 同步任务
 *
 * @author fyc
 * @date 2026-05-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("issue_sync_task")
public class IssueSyncTask extends CloudAuditEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long configId;

    private String syncType;

    private String taskStatus;

    private String triggerMode;

    private Integer totalCount;

    private Integer processedCount;

    private Integer successCount;

    private Integer failureCount;

    private String errorSummary;

    private LocalDateTime startTime;

    private LocalDateTime finishTime;
}
