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>
17 lines
515 B
C#
17 lines
515 B
C#
namespace CutList.Web.Data.Entities;
|
|
|
|
public class SupplierOffering
|
|
{
|
|
public int Id { get; set; }
|
|
public int StockItemId { get; set; }
|
|
public int SupplierId { get; set; }
|
|
public string? PartNumber { get; set; }
|
|
public string? SupplierDescription { get; set; }
|
|
public decimal? Price { get; set; }
|
|
public string? Notes { get; set; }
|
|
public bool IsActive { get; set; } = true;
|
|
|
|
public StockItem StockItem { get; set; } = null!;
|
|
public Supplier Supplier { get; set; } = null!;
|
|
}
|