using Baya.Domain.Common;

namespace Baya.Domain.Entities.Geography;

/// <summary>
/// An optional subdivision of a <see cref="City"/> — Tehran's 22 municipal مناطق, or major neighborhoods
/// elsewhere. Optional by design: a city with no districts is a valid whole-city-only region, and adding
/// neighborhoods elsewhere is a later admin insert, never a deploy.
/// </summary>
public class District : BaseEntity<long>
{
    public long CityId { get; set; }
    public City City { 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; }
}
