using Bp.Sync.Domain.Elastics.BaseEntities;

namespace Bp.Sync.Domain.Elastics.Inventories.Categories
{
    public class UserDistrictElastic : ElasticBaseEntityWithKey<long>
    {
        public int UserId { get; set; }
        public int DistrictId { get; set; }
        public bool InActive { get; set; }

        //base catoegory
        /// <summary>
        /// Tên
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Tên không dấu
        /// </summary>
        public string UnsignName { get; set; }

        /// <summary>
        /// Mã
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// Mô tả
        /// </summary>
        public string Description { get; set; }

        //area
        public Region Region { get; set; }

        //city
        /// <summary>
        /// Mã khu vực
        /// </summary>
        public int? AreaId { get; set; }

        public string AreaName { get; set; }

        //District
        /// <summary>
        /// Mã tỉnh / thành phố
        /// </summary>
        public int CityId { get; set; }

        public string CityName { get; set; }

        /// <summary>
        /// true: Nội thành, false: ngoại thành
        /// </summary>
        public bool IsUrban { get; set; }

        public string DistrictName { get; set; }
    }
}