From 454cd9bfd984daa2db643bb6191846f1529883d2 Mon Sep 17 00:00:00 2001 From: SysAdmin Date: Fri, 3 Oct 2025 21:00:21 +0100 Subject: [PATCH] Fix: Remove Weight/WeightUnit from ProductVariant model - columns don't exist in DB --- LittleShop/Models/ProductVariant.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/LittleShop/Models/ProductVariant.cs b/LittleShop/Models/ProductVariant.cs index 0c41f74..82e87a8 100644 --- a/LittleShop/Models/ProductVariant.cs +++ b/LittleShop/Models/ProductVariant.cs @@ -23,10 +23,6 @@ public class ProductVariant public int StockLevel { get; set; } = 0; // Optional: track stock per variant - public decimal? Weight { get; set; } // Optional: override product weight for this variant - - public ProductWeightUnit? WeightUnit { get; set; } // Optional: override product weight unit for this variant - public decimal? Price { get; set; } // Optional: override product price for this variant (if null, uses product.Price) public DateTime CreatedAt { get; set; } = DateTime.UtcNow;