littleshop/LittleShop.Client/Models/Product.cs
2025-08-27 18:02:39 +01:00

25 lines
781 B
C#

namespace LittleShop.Client.Models;
public class Product
{
public Guid Id { get; set; }
public string Name { get; set; } = string.Empty;
public string? Description { get; set; }
public decimal Price { get; set; }
public decimal Weight { get; set; }
public int WeightUnit { get; set; }
public Guid CategoryId { get; set; }
public string? CategoryName { get; set; }
public bool IsActive { get; set; }
public List<ProductPhoto> Photos { get; set; } = new();
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
}
public class ProductPhoto
{
public Guid Id { get; set; }
public string Url { get; set; } = string.Empty;
public string? AltText { get; set; }
public int SortOrder { get; set; }
}