Rebadge the rest of the files
This commit is contained in:
15
src/Imprink.Domain/Entities/Product/Category.cs
Normal file
15
src/Imprink.Domain/Entities/Product/Category.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace Imprink.Domain.Entities.Product;
|
||||
|
||||
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>();
|
||||
}
|
||||
18
src/Imprink.Domain/Entities/Product/Product.cs
Normal file
18
src/Imprink.Domain/Entities/Product/Product.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Imprink.Domain.Entities.Orders;
|
||||
|
||||
namespace Imprink.Domain.Entities.Product;
|
||||
|
||||
public class Product : EntityBase
|
||||
{
|
||||
public required string Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public required decimal BasePrice { get; set; }
|
||||
public required bool IsCustomizable { get; set; }
|
||||
public required bool IsActive { get; set; }
|
||||
public string? ImageUrl { get; set; }
|
||||
public Guid? CategoryId { get; set; }
|
||||
|
||||
public virtual required Category Category { get; set; }
|
||||
public virtual ICollection<ProductVariant> ProductVariants { get; set; } = new List<ProductVariant>();
|
||||
public virtual ICollection<OrderItem> OrderItems { get; set; } = new List<OrderItem>();
|
||||
}
|
||||
18
src/Imprink.Domain/Entities/Product/ProductVariant.cs
Normal file
18
src/Imprink.Domain/Entities/Product/ProductVariant.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Imprink.Domain.Entities.Orders;
|
||||
|
||||
namespace Imprink.Domain.Entities.Product;
|
||||
|
||||
public class ProductVariant : EntityBase
|
||||
{
|
||||
public required Guid ProductId { get; set; }
|
||||
public required string Size { get; set; }
|
||||
public string? Color { get; set; }
|
||||
public required decimal Price { get; set; }
|
||||
public string? ImageUrl { get; set; }
|
||||
public required string Sku { get; set; }
|
||||
public int StockQuantity { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
|
||||
public virtual required Imprink.Domain.Entities.Product.Product Product { get; set; }
|
||||
public virtual ICollection<OrderItem> OrderItems { get; set; } = new List<OrderItem>();
|
||||
}
|
||||
Reference in New Issue
Block a user