using MemberCenter.Domain.Constants;

namespace MemberCenter.Domain.Entities;

public sealed class NewsletterSubscription
{
    public Guid Id { get; set; }
    public Guid ListId { get; set; }
    public string Email { get; set; } = string.Empty;
    public Guid? UserId { get; set; }
    public string Status { get; set; } = SubscriptionStatus.Pending;
    public System.Text.Json.JsonDocument Preferences { get; set; } = System.Text.Json.JsonDocument.Parse("{}");
    public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;

    public NewsletterList? List { get; set; }
}
