Cleanup folder structure again
This commit is contained in:
15
src/Imprink.Domain/Entities/Category.cs
Normal file
15
src/Imprink.Domain/Entities/Category.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace Imprink.Domain.Entities;
|
||||
|
||||
public class Category : EntityBase
|
||||
{
|
||||
public string Name { get; set; } = null!;
|
||||
public string Description { get; set; } = null!;
|
||||
public string? ImageUrl { get; set; }
|
||||
public int SortOrder { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public Guid? ParentCategoryId { get; set; }
|
||||
|
||||
public virtual Category? ParentCategory { get; set; }
|
||||
public virtual ICollection<Category> SubCategories { get; set; } = new List<Category>();
|
||||
public virtual ICollection<Product> Products { get; set; } = new List<Product>();
|
||||
}
|
||||
Reference in New Issue
Block a user