sozsoft-platform/api/modules/Sozsoft.Notifications/Sozsoft.Notifications.Domain/Entities/Notification.cs
2026-05-11 12:37:52 +03:00

25 lines
862 B
C#

using System;
using System.Collections.Generic;
using Volo.Abp.Domain.Entities.Auditing;
namespace Sozsoft.Notifications.Entities;
public class Notification : FullAuditedEntity<Guid>
{
public Guid NotificationRuleId { get; set; }
public required string NotificationChannel { get; set; }
public required Guid NotificationTypeId { get; set; }
public virtual NotificationType NotificationType { get; set; }
// Bildirim tipine göre bildirimi alacak olan hedef bilgisini içerir
public required string Identifier { get; set; } //UserId, Email, PhoneNumber..
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; }
public virtual NotificationRule NotificationRule { get; set; }
}