c2a4f3b9d7
- TemplateEntity, ProviderEntity, ProviderUsageEntity now inherit Entity (from DAL.Abstract) - Removes duplicated Id, Created, Updated properties from each entity Ref: IT-628 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
23 lines
764 B
C#
23 lines
764 B
C#
using HrynCo.NotificationService.DAL.Abstract.Entities;
|
|
using HrynCo.NotificationService.DAL.Abstract.Providers;
|
|
|
|
namespace HrynCo.NotificationService.DAL.EF.Entities;
|
|
|
|
internal class ProviderEntity : Entity
|
|
{
|
|
public required string ServiceName { get; set; }
|
|
public int Priority { get; set; }
|
|
public ProviderType ProviderType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Provider-specific credentials and settings stored as JSONB.
|
|
/// Deserialized based on <see cref="ProviderType"/> 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; }
|
|
}
|