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;

/**
 * 云端下发队列（云端→本地）
 *
 * @author fyc
 * @date 2026-06-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("issue_sync_down_queue")
public class IssueSyncDownQueue extends CloudAuditEntity {

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

    private String tableName;

    /** INSERT/UPDATE/DELETE */
    private String operation;

    private String payload;

    private Long syncVersion;

    /** 0:待拉取 1:已确认 2:失败 */
    private Integer status;
}
