mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 08:13: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 {
|
||||||
|
channelName String @default("ticket-{num}")
|
||||||
|
claiming Boolean @default(false)
|
||||||
guild Guild @relation(fields: [guildId], references: [id])
|
guild Guild @relation(fields: [guildId], references: [id])
|
||||||
guildId String @db.VarChar(19)
|
guildId String @db.VarChar(19)
|
||||||
id String @id @unique @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[]
|
tickets Ticket[]
|
||||||
|
totalLimit Int @default(-1)
|
||||||
|
survey Survey @relation(fields: [guildId, surveyName], references: [guildId, name])
|
||||||
|
surveyName String
|
||||||
|
|
||||||
@@map("categories")
|
@@map("categories")
|
||||||
}
|
}
|
||||||
@ -86,6 +98,7 @@ model Guild {
|
|||||||
}
|
}
|
||||||
|
|
||||||
model Survey {
|
model Survey {
|
||||||
|
categories Category[]
|
||||||
guild Guild @relation(fields: [guildId], references: [id])
|
guild Guild @relation(fields: [guildId], references: [id])
|
||||||
guildId String @db.VarChar(19)
|
guildId String @db.VarChar(19)
|
||||||
name String
|
name String
|
||||||
|
Loading…
Reference in New Issue
Block a user