mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
Changed tag content to JSON and added survey links
This commit is contained in:
parent
8ab8090518
commit
7c3b15d6bd
@ -63,22 +63,25 @@ model ArchivedUser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
model Category {
|
model Category {
|
||||||
channelName String @default("ticket-{num}")
|
channelName String @default("ticket-{num}")
|
||||||
claiming Boolean @default(false)
|
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?
|
image String?
|
||||||
memberLimit Int @default(1)
|
memberLimit Int @default(1)
|
||||||
name String
|
name String
|
||||||
openingMessage String @db.Text
|
openingMessage String @db.Text
|
||||||
ping Json @default("[]")
|
ping Json @default("[]")
|
||||||
requireTopic Boolean @default(false)
|
requireTopic Boolean @default(false)
|
||||||
roles Json
|
roles Json
|
||||||
tickets Ticket[]
|
tickets Ticket[]
|
||||||
totalLimit Int @default(-1)
|
totalLimit Int @default(-1)
|
||||||
// survey Survey @relation(fields: [guildId, surveyName], references: [guildId, name])
|
// survey Survey @relation(fields: [guildId, surveyName], references: [guildId, name])
|
||||||
// surveyName String
|
// surveyName String
|
||||||
|
surveyDescription String
|
||||||
|
surveyLink String
|
||||||
|
surveyTitle String
|
||||||
|
|
||||||
@@map("categories")
|
@@map("categories")
|
||||||
}
|
}
|
||||||
@ -145,7 +148,7 @@ model Guild {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
model Tag {
|
model Tag {
|
||||||
content String @db.Text
|
content Json
|
||||||
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 Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
|
Loading…
Reference in New Issue
Block a user