namespace DocuMed.Domain.Entities.Hospitals;

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

    public Hospital(string name, string detail, string address, Guid universityId)
    {
        Name = name;
        Detail = detail;
        Address = address;
        UniversityId = universityId;
    }
    public string Name { get; internal set; } = string.Empty;
    public string Detail { get; internal set; } = string.Empty;
    public string Address { get; internal set; } = string.Empty;
    public Guid UniversityId { get; internal set; }
    public University? University { get; internal set; }

    public virtual List<Section> Sections { get; internal set; } = new ();
}