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-06-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("issue_sync_data")
public class IssueSyncData extends CloudAuditEntity {

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

    private String tableName;

    private String dataKey;

    private String payload;

    private Long syncVersion;

    /** 0:未同步 1:已推送 2:推送失败 */
    private Integer syncStatus;

    /** LOCAL/CLOUD */
    private String syncDirection;
}
