feat: add profiles session API
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
CREATE TABLE "profiles" (
|
||||
"id" TEXT PRIMARY KEY,
|
||||
"firstName" TEXT NOT NULL,
|
||||
"lastName" TEXT NOT NULL,
|
||||
"isActive" BOOLEAN NOT NULL DEFAULT TRUE,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
||||
INSERT INTO "profiles" ("id", "firstName", "lastName")
|
||||
VALUES ('admin-default-profile', 'Admin', 'General')
|
||||
ON CONFLICT DO NOTHING;
|
||||
@@ -177,6 +177,17 @@ model Constructeur {
|
||||
@@map("constructeurs")
|
||||
}
|
||||
|
||||
model Profile {
|
||||
id String @id @default(cuid())
|
||||
firstName String
|
||||
lastName String
|
||||
isActive Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@map("profiles")
|
||||
}
|
||||
|
||||
model Document {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
|
||||
Reference in New Issue
Block a user