diff --git a/server/storage.ts b/server/storage.ts index 8a5d159..fdb8d8d 100644 --- a/server/storage.ts +++ b/server/storage.ts @@ -1,4 +1,4 @@ -import { type Profile, type Project } from "@shared/schema"; +import { type Profile, type Project, type ChatMessage } from "@shared/schema"; import { supabase } from "./supabase"; export interface IStorage { @@ -7,6 +7,7 @@ export interface IStorage { getProfile(id: string): Promise; getProfileByUsername(username: string): Promise; updateProfile(id: string, data: Partial): Promise; + getLeadershipProfiles(): Promise; // Projects getProjects(): Promise; @@ -29,6 +30,11 @@ export interface IStorage { getAlerts(): Promise; updateAlert(id: string, updates: any): Promise; + // Chat Messages (AI memory) + getChatHistory(userId: string, limit?: number): Promise; + saveChatMessage(id: string, userId: string, role: string, content: string): Promise; + clearChatHistory(userId: string): Promise; + // Metrics getMetrics(): Promise<{ totalProfiles: number;