mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 08:13:09 +02:00
fix
This commit is contained in:
parent
acf2c96d73
commit
d3448a0e68
@ -15,11 +15,11 @@ model ArchivedChannel {
|
|||||||
|
|
||||||
@@id([ticketId, channelId])
|
@@id([ticketId, channelId])
|
||||||
@@unique([ticketId, channelId])
|
@@unique([ticketId, channelId])
|
||||||
@@map("archived_channels")
|
@@map("archivedChannels")
|
||||||
}
|
}
|
||||||
|
|
||||||
model ArchivedMessage {
|
model ArchivedMessage {
|
||||||
author ArchivedUser? @relation(fields: [ticketId, authorId], references: [ticketId, userId], onDelete: SetNull)
|
author ArchivedUser @relation(fields: [ticketId, authorId], references: [ticketId, userId])
|
||||||
authorId String @db.VarChar(19)
|
authorId String @db.VarChar(19)
|
||||||
content String
|
content String
|
||||||
deleted Boolean @default(false)
|
deleted Boolean @default(false)
|
||||||
@ -28,7 +28,7 @@ model ArchivedMessage {
|
|||||||
ticket Ticket @relation(fields: [ticketId], references: [id], onDelete: Cascade)
|
ticket Ticket @relation(fields: [ticketId], references: [id], onDelete: Cascade)
|
||||||
ticketId String @db.VarChar(19)
|
ticketId String @db.VarChar(19)
|
||||||
|
|
||||||
@@map("archived_messages")
|
@@map("archivedMessages")
|
||||||
}
|
}
|
||||||
|
|
||||||
model ArchivedRole {
|
model ArchivedRole {
|
||||||
@ -41,7 +41,7 @@ model ArchivedRole {
|
|||||||
|
|
||||||
@@id([ticketId, roleId])
|
@@id([ticketId, roleId])
|
||||||
@@unique([ticketId, roleId])
|
@@unique([ticketId, roleId])
|
||||||
@@map("archived_roles")
|
@@map("archivedRoles")
|
||||||
}
|
}
|
||||||
|
|
||||||
model ArchivedUser {
|
model ArchivedUser {
|
||||||
@ -50,7 +50,7 @@ model ArchivedUser {
|
|||||||
bot Boolean @default(false)
|
bot Boolean @default(false)
|
||||||
discriminator String @db.Char(4)
|
discriminator String @db.Char(4)
|
||||||
displayName String
|
displayName String
|
||||||
role ArchivedRole? @relation(fields: [ticketId, roleId], references: [ticketId, roleId], onDelete: SetNull)
|
role ArchivedRole @relation(fields: [ticketId, roleId], references: [ticketId, roleId])
|
||||||
roleId String @db.VarChar(19)
|
roleId String @db.VarChar(19)
|
||||||
ticket Ticket @relation(fields: [ticketId], references: [id], onDelete: Cascade)
|
ticket Ticket @relation(fields: [ticketId], references: [id], onDelete: Cascade)
|
||||||
ticketId String @db.VarChar(19)
|
ticketId String @db.VarChar(19)
|
||||||
@ -59,7 +59,7 @@ model ArchivedUser {
|
|||||||
|
|
||||||
@@id([ticketId, userId])
|
@@id([ticketId, userId])
|
||||||
@@unique([ticketId, userId])
|
@@unique([ticketId, userId])
|
||||||
@@map("archived_users")
|
@@map("archivedUsers")
|
||||||
}
|
}
|
||||||
|
|
||||||
model Category {
|
model Category {
|
||||||
@ -118,8 +118,8 @@ model Ticket {
|
|||||||
archivedMessages ArchivedMessage[]
|
archivedMessages ArchivedMessage[]
|
||||||
archivedRoles ArchivedRole[]
|
archivedRoles ArchivedRole[]
|
||||||
archivedUsers ArchivedUser[]
|
archivedUsers ArchivedUser[]
|
||||||
category Category @relation(fields: [categoryId], references: [id], onDelete: SetNull)
|
category Category? @relation(fields: [categoryId], references: [id], onDelete: SetNull)
|
||||||
categoryId Int
|
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])
|
||||||
|
Loading…
Reference in New Issue
Block a user