33 lines
No EOL
576 B
Text
33 lines
No EOL
576 B
Text
datasource db {
|
|
provider = "postgresql"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
model User {
|
|
id String @id @default(cuid())
|
|
discord_id String? @unique
|
|
border_id String?
|
|
|
|
createdAt DateTime @default(now())
|
|
updatedAt DateTime @updatedAt
|
|
}
|
|
|
|
model DiscordUser {
|
|
id String @id @default(cuid())
|
|
discord_id String @unique
|
|
access_token String?
|
|
refresh_token String?
|
|
expires DateTime?
|
|
|
|
username String?
|
|
discriminator String?
|
|
}
|
|
|
|
model Border {
|
|
id String @id @default(cuid())
|
|
filename String @unique
|
|
} |