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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user