Introduce new data model that separates stock catalog (StockItem) from supplier-specific pricing/catalog info (SupplierOffering). StockItem represents a Material+Length combination, while SupplierOffering links suppliers to stock items with part numbers, descriptions, and pricing. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
16 lines
534 B
C#
16 lines
534 B
C#
namespace CutList.Web.Data.Entities;
|
|
|
|
public class StockItem
|
|
{
|
|
public int Id { get; set; }
|
|
public int MaterialId { get; set; }
|
|
public decimal LengthInches { get; set; }
|
|
public string? Name { get; set; }
|
|
public bool IsActive { get; set; } = true;
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
public DateTime? UpdatedAt { get; set; }
|
|
|
|
public Material Material { get; set; } = null!;
|
|
public ICollection<SupplierOffering> SupplierOfferings { get; set; } = new List<SupplierOffering>();
|
|
}
|