mirror of
https://github.com/diced/zipline.git
synced 2025-12-05 20:40:12 -08:00
feat: user roles
This commit is contained in:
@@ -24,7 +24,7 @@ model User {
|
||||
password String?
|
||||
avatar String?
|
||||
token String @unique
|
||||
administrator Boolean @default(false)
|
||||
role Role @default(USER)
|
||||
|
||||
files File[]
|
||||
urls Url[]
|
||||
@@ -35,6 +35,12 @@ model User {
|
||||
IncompleteFile IncompleteFile[]
|
||||
}
|
||||
|
||||
enum Role {
|
||||
USER
|
||||
ADMIN
|
||||
SUPERADMIN
|
||||
}
|
||||
|
||||
model OAuthProvider {
|
||||
id String @id @default(cuid())
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
Reference in New Issue
Block a user