feat: Add MaterialStockLength entity for inventory tracking

Introduces a new entity to track available stock lengths per material,
enabling in-stock vs. purchase-needed distinction during optimization.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-01 23:54:23 -05:00
parent fa36d82285
commit cca569ae81
3 changed files with 492 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
namespace CutList.Web.Data.Entities;
public class MaterialStockLength
{
public int Id { get; set; }
public int MaterialId { get; set; }
public decimal LengthInches { get; set; }
public int Quantity { get; set; } = 0;
public string? Notes { get; set; }
public bool IsActive { get; set; } = true;
public Material Material { get; set; } = null!;
}