namespace Health.Infrastructure.Data.Records;

public sealed class NotificationOutboxRecord
{
    public Guid Id { get; set; }
    public Guid UserId { get; set; }
    public Guid SourceTaskId { get; set; }
    public string Type { get; set; } = string.Empty;
    public string Payload { get; set; } = "{}";
    public string Status { get; set; } = "AwaitingProvider";
    public int Attempts { get; set; }
    public DateTime AvailableAt { get; set; } = DateTime.UtcNow;
    public string? LastError { get; set; }
    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
    public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}
