borders/prisma/schema.prisma

75 lines
1.7 KiB
Text

// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "sqlite"
url = "file:./borders.db"
}
model Account {
id String @id @default(cuid())
userId String
type String
provider String
providerAccountId String
refresh_token String?
access_token String?
expires_at Int?
token_type String?
scope String?
id_token String?
session_state String?
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
@@unique([provider, providerAccountId])
}
model Session {
id String @id @default(cuid())
sessionToken String @unique
userId String
expires DateTime
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
}
model User {
id String @id @default(cuid())
name String?
email String? @unique
emailVerified DateTime?
image String?
accounts Account[]
sessions Session[]
}
model VerificationToken {
identifier String
token String @unique
expires DateTime
@@unique([identifier, token])
}
model ApplicationUserData {
id Int @id @default(autoincrement())
userId String @unique
discordId String @unique
admin Boolean?
borderId Int?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model BorderImage {
id Int @id @default(autoincrement())
imageName String @unique
appId Int?
appName String?
borderName String?
itemType Int?
}