using SolutionErp.Domain.Common;

namespace SolutionErp.Domain.Notifications;

public class Notification : BaseEntity
{
    public Guid UserId { get; set; }
    public NotificationType Type { get; set; }
    public string Title { get; set; } = string.Empty;
    public string? Description { get; set; }
    public string? Href { get; set; }
    public DateTime? ReadAt { get; set; }

    // Optional correlation to source entity (contract, user, etc.). Interpretation
    // depends on Type. Kept nullable to avoid a discriminated-union migration.
    public Guid? RefId { get; set; }
}
