refactor: Replace SupplierStock with StockItem/SupplierOffering model
- Remove SupplierStock entity - Update Material navigation from SupplierStocks to StockItems - Update Supplier navigation from Stocks to Offerings - Update ApplicationDbContext with new DbSets and configurations - Add unique constraints: StockItem(MaterialId, LengthInches) and SupplierOffering(SupplierId, StockItemId) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -10,7 +10,7 @@ public class Material
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
public ICollection<SupplierStock> SupplierStocks { get; set; } = new List<SupplierStock>();
|
||||
public ICollection<StockItem> StockItems { get; set; } = new List<StockItem>();
|
||||
public ICollection<MaterialStockLength> StockLengths { get; set; } = new List<MaterialStockLength>();
|
||||
public ICollection<ProjectPart> ProjectParts { get; set; } = new List<ProjectPart>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user