32 lines
766 B
Text
32 lines
766 B
Text
// This is your Prisma schema file,
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
|
|
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
|
|
|
|
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "postgresql"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
model WhitelistedUsers {
|
|
discordId String @id
|
|
}
|
|
|
|
model User {
|
|
id String @id
|
|
discordToken String
|
|
apiToken String @default(uuid()) @db.Uuid
|
|
imagePosts FilePost[]
|
|
}
|
|
|
|
model FilePost {
|
|
id String @id @default(uuid()) @db.Uuid
|
|
fileName String
|
|
userId String
|
|
user User @relation(fields: [userId], references: [id])
|
|
}
|