UserNotification
Join entity that tracks per-user read state for notifications. Each row links one Notification to one ApplicationUser.
Fields
| Field Name | Type | Display Name |
|---|---|---|
| UserNotificationId | Int32 | User notification id |
| NotificationId | Int32 | Notification id |
| UserId | String | User id |
| IsRead | Boolean | Is read |
| ReadAt | Nullable`1 | Read at |
Relationships
- Notification — belongs to one
Notification - User — belongs to one
ApplicationUser
Domain Methods
MarkAsRead()— setsIsRead = trueandReadAt = DateTime.UtcNowMarkAsUnread()— setsIsRead = falseandReadAt = null