Add feedback management features: Implement functions to add bonus points and mark feedback as read in the FeedbackManagement component. Update EventFeedback model to include isRead property, enhancing user interaction and feedback tracking.

This commit is contained in:
Julien Froidefond
2025-12-16 16:43:53 +01:00
parent 3dd82c2bd4
commit 16e4b63ffd
10 changed files with 387 additions and 16 deletions

View File

@@ -84,6 +84,7 @@ model EventFeedback {
eventId String
rating Int
comment String?
isRead Boolean @default(false)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
event Event @relation(fields: [eventId], references: [id], onDelete: Cascade)
@@ -92,6 +93,7 @@ model EventFeedback {
@@unique([userId, eventId])
@@index([userId])
@@index([eventId])
@@index([isRead])
}
model SitePreferences {