mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-09 14:23:08 +02:00
Separate ticket and Discord categories and add required roles option
This commit is contained in:
parent
08e6841fd4
commit
31a47614c7
@ -24,7 +24,7 @@ model ArchivedMessage {
|
|||||||
data Json
|
data Json
|
||||||
deleted Boolean @default(false)
|
deleted Boolean @default(false)
|
||||||
edited Boolean @default(false)
|
edited Boolean @default(false)
|
||||||
id String @id @unique @db.VarChar(19)
|
id String @id @db.VarChar(19)
|
||||||
ticket Ticket @relation(fields: [ticketId], references: [id])
|
ticket Ticket @relation(fields: [ticketId], references: [id])
|
||||||
ticketId String @db.VarChar(19)
|
ticketId String @db.VarChar(19)
|
||||||
|
|
||||||
@ -66,17 +66,19 @@ model Category {
|
|||||||
channelName String @default("ticket-{num}")
|
channelName String @default("ticket-{num}")
|
||||||
claiming Boolean @default(false)
|
claiming Boolean @default(false)
|
||||||
description String
|
description String
|
||||||
|
discordCategory String @db.VarChar(19)
|
||||||
emoji String
|
emoji String
|
||||||
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 Int @id @default(autoincrement())
|
||||||
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("[]")
|
||||||
|
requiredRoles Json
|
||||||
requireTopic Boolean @default(false)
|
requireTopic Boolean @default(false)
|
||||||
roles Json
|
staffRoles Json
|
||||||
tickets Ticket[]
|
tickets Ticket[]
|
||||||
totalLimit Int @default(-1)
|
totalLimit Int @default(-1)
|
||||||
surveyDescription String?
|
surveyDescription String?
|
||||||
@ -91,7 +93,7 @@ model Guild {
|
|||||||
blocklist Json
|
blocklist Json
|
||||||
categories Category[]
|
categories Category[]
|
||||||
errorColour String @default("RED")
|
errorColour String @default("RED")
|
||||||
id String @id @unique @db.VarChar(19)
|
id String @id @db.VarChar(19)
|
||||||
primaryColour String @default("#009999")
|
primaryColour String @default("#009999")
|
||||||
successColour String @default("GREEN")
|
successColour String @default("GREEN")
|
||||||
tags Tag[]
|
tags Tag[]
|
||||||
@ -117,7 +119,7 @@ model Ticket {
|
|||||||
archivedRoles ArchivedRole[]
|
archivedRoles ArchivedRole[]
|
||||||
archivedUsers ArchivedUser[]
|
archivedUsers ArchivedUser[]
|
||||||
category Category @relation(fields: [categoryId], references: [id])
|
category Category @relation(fields: [categoryId], references: [id])
|
||||||
categoryId String @db.VarChar(19)
|
categoryId Int
|
||||||
claimedBy User @relation(name: "TicketsClaimedByUser", fields: [claimedById], references: [id])
|
claimedBy User @relation(name: "TicketsClaimedByUser", fields: [claimedById], references: [id])
|
||||||
claimedById String @db.VarChar(19)
|
claimedById String @db.VarChar(19)
|
||||||
closedBy User @relation(name: "TicketsClosedByUser", fields: [closedById], references: [id])
|
closedBy User @relation(name: "TicketsClosedByUser", fields: [closedById], references: [id])
|
||||||
@ -128,7 +130,7 @@ model Ticket {
|
|||||||
firstResponse DateTime?
|
firstResponse DateTime?
|
||||||
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 @db.VarChar(19)
|
||||||
lastMessage DateTime?
|
lastMessage DateTime?
|
||||||
number Int
|
number Int
|
||||||
open Boolean @default(true)
|
open Boolean @default(true)
|
||||||
@ -144,7 +146,7 @@ model Ticket {
|
|||||||
}
|
}
|
||||||
|
|
||||||
model User {
|
model User {
|
||||||
id String @id @unique @db.VarChar(19)
|
id String @id @db.VarChar(19)
|
||||||
ticketsCreated Ticket[] @relation("TicketsCreatedByUser")
|
ticketsCreated Ticket[] @relation("TicketsCreatedByUser")
|
||||||
ticketsClosed Ticket[] @relation("TicketsClosedByUser")
|
ticketsClosed Ticket[] @relation("TicketsClosedByUser")
|
||||||
ticketsClaimed Ticket[] @relation("TicketsClaimedByUser")
|
ticketsClaimed Ticket[] @relation("TicketsClaimedByUser")
|
||||||
|
Loading…
Reference in New Issue
Block a user