/**
 * 一条入档消息(写入 SQLite message 表的 row 投影)。
 */
export interface ArchiveMessage {
  channelId: number;
  roomId: string;
  roomName: string | null;
  msgTable: string;
  localId: number;
  serverId: string | null;
  localType: number;
  senderWxid: string | null;
  senderRemark: string | null;
  senderNickName: string | null;
  senderDisplayName: string | null;
  createTime: number;
  content: string | null;
  rawHex: string | null;
}

/**
 * 每群水位 (sync_state 表的 row)。
 */
export interface SyncState {
  roomId: string;
  roomName: string | null;
  lastSyncTs: number;
  lastSyncCount: number;
  totalCount: number;
  lastSyncAt: number;
  lastError: string | null;
}
