✨ Add user settings, improve color scheme
This commit is contained in:
@@ -42,16 +42,17 @@ model Session {
|
||||
}
|
||||
|
||||
model User {
|
||||
id String @id @default(cuid())
|
||||
id String @id @default(cuid())
|
||||
name String?
|
||||
email String? @unique
|
||||
email String? @unique
|
||||
emailVerified DateTime?
|
||||
image String?
|
||||
password String?
|
||||
salt String?
|
||||
isAdmin Boolean @default(false)
|
||||
isAdmin Boolean @default(false)
|
||||
accounts Account[]
|
||||
sessions Session[]
|
||||
settings UserSettings?
|
||||
}
|
||||
|
||||
model VerificationToken {
|
||||
@@ -67,3 +68,18 @@ model RegistrationToken {
|
||||
token String @unique
|
||||
expires DateTime
|
||||
}
|
||||
|
||||
model UserSettings {
|
||||
id String @id @default(cuid())
|
||||
userId String
|
||||
colorScheme String @default("environment") // environment, light, dark
|
||||
language String @default("en")
|
||||
searchTemplate String @default("https://google.com/search?q=%s")
|
||||
openSearchInNewTab Boolean @default(true)
|
||||
disablePingPulse Boolean @default(false)
|
||||
replacePingWithIcons Boolean @default(false)
|
||||
useDebugLanguage Boolean @default(false)
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@unique([userId])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user