namespace DocuMed.Domain.Entities.Hospitals;

[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
[GenerateMapper]
public partial class Section : ApiEntity
{

    public Section()
    {

    }

    public Section(string name, string detail, Guid hospitalId)
    {
        Name = name;
        Detail = detail;
        HospitalId = hospitalId;
    }

    public string Name { get; internal set; } = string.Empty;
    public string Detail { get; internal set; } = string.Empty;

    public Guid HospitalId { get; internal set; }
    public Hospital? Hospital { get; internal set; }
}