using Baya.Domain.Common;

namespace Baya.Domain.Entities.Geography;

/// <summary>
/// Top of the geo hierarchy (Iran's 31 استان). Stored as a table — not a static list — so a new region
/// launches with an admin insert, and <see cref="SortOrder"/>/<see cref="IsActive"/> drive ordered,
/// toggleable cascading dropdowns. Deactivated far more often than deleted, so a toggled-off province
/// vanishes from public dropdowns without orphaning the addresses/service areas under it.
/// </summary>
public class Province : BaseEntity<long>
{
    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<City> Cities { get; set; }
}
