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>
This commit is contained in:
Anatolii Grynchuk
2026-05-01 23:27:38 +03:00
parent 4f573da374
commit c2a4f3b9d7
6 changed files with 64 additions and 32 deletions
@@ -1,11 +1,10 @@
using HrynCo.NotificationService.DAL.Abstract.Entities;
namespace HrynCo.NotificationService.DAL.EF.Entities;
internal class ProviderUsageEntity
internal class ProviderUsageEntity : Entity
{
public Guid Id { get; set; }
public Guid ProviderId { get; set; }
public DateOnly Date { get; set; }
public int SentCount { get; set; }
public DateTimeOffset Created { get; set; }
public DateTimeOffset? Updated { get; set; }
}