export interface SyncHistoryRow {
  id: string;
  device_id: string;
  module: string;
  started_at: string;
  completed_at: string | null;
  status: 'pending' | 'success' | 'error';
  messages_synced: number;
  contacts_synced: number;
  conversations_synced: number;
  error_message: string | null;
  created_at: string;
}

export interface SyncHistoryInsert {
  device_id: string;
  module: string;
  started_at: string;
  status: 'pending' | 'success' | 'error';
  messages_synced?: number;
  contacts_synced?: number;
  conversations_synced?: number;
  error_message?: string;
  completed_at?: string;
}
