mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
Add category fields
This commit is contained in:
parent
fbabf25f07
commit
73fb4e9ef1
@ -63,10 +63,22 @@ model ArchivedUser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
model Category {
|
model Category {
|
||||||
guild Guild @relation(fields: [guildId], references: [id])
|
channelName String @default("ticket-{num}")
|
||||||
guildId String @db.VarChar(19)
|
claiming Boolean @default(false)
|
||||||
id String @id @unique @db.VarChar(19)
|
guild Guild @relation(fields: [guildId], references: [id])
|
||||||
tickets Ticket[]
|
guildId String @db.VarChar(19)
|
||||||
|
id String @id @unique @db.VarChar(19)
|
||||||
|
image String?
|
||||||
|
memberLimit Int @default(1)
|
||||||
|
name String
|
||||||
|
openingMessage String @db.Text
|
||||||
|
ping Json @default("[]")
|
||||||
|
requireTopic Boolean @default(false)
|
||||||
|
roles Json
|
||||||
|
tickets Ticket[]
|
||||||
|
totalLimit Int @default(-1)
|
||||||
|
survey Survey @relation(fields: [guildId, surveyName], references: [guildId, name])
|
||||||
|
surveyName String
|
||||||
|
|
||||||
@@map("categories")
|
@@map("categories")
|
||||||
}
|
}
|
||||||
@ -86,11 +98,12 @@ model Guild {
|
|||||||
}
|
}
|
||||||
|
|
||||||
model Survey {
|
model Survey {
|
||||||
guild Guild @relation(fields: [guildId], references: [id])
|
categories Category[]
|
||||||
guildId String @db.VarChar(19)
|
guild Guild @relation(fields: [guildId], references: [id])
|
||||||
name String
|
guildId String @db.VarChar(19)
|
||||||
questions SurveyQuestion[]
|
name String
|
||||||
responses SurveyResponse[]
|
questions SurveyQuestion[]
|
||||||
|
responses SurveyResponse[]
|
||||||
|
|
||||||
@@id([guildId, name])
|
@@id([guildId, name])
|
||||||
@@unique([guildId, name])
|
@@unique([guildId, name])
|
||||||
|
Loading…
Reference in New Issue
Block a user