add migrations
All checks were successful
Deploy / deploy (push) Successful in 40s

This commit is contained in:
Никита Круглицкий
2025-10-09 22:58:48 +06:00
parent ad71b15f81
commit 7d4fdfb2e6
3 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
-- CreateTable
CREATE TABLE "Session" (
"id" TEXT NOT NULL PRIMARY KEY,
"userId" TEXT NOT NULL,
"expiresAt" DATETIME NOT NULL,
CONSTRAINT "Session_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE CASCADE ON UPDATE CASCADE
);