chore: init database oAuth platform client schema
This commit is contained in:
parent
98f9bebbb1
commit
c7332f13a7
|
@ -261,7 +261,8 @@ model User {
|
|||
//linkedUsers User[] @relation("linked_account")*/
|
||||
|
||||
// Used to lock the user account
|
||||
locked Boolean @default(false)
|
||||
locked Boolean @default(false)
|
||||
platformOAuthClients PlatformOAuthClient[]
|
||||
|
||||
@@unique([email])
|
||||
@@unique([email, username])
|
||||
|
@ -1027,3 +1028,17 @@ model Avatar {
|
|||
@@unique([teamId, userId])
|
||||
@@map(name: "avatars")
|
||||
}
|
||||
|
||||
// Platform
|
||||
|
||||
model PlatformOAuthClient {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
client_secret String
|
||||
permissions Int
|
||||
user_ids Int[]
|
||||
users User[]
|
||||
logo String?
|
||||
redirect_uris String[]
|
||||
// add connection to Access Codes
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user