mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-29 16:14:43 +00:00
DB managed user
This commit is contained in:
11
prisma/migrations/20250414173201_user_model/migration.sql
Normal file
11
prisma/migrations/20250414173201_user_model/migration.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- CreateTable
|
||||
CREATE TABLE "user" (
|
||||
"id" TEXT NOT NULL,
|
||||
"email" TEXT NOT NULL,
|
||||
"password" TEXT NOT NULL,
|
||||
|
||||
CONSTRAINT "user_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "user_email_key" ON "user"("email");
|
||||
@@ -38,6 +38,12 @@ model server {
|
||||
}
|
||||
|
||||
model settings {
|
||||
id Int @id @default(autoincrement())
|
||||
uptime_checks Boolean @default(true)
|
||||
id Int @id @default(autoincrement())
|
||||
uptime_checks Boolean @default(true)
|
||||
}
|
||||
|
||||
model user {
|
||||
id String @id @default(uuid())
|
||||
email String @unique
|
||||
password String
|
||||
}
|
||||
Reference in New Issue
Block a user