mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-10 12:44:47 -05:00
33 lines
724 B
Plaintext
33 lines
724 B
Plaintext
datasource db {
|
|
provider = "postgresql"
|
|
// FIXME: should use same .env system as Next.JS
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
model User {
|
|
id Int @id @default(autoincrement())
|
|
username String
|
|
discriminator String
|
|
discordId String @unique
|
|
discordAvatar String?
|
|
profile Profile?
|
|
}
|
|
|
|
model Profile {
|
|
twitterName String?
|
|
twitchName String?
|
|
youtubeId String?
|
|
country String?
|
|
sensMotion Int?
|
|
sensStick Int?
|
|
bio String?
|
|
weaponPool String[]
|
|
customUrlPath String? @unique
|
|
user User @relation(fields: [userId], references: [id])
|
|
userId Int @unique
|
|
}
|