ee4c988a0d
Remove duplicate IEntity, Entity, ITransaction, IUnitOfWork, EfRepository, EfUnitOfWork, EfTransactionAdapter — now consumed from HrynCo.DAL.Abstract and HrynCo.DAL.EF packages (1.0.1). Ref: IT-0
25 lines
846 B
C#
25 lines
846 B
C#
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; }
|
|
|
|
/// <summary>
|
|
/// EmailChannel-specific credentials and settings stored as JSONB.
|
|
/// Deserialized based on <see cref="EmailChannelType"/> in the repository.
|
|
/// </summary>
|
|
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<EmailChannelUsageEntity> UsageRecords { get; set; } = [];
|
|
}
|