littleshop/LittleShop/Migrations
SysAdmin d9efababa6 Feature: Add product variant price override support
Enables individual variants to have their own prices, overriding the base product price.

**Database Changes:**
- Added Price (decimal?, nullable) to ProductVariants table
- Added ProductVariantId to OrderItems table with foreign key relationship
- Created index on OrderItems.ProductVariantId for performance

**API Changes:**
- ProductVariantDto: Added Price field
- CreateProductVariantDto: Added Price field with validation
- UpdateProductVariantDto: Added Price field
- OrderItemDto: Added ProductVariantId and ProductVariantName
- CreateOrderItemDto: Added ProductVariantId

**Business Logic:**
- OrderService: Variant price overrides base price (but multi-buy takes precedence)
- ProductService: All variant CRUD operations support Price field

**Admin UI:**
- CreateVariant: Price input with £ symbol and base price placeholder
- EditVariant: Price editing with £ symbol
- ProductVariants list: Shows variant price or "(base)" indicator

**Client Library:**
- Updated all DTOs to match server-side changes
- Full support for variant pricing in order creation

**Migration:**
- EF Core migration: 20251003173458_AddVariantPricing
- Backward compatible: NULL values supported for existing data

**Use Case:**
Products with size/color variants can now have different prices:
- Small T-shirt: £15.00 (variant override)
- Medium T-shirt: £18.00 (uses base price)
- Large T-shirt: £20.00 (variant override)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-03 18:35:43 +01:00
..
20250922025753_AddProductMultiBuysTable.cs 🔒 SECURITY: Emergency fixes and hardening 2025-09-22 05:45:49 +01:00
20250922025753_AddProductMultiBuysTable.Designer.cs 🔒 SECURITY: Emergency fixes and hardening 2025-09-22 05:45:49 +01:00
20250922040637_AddSystemSettingsTable.cs 🔒 SECURITY: Emergency fixes and hardening 2025-09-22 05:45:49 +01:00
20250922040637_AddSystemSettingsTable.Designer.cs 🔒 SECURITY: Emergency fixes and hardening 2025-09-22 05:45:49 +01:00
20250928014850_AddVariantCollectionsAndSalesLedger.cs Configure push notifications for internal-only access 2025-09-30 21:15:42 +01:00
20250928014850_AddVariantCollectionsAndSalesLedger.Designer.cs Configure push notifications for internal-only access 2025-09-30 21:15:42 +01:00
20250928155814_AddWeightToProductVariants.cs Configure push notifications for internal-only access 2025-09-30 21:15:42 +01:00
20250928155814_AddWeightToProductVariants.Designer.cs Configure push notifications for internal-only access 2025-09-30 21:15:42 +01:00
20251003173458_AddVariantPricing.cs Feature: Add product variant price override support 2025-10-03 18:35:43 +01:00
20251003173458_AddVariantPricing.Designer.cs Feature: Add product variant price override support 2025-10-03 18:35:43 +01:00
LittleShopContextModelSnapshot.cs Feature: Add product variant price override support 2025-10-03 18:35:43 +01:00