mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
Fix & comment-out surveys
This commit is contained in:
parent
5730e60663
commit
c80dbfc963
@ -77,7 +77,7 @@ model Category {
|
|||||||
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
|
||||||
|
|
||||||
@@map("categories")
|
@@map("categories")
|
||||||
@ -90,56 +90,59 @@ model Guild {
|
|||||||
id String @id @unique @db.VarChar(19)
|
id String @id @unique @db.VarChar(19)
|
||||||
primaryColour String @default("#009999")
|
primaryColour String @default("#009999")
|
||||||
successColour String @default("GREEN")
|
successColour String @default("GREEN")
|
||||||
surveys Survey[]
|
// surveys Survey[]
|
||||||
tags Tag[]
|
tags Tag[]
|
||||||
tickets Ticket[]
|
tickets Ticket[]
|
||||||
|
|
||||||
@@map("guilds")
|
@@map("guilds")
|
||||||
}
|
}
|
||||||
|
|
||||||
model Survey {
|
// model Survey {
|
||||||
categories Category[]
|
// 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
|
||||||
questions SurveyQuestion[]
|
// questions SurveyQuestion[]
|
||||||
responses SurveyResponse[]
|
// responses SurveyResponse[]
|
||||||
|
|
||||||
@@id([guildId, name])
|
// @@id([guildId, name])
|
||||||
@@unique([guildId, name])
|
// @@unique([guildId, name])
|
||||||
@@map("surveys")
|
// @@map("surveys")
|
||||||
}
|
// }
|
||||||
|
|
||||||
model SurveyResponse {
|
// model SurveyResponse {
|
||||||
answers SurveyQuestionAnswer[]
|
// answers SurveyQuestionAnswer[]
|
||||||
id Int @id @default(autoincrement())
|
// id Int @id @default(autoincrement())
|
||||||
survey Survey @relation(fields: [surveyGuildId, surveyName], references: [guildId, name])
|
// survey Survey @relation(fields: [surveyGuildId, surveyName], references: [guildId, name])
|
||||||
surveyGuildId String @db.VarChar(19)
|
// surveyGuildId String @db.VarChar(19)
|
||||||
surveyName String
|
// surveyName String
|
||||||
user User @relation(fields: [userId], references: [id])
|
// user User @relation(fields: [userId], references: [id])
|
||||||
userId String @db.VarChar(19)
|
// userId String @db.VarChar(19)
|
||||||
|
|
||||||
@@map("survey_responses")
|
// @@map("survey_responses")
|
||||||
}
|
// }
|
||||||
|
|
||||||
model SurveyQuestion {
|
// model SurveyQuestion {
|
||||||
content String @db.Text
|
// answers SurveyQuestionAnswer[]
|
||||||
id Int @id @default(autoincrement())
|
// content String @db.Text
|
||||||
survey Survey @relation(fields: [surveyGuildId, surveyName], references: [guildId, name])
|
// id Int @id @default(autoincrement())
|
||||||
surveyGuildId String @db.VarChar(19)
|
// survey Survey @relation(fields: [surveyGuildId, surveyName], references: [guildId, name])
|
||||||
surveyName String
|
// surveyGuildId String @db.VarChar(19)
|
||||||
|
// surveyName String
|
||||||
|
|
||||||
@@map("survey_questions")
|
// @@map("survey_questions")
|
||||||
}
|
// }
|
||||||
|
|
||||||
model SurveyQuestionAnswer {
|
// model SurveyQuestionAnswer {
|
||||||
content String @db.Text
|
// content String @db.Text
|
||||||
id Int @id @default(autoincrement())
|
// id Int @id @default(autoincrement())
|
||||||
surveyResponse SurveyResponse @relation(fields: [surveyResponseId], references: [id])
|
// surveyResponse SurveyResponse @relation(fields: [surveyResponseId], references: [id])
|
||||||
surveyResponseId Int
|
// surveyResponseId Int
|
||||||
|
// question SurveyQuestion @relation(fields: [questionId], references: [id])
|
||||||
|
// questionId Int
|
||||||
|
|
||||||
@@map("survey_answers")
|
// @@map("survey_answers")
|
||||||
}
|
// }
|
||||||
|
|
||||||
model Tag {
|
model Tag {
|
||||||
content String @db.Text
|
content String @db.Text
|
||||||
@ -183,7 +186,7 @@ model Ticket {
|
|||||||
|
|
||||||
model User {
|
model User {
|
||||||
id String @id @unique @db.VarChar(19)
|
id String @id @unique @db.VarChar(19)
|
||||||
surveyResponses SurveyResponse[]
|
// surveyResponses SurveyResponse[]
|
||||||
ticketsCreated Ticket[] @relation("CreatedTickets")
|
ticketsCreated Ticket[] @relation("CreatedTickets")
|
||||||
ticketsClosed Ticket[] @relation("ClosedTickets")
|
ticketsClosed Ticket[] @relation("ClosedTickets")
|
||||||
ticketsClaimed Ticket[] @relation("ClaimedTickets")
|
ticketsClaimed Ticket[] @relation("ClaimedTickets")
|
||||||
|
Loading…
Reference in New Issue
Block a user