Change user avatar properties

This commit is contained in:
Isaac 2022-04-16 14:36:46 +01:00
parent c80dbfc963
commit 93b6b2125c

View File

@ -45,11 +45,12 @@ model ArchivedRole {
}
model ArchivedUser {
archivedAvatarId String
archivedMessages ArchivedMessage[]
avatar String
bot Boolean @default(false)
discriminator String @db.Char(4)
displayName String
lastAvatarHash String
role ArchivedRole @relation(fields: [ticketId, roleId], references: [ticketId, roleId])
roleId String @db.VarChar(19)
ticket Ticket @relation(fields: [ticketId], references: [id])
@ -185,11 +186,11 @@ model Ticket {
}
model User {
id String @id @unique @db.VarChar(19)
id String @id @unique @db.VarChar(19)
// surveyResponses SurveyResponse[]
ticketsCreated Ticket[] @relation("CreatedTickets")
ticketsClosed Ticket[] @relation("ClosedTickets")
ticketsClaimed Ticket[] @relation("ClaimedTickets")
ticketsCreated Ticket[] @relation("CreatedTickets")
ticketsClosed Ticket[] @relation("ClosedTickets")
ticketsClaimed Ticket[] @relation("ClaimedTickets")
@@map("users")
}