Add OIDC authentification in project

This commit is contained in:
Edwin ANNE 2025-10-16 21:42:50 +02:00
parent 777515f754
commit fa2c915fe1
16 changed files with 545 additions and 8 deletions

View file

@ -0,0 +1,10 @@
-- Create table setting
CREATE TABLE IF NOT EXISTS "setting" (
"setting_id" uuid PRIMARY KEY,
"key" varchar(255) UNIQUE NOT NULL,
"value" varchar(4000),
"created_at" timestamptz(6) DEFAULT now(),
"updated_at" timestamptz(6)
);

View file

@ -268,4 +268,14 @@ model Revenue {
@@index([websiteId, createdAt])
@@index([websiteId, sessionId, createdAt])
@@map("revenue")
}
model Setting {
id String @id @unique @map("setting_id") @db.Uuid
key String @unique @db.VarChar(255)
value String? @db.VarChar(4000)
createdAt DateTime? @default(now()) @map("created_at") @db.Timestamptz(6)
updatedAt DateTime? @updatedAt @map("updated_at") @db.Timestamptz(6)
@@map("setting")
}