47 lines
899 B
Plaintext
47 lines
899 B
Plaintext
|
generator client {
|
||
|
provider = "prisma-client-js"
|
||
|
}
|
||
|
|
||
|
datasource db {
|
||
|
provider = "sqlite"
|
||
|
url = env("DATABASE_URL")
|
||
|
}
|
||
|
|
||
|
model Settings {
|
||
|
id Int @id @default(autoincrement())
|
||
|
welcomeChannelId Int
|
||
|
feedbackChannelId Int
|
||
|
portfolioChannelId Int
|
||
|
makeAnOrderChannelId Int
|
||
|
priceChannelId Int
|
||
|
workLoadChannelId Int
|
||
|
worlLoadStatus Int
|
||
|
workloadMessageId Int
|
||
|
}
|
||
|
|
||
|
model Role {
|
||
|
id Int @id @default(autoincrement())
|
||
|
welcomeRoleId Int
|
||
|
tickerRoleId Int
|
||
|
}
|
||
|
|
||
|
model Banner {
|
||
|
id Int @id @default(autoincrement())
|
||
|
welcomeUrl String
|
||
|
ticketUrl String
|
||
|
}
|
||
|
|
||
|
model User {
|
||
|
id Int @id @default(autoincrement())
|
||
|
discordId Int
|
||
|
tickets Ticket[]
|
||
|
}
|
||
|
|
||
|
model Ticket {
|
||
|
id Int @id
|
||
|
channelId Int
|
||
|
closed Boolean
|
||
|
User User? @relation(fields: [userId], references: [id])
|
||
|
userId Int?
|
||
|
}
|