Api/Brizco.Domain/Entities/Shift/Shift.cs

29 lines
1.0 KiB
C#
Raw Normal View History

namespace Brizco.Domain.Entities.Shift;
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
[GenerateMapper]
2023-09-15 12:37:02 +03:30
public partial class Shift : ApiEntity
{
public Shift() { }
internal Shift(string title, string description, TimeSpan startAt, TimeSpan endAt,Guid complexId)
2023-09-15 12:37:02 +03:30
{
Title = title;
Description = description;
StartAt = startAt;
EndAt = endAt;
ComplexId = complexId;
2023-09-15 12:37:02 +03:30
}
public string Title { get; internal set; } = string.Empty;
public TimeSpan StartAt { get; internal set; }
public TimeSpan EndAt { get; internal set; }
public string Description { get; internal set; } = string.Empty;
2023-09-15 12:37:02 +03:30
public Guid ComplexId { get; set; }
public Complex.Complex? Complex { get; set; }
2023-11-13 14:42:49 +03:30
public List<ShiftDay> Days { get; internal set; } = new();
public List<ShiftPlan> Plans { get; internal set; } = new();
2023-11-13 14:42:49 +03:30
public List<ShiftRoutine> Routines { get; internal set; } = new();
2023-09-15 12:37:02 +03:30
}