interface TelegramUser {
    id: string;
    telegramId: string;
    username: string;
    firstName: string;
    lastName: string;
    lastInteraction: Date;
    createdAt: Date;
    updatedAt: Date;
    respondent: "ai" | "admin",
    conversations: Conversation[];
    balance: number;
    UserTicket: any[];
    _count?: {
        conversations: number;
        userProducts: number;
        userTransactions: number;
        UserTicket: number;
    };
    userProducts?: {
        id: string;
        product: {
            plan: string;
            firm: string;
        };
        challengeStatus: string;
        createdAt: Date;
    }[];
    userTransactions?: {
        id: string;
        transactionHash: string;
        network: string;
        value: number;
        status: "PENDING" | "CONFIRMED" | "FAILED";
        createdAt: Date;
    }[];
}
interface Conversation {
    id: string;
    telegramId: string;  // Existing property
    telegramChatId: string;  // Add this property to match usage in component
    title: string;
    messages?: Message[];
    lastInteraction: Date;
    createdAt: Date;
    updatedAt: Date;
    _count?: {  // Add this property with optional flag
        messages: number;
    }
}
interface Message {
    id: string;
    role: string;
    content: string;
    conversationId: string;
    conversation: Conversation;
    createdAt: Date;
}
interface PaginationMeta {
    total: number;
    page: number;
    limit: number;
    pages: number;
}