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_cursor")
public class IssueSyncCursor extends CloudAuditEntity {

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

    private String tableName;

    /** UP/DOWN */
    private String direction;

    private Long lastSyncVersion;

    private LocalDateTime lastSyncTime;
}
