26 lines
498 B
Text
26 lines
498 B
Text
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "sqlite"
|
|
url = "file:./database.db"
|
|
}
|
|
|
|
model AuthTicket {
|
|
id Int @id @default(autoincrement())
|
|
username String?
|
|
ticket String
|
|
discordAuth DiscordAuth?
|
|
}
|
|
|
|
model DiscordAuth {
|
|
id String @id
|
|
|
|
authTicket AuthTicket @relation(fields: [authTicketId], references: [id])
|
|
authTicketId Int @unique
|
|
|
|
accessToken String
|
|
refreshToken String
|
|
refreshAt DateTime
|
|
}
|