discord-ticket-bot/prisma/schema.prisma

47 lines
899 B
Plaintext
Raw Normal View History

2024-08-05 20:27:01 +00:00
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?
}