Files
var-monorepo/packages/database/prisma/schema/reportMessage.prisma
2025-04-28 21:24:34 +02:00

14 lines
432 B
Plaintext

model ReportMessage {
id Int @id @default(autoincrement())
text String
senderId String
reportedId String
timestamp DateTime @default(now())
reportedName String
senderName String
// relations:
sender User @relation("SentReports", fields: [senderId], references: [id])
reported User @relation("ReceivedReports", fields: [reportedId], references: [id])
}