using HrynCo.DAL.Abstract.Entities;
using HrynCo.NotificationService.DAL.Abstract.Providers;
namespace HrynCo.NotificationService.DAL.EF.Entities;
internal class EmailChannelEntity : Entity
{
public required string ServiceName { get; set; }
public int Priority { get; set; }
public EmailChannelType EmailChannelType { get; set; }
///
/// EmailChannel-specific credentials and settings stored as JSONB.
/// Deserialized based on in the repository.
///
public required string SettingsJson { get; set; }
public int? DailyLimit { get; set; }
public int? MonthlyLimit { get; set; }
public int WarnThresholdPercent { get; set; }
public bool IsActive { get; set; }
public ICollection UsageRecords { get; set; } = [];
}