Report logic #2

This commit is contained in:
nocnico
2025-04-28 21:23:03 +02:00
parent e7c8f8ad1c
commit 7670843613
4 changed files with 41 additions and 9 deletions

View File

@@ -0,0 +1,13 @@
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])
}