Api/Brizco.Domain/Entities/Shifts/ShiftPlanUser.cs

28 lines
835 B
C#
Raw Normal View History

2024-07-06 21:20:10 +03:30
using Brizco.Domain.Entities.Users;
2023-09-15 12:37:02 +03:30
2024-07-06 21:20:10 +03:30
namespace Brizco.Domain.Entities.Shifts;
2023-09-15 12:37:02 +03:30
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
[GenerateMapper]
2023-09-15 12:37:02 +03:30
public class ShiftPlanUser : ApiEntity
{
public ShiftPlanUser()
{
}
2023-11-19 22:06:49 +03:30
public ShiftPlanUser(Guid shiftPlanId,Guid positionId, Guid userId)
2023-09-15 12:37:02 +03:30
{
ShiftPlanId = shiftPlanId;
2023-11-19 22:06:49 +03:30
PositionId = positionId;
UserId = userId;
2023-09-15 12:37:02 +03:30
}
public Guid ShiftPlanId { get; internal set; }
public ShiftPlan? ShiftPlan { get; internal set; }
2023-09-15 12:37:02 +03:30
2023-11-19 22:06:49 +03:30
public Guid PositionId { get; internal set; }
public Position? Position { get; internal set; }
public Guid UserId { get; internal set; }
public ApplicationUser? User { get; internal set; }
2023-09-15 12:37:02 +03:30
}