2022-04-10 16:02:48 +00:00
|
|
|
// This is your Prisma schema file,
|
|
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
2022-03-22 17:42:07 +00:00
|
|
|
|
|
|
|
generator client {
|
|
|
|
provider = "prisma-client-js"
|
|
|
|
}
|
|
|
|
|
2022-04-10 16:02:48 +00:00
|
|
|
datasource db {
|
2022-04-10 16:34:29 +00:00
|
|
|
provider = "sqlite"
|
|
|
|
url = "file:./borders.db"
|
|
|
|
}
|
|
|
|
|
2022-04-10 18:26:47 +00:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
2022-04-10 16:34:29 +00:00
|
|
|
model User {
|
2022-04-10 18:26:47 +00:00
|
|
|
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 {
|
2022-04-17 04:24:59 +00:00
|
|
|
id Int @id @default(autoincrement())
|
|
|
|
imageName String @unique
|
|
|
|
appId Int?
|
|
|
|
appName String?
|
|
|
|
borderName String?
|
2022-04-24 02:58:54 +00:00
|
|
|
itemType Int?
|
2022-03-22 17:42:07 +00:00
|
|
|
}
|