1631786ce2
Add push contracts, provider delivery and channel diagnostics. Link email channels to services and document migration and validation. Ref: IT-1074
26 lines
889 B
C#
26 lines
889 B
C#
using HrynCo.DAL.Abstract.Entities;
|
|
using HrynCo.NotificationService.DAL.Abstract.Providers;
|
|
|
|
namespace HrynCo.NotificationService.DAL.EF.Entities;
|
|
|
|
internal class EmailChannelEntity : Entity
|
|
{
|
|
public Guid ServiceId { get; set; }
|
|
public ServiceEntity Service { get; set; } = null!;
|
|
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; } = [];
|
|
}
|