Files
Momento/memento-note/prisma/migrations/20260714160000_add_agent_suggestions/migration.sql
Antigravity 30da592ba2
All checks were successful
CI / Lint, Unit Tests & Build (push) Successful in 7m3s
CI / Deploy production (on server) (push) Successful in 23s
feat(dashboard): tableau de bord Second Brain configurable avec chargement progressif
Briefing granulaire, pistes rapides puis enrichissement async, layout persisté v5,
suggestions agents, intégration Gmail et navigation sidebar alignée sur /home.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-14 16:50:53 +00:00

27 lines
979 B
SQL

-- CreateTable
CREATE TABLE "AgentSuggestion" (
"id" TEXT NOT NULL,
"userId" TEXT NOT NULL,
"topic" TEXT NOT NULL,
"reason" TEXT NOT NULL,
"suggestedRole" TEXT NOT NULL,
"suggestedType" TEXT NOT NULL DEFAULT 'researcher',
"suggestedFrequency" TEXT NOT NULL DEFAULT 'weekly',
"relatedNoteIds" TEXT NOT NULL,
"clusterId" INTEGER,
"status" TEXT NOT NULL DEFAULT 'pending',
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL,
CONSTRAINT "AgentSuggestion_pkey" PRIMARY KEY ("id")
);
-- CreateIndex
CREATE INDEX "AgentSuggestion_userId_status_idx" ON "AgentSuggestion"("userId", "status");
-- CreateIndex
CREATE UNIQUE INDEX "AgentSuggestion_userId_clusterId_key" ON "AgentSuggestion"("userId", "clusterId");
-- AddForeignKey
ALTER TABLE "AgentSuggestion" ADD CONSTRAINT "AgentSuggestion_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;