CREATE INDEX IF NOT EXISTS idx_history_project ON AIStudioProjectHistory(projectId); CREATE INDEX IF NOT EXISTS idx_history_created ON AIStudioProjectHistory(createdAt); ...