Upgraded to Next Auth v5
This commit is contained in:
@ -9,10 +9,14 @@ datasource db {
|
||||
}
|
||||
|
||||
model User {
|
||||
id String @id @default(uuid())
|
||||
username String @unique
|
||||
id String @id @default(cuid())
|
||||
name String?
|
||||
email String? @unique
|
||||
emailVerified DateTime?
|
||||
image String?
|
||||
|
||||
apiKeys ApiKey[]
|
||||
accounts Account[]
|
||||
twitchConnections TwitchConnection[]
|
||||
createdProfiles TtsProfile[]
|
||||
profileStatus TtsProfileStatus[]
|
||||
@ -21,6 +25,25 @@ model User {
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
|
||||
model Account {
|
||||
id String @id @default(cuid())
|
||||
userId String
|
||||
type String
|
||||
provider String
|
||||
providerAccountId String
|
||||
refresh_token String? @db.Text
|
||||
access_token String? @db.Text
|
||||
expires_at Int?
|
||||
token_type String?
|
||||
scope String?
|
||||
id_token String? @db.Text
|
||||
session_state String?
|
||||
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@unique([provider, providerAccountId])
|
||||
}
|
||||
|
||||
model ApiKey {
|
||||
id String @id @default(uuid())
|
||||
label String
|
||||
@ -88,7 +111,7 @@ model TtsBadgeFilter {
|
||||
|
||||
model TtsUsernameFilter {
|
||||
username String
|
||||
white Boolean
|
||||
tag String
|
||||
|
||||
profileId String
|
||||
profile TtsProfile @relation(fields: [profileId], references: [id], onDelete: Cascade)
|
||||
|
Reference in New Issue
Block a user