Domain entities now inheriting from abstract entity

This commit is contained in:
Veljko Tosic
2026-02-11 02:21:25 +01:00
parent a4245fdd93
commit b54c72bb42
4 changed files with 17 additions and 18 deletions

View File

@@ -1,19 +1,19 @@
using AipsCore.Domain.Common.ValueObjects;
using AipsCore.Domain.Abstract;
using AipsCore.Domain.Common.ValueObjects;
using AipsCore.Domain.Models.User.ValueObjects;
namespace AipsCore.Domain.Models.User;
public class User
public class User : DomainEntity<UserId>
{
public UserId Id { get; private set; }
public Email Email { get; private set; }
public Username Username { get; private set; }
public UserCreatedAt CreatedAt { get; private set; }
public UserDeletedAt DeletedAt { get; private set; }
public User(UserId id, Email email, Username username, UserCreatedAt createdAt, UserDeletedAt deletedAt)
: base(id)
{
Id = id;
Email = email;
Username = username;
CreatedAt = createdAt;