namespace Brizco.Domain.Entities.Complex;

[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
[AdaptTwoWays("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget)]
[AdaptTo("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Projection)]
[GenerateMapper]
public partial class Position : ApiEntity
{
    public Position()
    {
        
    }
    public Position(string name, string description, Guid complexId, Guid sectionId)
    {
        Name = name;
        Description = description;
        ComplexId = complexId;
        SectionId = sectionId;
    }
    public string Name { get; internal set; } = string.Empty;
    public string Description { get; internal set; } = string.Empty;

    public Guid ComplexId { get; set; }
    public Complex? Complex { get; set; }

    public Guid SectionId { get; set; }
    public Section? Section { get; set; }
}