using Lada.Framework.Data.Domains.Categories;
using Lada.Framework.DTO;
using Lada.Framework.Data.Domains.Categories;

namespace Ladaer.BackEnd.Infrastructures.DTO.Models.Categories
{
    public class LocationModel : BaseModel<int>
    {
        public string Name { get; set; }
        public string Code { get; set; } = "";
        public string Description { get; set; } = "";
        public int DisplayOrder { get; set; }

        /// <summary>
        /// Danh mục cha
        /// </summary>
        public int ParentId { get; set; }
        public string ParentName { get; set; } = "";
        public int CityId { get; set; }
        public string CityName { get; set; } = "";


        /// <summary>
        /// 1: Tỉnh / thành phố, 2: Quận / huyện, 3: Phường / xã
        /// </summary>
        public byte Level { get; set; }

        public LocationType Type { get; set; }


        public string Prefix { get; set; } = "";
        public string CombinedName { get; set; } = "";


    }
}
