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,12 @@
-- CreateTable
CREATE TABLE "User" (
"id" TEXT NOT NULL PRIMARY KEY,
"username" TEXT NOT NULL,
"password" TEXT NOT NULL,
"displayName" TEXT NOT NULL,
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" DATETIME NOT NULL
);
-- CreateIndex
CREATE UNIQUE INDEX "User_username_key" ON "User"("username");