update oauth
This commit is contained in:
@@ -75,6 +75,7 @@ model User {
|
||||
chatMessages ChatMessage[]
|
||||
chatPollVotes ChatPollVote[]
|
||||
totpSecret UserTotpSecret?
|
||||
createdOAuthClients OAuthClient[] @relation("OAuthClientCreator")
|
||||
}
|
||||
|
||||
model UserTotpSecret {
|
||||
@@ -226,10 +227,14 @@ model OAuthClient {
|
||||
redirectUris String[]
|
||||
scopes OAuthClientScope[]
|
||||
isActive Boolean @default(true)
|
||||
createdById String?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
createdBy User? @relation("OAuthClientCreator", fields: [createdById], references: [id], onDelete: SetNull)
|
||||
consents OAuthConsent[]
|
||||
authCodes OAuthAuthorizationCode[]
|
||||
|
||||
@@index([createdById])
|
||||
}
|
||||
|
||||
model OAuthAuthorizationCode {
|
||||
|
||||
Reference in New Issue
Block a user