Initial commit

This commit is contained in:
2026-04-23 21:38:24 -04:00
commit 63e12a9636
1762 changed files with 1672620 additions and 0 deletions
@@ -0,0 +1,56 @@
namespace PowderCoating.Core.Entities;
public class JobItem : BaseEntity
{
public int JobId { get; set; }
public string Description { get; set; } = string.Empty;
public decimal Quantity { get; set; }
// Powder/Material Information
public string? ColorName { get; set; }
public string? ColorCode { get; set; }
public string? Finish { get; set; } // Gloss, Matte, Satin, etc.
// Measurements
public decimal? SurfaceArea { get; set; }
public decimal SurfaceAreaSqFt { get; set; }
// Catalog item reference (optional — null for generic/labor items)
public int? CatalogItemId { get; set; }
// Pricing
public decimal UnitPrice { get; set; }
public decimal TotalPrice { get; set; }
public decimal LaborCost { get; set; }
public bool IsGenericItem { get; set; }
public decimal? ManualUnitPrice { get; set; }
public decimal? PowderCostOverride { get; set; } // Optional unit price override for catalog items
public bool IsLaborItem { get; set; }
public bool IsSalesItem { get; set; }
public string? Sku { get; set; }
public bool IncludePrepCost { get; set; } = true;
// Processing Details
public bool RequiresSandblasting { get; set; }
public bool RequiresMasking { get; set; }
public int EstimatedMinutes { get; set; }
public string? Notes { get; set; }
// Part complexity level — applies a price multiplier for calculated items
// Values: "Simple" | "Moderate" | "Complex" | "Extreme"
public string? Complexity { get; set; }
// AI-generated standardized tags (comma-separated, e.g. "automotive,tubular")
public string? AiTags { get; set; }
// Link to shared AI prediction record (null for non-AI items; shared with QuoteItem when converted)
public int? AiPredictionId { get; set; }
public virtual AiItemPrediction? AiPrediction { get; set; }
// Relationships
public virtual Job Job { get; set; } = null!;
public virtual CatalogItem? CatalogItem { get; set; }
public virtual ICollection<JobItemCoat> Coats { get; set; } = new List<JobItemCoat>();
public virtual ICollection<JobItemPrepService> PrepServices { get; set; } = new List<JobItemPrepService>();
}