feat: implement per-user chat clearing by filtering messages based on new clearedAt timestamps

This commit is contained in:
pradeepkumar
2026-03-28 20:25:15 +05:30
parent 5e4ce0be76
commit b8d133783b
2 changed files with 27 additions and 12 deletions

View File

@@ -503,6 +503,10 @@ model Conversation {
userFavorited Boolean @default(false)
agentFavorited Boolean @default(false)
// Clear chat (per-user) — messages before this timestamp are hidden for that user
userClearedAt DateTime?
agentClearedAt DateTime?
// Timestamps
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt