mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
User role access.
This commit is contained in:
@@ -59,7 +59,7 @@ model User {
|
||||
email String? @unique
|
||||
emailVerified DateTime? @map("email_verified")
|
||||
image String?
|
||||
role String?
|
||||
role Role
|
||||
password String?
|
||||
authMethod String? @map("auth_method")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
@@ -71,6 +71,12 @@ model User {
|
||||
@@map("users")
|
||||
}
|
||||
|
||||
enum Role {
|
||||
pending
|
||||
user
|
||||
admin
|
||||
}
|
||||
|
||||
model Agent {
|
||||
id String @id @default(cuid())
|
||||
slug String @unique
|
||||
|
||||
Reference in New Issue
Block a user