mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
Add tag IDs
This commit is contained in:
parent
bdbadd9f15
commit
366bf5eeb2
@ -148,9 +148,9 @@ model Tag {
|
|||||||
content String @db.Text
|
content String @db.Text
|
||||||
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())
|
||||||
name String
|
name String
|
||||||
|
|
||||||
@@id([guildId, name])
|
|
||||||
@@unique([guildId, name])
|
@@unique([guildId, name])
|
||||||
@@map("tags")
|
@@map("tags")
|
||||||
}
|
}
|
||||||
@ -188,7 +188,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("TicketsCreatedByUser")
|
ticketsCreated Ticket[] @relation("TicketsCreatedByUser")
|
||||||
ticketsClosed Ticket[] @relation("TicketsClosedByUser")
|
ticketsClosed Ticket[] @relation("TicketsClosedByUser")
|
||||||
|
Loading…
Reference in New Issue
Block a user