Class UserNotificationMappingSqlModel
- Namespace
- OpenSettings.Domains.Sql.Entities
- Assembly
- OpenSettings.dll
Represents a user-notification mapping entity.
[Table("UserNotificationMappings")]
public class UserNotificationMappingSqlModel : EntityBase<int>
- Inheritance
-
UserNotificationMappingSqlModel
- Inherited Members
Properties
CreatedBy
The user who created this user-notification mapping.
[ForeignKey("CreatedById")]
public virtual UserSqlModel CreatedBy { get; set; }
Property Value
CreatedById
The id of the user who created this user notification mapping.
public Guid? CreatedById { get; set; }
Property Value
- Guid?
DismissedOn
Gets or sets the timestamp when the notification was dismissed. If the notification has not been dismissed, this value is null.
public DateTime? DismissedOn { get; set; }
Property Value
Id
[NotMapped]
public int Id { get; set; }
Property Value
IsDismissed
Gets or sets a value indicating whether the notification has been dismissed by the user.
public bool IsDismissed { get; set; }
Property Value
IsOpened
Gets or sets a value indicating whether the notification has been opened.
public bool IsOpened { get; set; }
Property Value
IsViewed
Gets or sets a value indicating whether the notification has been viewed. A notification is considered viewed if the user has seen it or interacted with it.
public bool IsViewed { get; set; }
Property Value
Notification
The notification associated with this mapping.
[ForeignKey("NotificationId")]
public virtual NotificationSqlModel Notification { get; set; }
Property Value
NotificationId
The id of the associated notification.
public Guid NotificationId { get; set; }
Property Value
OpenedOn
Gets or sets the timestamp when the notification was opened. If the notification has not been opened, this value is null.
public DateTime? OpenedOn { get; set; }
Property Value
User
The user associated with this mapping.
[ForeignKey("UserId")]
public virtual UserSqlModel User { get; set; }
Property Value
UserId
The id of the associated user.
public Guid UserId { get; set; }
Property Value
ViewedOn
Gets or sets the timestamp when the notification was viewed. If the notification has not been viewed, this value is null.
public DateTime? ViewedOn { get; set; }