Added basic user roles
This commit is contained in:
@ -8,11 +8,17 @@ datasource db {
|
||||
relationMode = "prisma"
|
||||
}
|
||||
|
||||
enum UserRole {
|
||||
USER
|
||||
ADMIN
|
||||
}
|
||||
|
||||
model User {
|
||||
id String @id @default(cuid())
|
||||
name String?
|
||||
email String? @unique
|
||||
emailVerified DateTime?
|
||||
role UserRole @default(USER)
|
||||
image String?
|
||||
ttsDefaultVoice Int @default(1)
|
||||
ttsEnabledVoice Int @default(1048575)
|
||||
|
Reference in New Issue
Block a user