Class NotificationSqlModel
- Namespace
- OpenSettings.Domains.Sql.Entities
- Assembly
- OpenSettings.dll
Represents a notification entity.
[Table("Notifications")]
public class NotificationSqlModel : EntityBase<Guid>
- Inheritance
-
NotificationSqlModel
- Inherited Members
Properties
CreatedBy
The user who created this notification.
[ForeignKey("CreatedById")]
public virtual UserSqlModel CreatedBy { get; set; }
Property Value
CreatedById
The id of the user who created this notification.
public Guid? CreatedById { get; set; }
Property Value
- Guid?
CreatorName
The name of the user who created this notification.
public string CreatorName { get; set; }
Property Value
ExpiredOn
The date and time when the notification was marked as expired.
public DateTime? ExpiredOn { get; set; }
Property Value
ExpiresIn
The duration after which the notification expires. If null, the notification does not expire.
public TimeSpan? ExpiresIn { get; set; }
Property Value
IsExpired
Indicates whether the notification has expired.
If true
, new user mappings will not be created for this notification.
public bool IsExpired { get; set; }
Property Value
Message
The message content of the notification.
public string Message { get; set; }
Property Value
Metadata
Additional metadata associated with the notification, stored as key-value pairs.
public Dictionary<string, object> Metadata { get; set; }
Property Value
Source
The source of the notification, indicating where it originated from.
public NotificationSource Source { get; set; }
Property Value
Title
The title of the notification.
public string Title { get; set; }
Property Value
Type
The type of the notification, specifying its category or purpose.
public NotificationType Type { get; set; }
Property Value
UpdatedBy
The user who last updated this notification.
[ForeignKey("UpdatedById")]
public virtual UserSqlModel UpdatedBy { get; set; }
Property Value
UpdatedById
The id of the user who last updated this notification.
public Guid? UpdatedById { get; set; }
Property Value
- Guid?
UserGroupNotificationMappings
The collection of user group-notification mappings associated with this notification.
public virtual ICollection<UserGroupNotificationMappingSqlModel> UserGroupNotificationMappings { get; set; }
Property Value
UserNotificationMappings
The collection of user-notification mappings associated with this notification.
public virtual ICollection<UserNotificationMappingSqlModel> UserNotificationMappings { get; set; }