export interface IChatLog {
    id: string; // UUID
    role: 'user' | 'assistant' | 'system';
    content: string;
    timestamp: number;
    sessionId: string;
    intent?: 'vent' | 'insight'; // Context for the message
}

export interface ISession {
    id: string; // UUID
    title: string;
    createdAt: number;
    updatedAt: number;
    status: 'active' | 'completed' | 'archived';
    tags?: string[];
}

export interface ISyncEntry {
    id?: number; // Auto-increment
    action: 'save_draft' | 'delete_entry' | 'update_settings';
    payload: any;
    timestamp: number;
    status: 'pending' | 'synced' | 'failed';
    retryCount: number;
}

export interface IDraft {
    id: string; // UUID
    sessionId: string;
    title: string;
    content: string; // Markdown
    createdAt: number;
    updatedAt: number;
    status: 'draft' | 'final';
}
