feat: implement conversation mute and favorite functionality with corresponding notification suppression.

This commit is contained in:
pradeepkumar
2026-03-19 17:04:02 +05:30
parent 870eb0c067
commit fcf90e8638
4 changed files with 108 additions and 0 deletions

View File

@@ -488,6 +488,12 @@ model Conversation {
userUnreadCount Int @default(0) // Unread count for the user
agentUnreadCount Int @default(0) // Unread count for the agent
// Mute & Favorite (per-user)
userMuted Boolean @default(false)
agentMuted Boolean @default(false)
userFavorited Boolean @default(false)
agentFavorited Boolean @default(false)
// Timestamps
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt