2024-08-11 19:20:09 +03:30
|
|
|
|
namespace Brizco.Domain.Entities.Complexes;
|
2023-09-18 09:45:02 +03:30
|
|
|
|
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
|
|
|
|
|
|
[GenerateMapper]
|
2023-10-13 16:25:34 +03:30
|
|
|
|
public partial class ComplexUser : ApiEntity
|
2023-09-15 12:37:02 +03:30
|
|
|
|
{
|
2023-09-20 11:54:12 +03:30
|
|
|
|
public ComplexUser()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-10-13 16:25:34 +03:30
|
|
|
|
public ComplexUser(Guid userId, Guid complexId)
|
2023-09-20 11:54:12 +03:30
|
|
|
|
{
|
|
|
|
|
|
UserId = userId;
|
|
|
|
|
|
ComplexId = complexId;
|
|
|
|
|
|
}
|
2023-09-18 09:45:02 +03:30
|
|
|
|
public Guid UserId { get; internal set; }
|
|
|
|
|
|
public Guid ComplexId { get; internal set; }
|
2023-09-15 12:37:02 +03:30
|
|
|
|
|
2023-09-18 09:45:02 +03:30
|
|
|
|
public ApplicationUser? User { get; internal set; }
|
|
|
|
|
|
public Complex? Complex { get; internal set; }
|
2023-10-13 16:25:34 +03:30
|
|
|
|
|
|
|
|
|
|
public List<ComplexUserRole> Roles { get; internal set; } = new();
|
2023-09-15 12:37:02 +03:30
|
|
|
|
}
|