Initial commit: LexMind - Plataforma Jurídica Inteligente

This commit is contained in:
bigtux
2026-02-10 15:46:26 -03:00
commit 08bd4f039d
108 changed files with 75782 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
-- CreateTable
CREATE TABLE "ProcessAnalysis" (
"id" TEXT NOT NULL,
"userId" TEXT NOT NULL,
"title" TEXT NOT NULL,
"filename" TEXT NOT NULL,
"fileKey" TEXT NOT NULL,
"fileSize" INTEGER NOT NULL,
"extractedText" TEXT NOT NULL,
"analysis" TEXT NOT NULL,
"summary" TEXT,
"status" TEXT NOT NULL DEFAULT 'PENDING',
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL,
CONSTRAINT "ProcessAnalysis_pkey" PRIMARY KEY ("id")
);
-- AddForeignKey
ALTER TABLE "ProcessAnalysis" ADD CONSTRAINT "ProcessAnalysis_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;