erp-platform/api/modules/Erp.Notifications/Erp.Notifications.Domain/Entities/Notification.cs

24 lines
757 B
C#
Raw Normal View History

2025-05-06 06:45:49 +00:00
using System;
using Volo.Abp.Domain.Entities.Auditing;
2025-11-11 19:49:52 +00:00
namespace Erp.Notifications.Entities;
2025-05-06 06:45:49 +00:00
public class Notification : FullAuditedEntity<Guid>
{
2025-10-03 11:35:52 +00:00
public Guid NotificationRuleId { get; set; }
2025-05-06 06:45:49 +00:00
public required string NotificationChannel { get; set; }
public required string NotificationType { get; set; }
// Bildirim tipine göre bildirimi alacak olan hedef bilgisini içerir
2025-11-03 20:31:28 +00:00
public required string Identifier { get; set; } //UserId, Email, PhoneNumber..
2025-05-06 06:45:49 +00:00
public Guid? UserId { get; set; }
public required string Message { get; set; }
public bool IsSent { get; set; }
public bool IsRead { get; set; }
public DateTime? ReadTime { get; set; }
2025-10-03 11:35:52 +00:00
public virtual NotificationRule NotificationRule { get; set; }
2025-05-06 06:45:49 +00:00
}
2025-11-11 19:49:52 +00:00