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>
21 lines
650 B
C#
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; }
|
|
}
|