namespace CMSMicroservice.Domain.Entities;
//دسته بندی
public class Category : BaseAuditableEntity
{
    //نام لاتین
    public string Name { get; set; }
    //عنوان
    public string Title { get; set; }
    //توضیحات
    public string? Description { get; set; }
    //آدرس تصویر
    public string? ImagePath { get; set; }
    //شناسه والد
    public long? ParentId { get; set; }
    //Category Navigation Property
    public virtual Category? Parent { get; set; }
    //فعال؟
    public bool IsActive { get; set; }
    //ترتیب نمایش
    public int SortOrder { get; set; }
    //Category Collection Navigation Reference
    public virtual ICollection<Category> Categories { get; set; }
    //ProductCategory Collection Navigation Reference
    public virtual ICollection<ProductCategory> ProductCategories { get; set; }
}
