Files
hrynco-notification-service/HrynCo.NotificationService.DAL.EF/Entities/TemplateEntity.cs
T
Anatolii Grynchuk c2a4f3b9d7 fix: inherit EF entities from Entity base class
- 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>
2026-05-01 23:27:38 +03:00

21 lines
650 B
C#

using HrynCo.NotificationService.DAL.Abstract.Entities;
namespace HrynCo.NotificationService.DAL.EF.Entities;
internal class TemplateEntity : Entity
{
public required string ServiceName { get; set; }
public required string Key { get; set; }
public required string LanguageCode { get; set; }
public required string Subject { get; set; }
public required string HtmlBody { get; set; }
public required string TextBody { get; set; }
public List<TemplateVariableData> Variables { get; set; } = [];
}
internal class TemplateVariableData
{
public required string Name { get; set; }
public bool Required { get; set; }
}