mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
Fix survey models
This commit is contained in:
parent
73fb4e9ef1
commit
5730e60663
@ -116,6 +116,8 @@ model SurveyResponse {
|
||||
survey Survey @relation(fields: [surveyGuildId, surveyName], references: [guildId, name])
|
||||
surveyGuildId String @db.VarChar(19)
|
||||
surveyName String
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
userId String @db.VarChar(19)
|
||||
|
||||
@@map("survey_responses")
|
||||
}
|
||||
@ -181,6 +183,7 @@ model Ticket {
|
||||
|
||||
model User {
|
||||
id String @id @unique @db.VarChar(19)
|
||||
surveyResponses SurveyResponse[]
|
||||
ticketsCreated Ticket[] @relation("CreatedTickets")
|
||||
ticketsClosed Ticket[] @relation("ClosedTickets")
|
||||
ticketsClaimed Ticket[] @relation("ClaimedTickets")
|
||||
|
Loading…
Reference in New Issue
Block a user