chore(prisma): add missing migration for notebook hierarchy and trash
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 4s

This commit is contained in:
Antigravity
2026-05-10 12:30:18 +00:00
parent 890506d0b0
commit d85851c979

View File

@@ -0,0 +1,18 @@
-- AlterTable
ALTER TABLE "Label" ADD COLUMN "type" TEXT NOT NULL DEFAULT 'user';
-- AlterTable
ALTER TABLE "UserAISettings" ADD COLUMN "autoSave" BOOLEAN NOT NULL DEFAULT true;
-- AlterTable
ALTER TABLE "Notebook" ADD COLUMN "parentId" TEXT,
ADD COLUMN "trashedAt" TIMESTAMP(3);
-- CreateIndex
CREATE INDEX "Notebook_parentId_idx" ON "Notebook"("parentId");
-- CreateIndex
CREATE INDEX "Notebook_trashedAt_idx" ON "Notebook"("trashedAt");
-- AddForeignKey
ALTER TABLE "Notebook" ADD CONSTRAINT "Notebook_parentId_fkey" FOREIGN KEY ("parentId") REFERENCES "Notebook"("id") ON DELETE CASCADE ON UPDATE CASCADE;