using Baya.Domain.Common;

namespace Baya.Domain.Entities.Geography;

/// <summary>
/// A city under a <see cref="Province"/> — the main address/search granularity. A nurse who declares a
/// city with no district covers the whole city; search intersects on cities and districts, never on a GPS
/// radius.
/// </summary>
public class City : BaseEntity<long>
{
    public long ProvinceId { get; set; }
    public Province Province { get; set; }

    public string NameFa { get; set; }
    public string NameEn { get; set; }
    public int SortOrder { get; set; }
    public bool IsActive { get; set; }

    public DateTimeOffset? DeletedAt { get; set; }

    public ICollection<District> Districts { get; set; }
}
