update oauth

This commit is contained in:
lendry
2026-06-25 14:23:55 +03:00
parent c3e06e03cf
commit 1796008a28
21 changed files with 340 additions and 64 deletions

View File

@@ -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 {