refactor: Rename Project to Job with enhanced model
Rename the Project concept to Job for clarity: - Add Job, JobPart, JobStock entities - JobStock supports both inventory stock and custom lengths - Add JobNumber field for job identification - Add priority-based stock allocation for cut optimization - Include Jobs UI pages (Index, Edit, Results) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
19
CutList.Web/Data/Entities/Job.cs
Normal file
19
CutList.Web/Data/Entities/Job.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace CutList.Web.Data.Entities;
|
||||
|
||||
public class Job
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string JobNumber { get; set; } = string.Empty;
|
||||
public string? Name { get; set; }
|
||||
public string? Customer { get; set; }
|
||||
public int? CuttingToolId { get; set; }
|
||||
public string? Notes { get; set; }
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
public CuttingTool? CuttingTool { get; set; }
|
||||
public ICollection<JobPart> Parts { get; set; } = new List<JobPart>();
|
||||
public ICollection<JobStock> Stock { get; set; } = new List<JobStock>();
|
||||
|
||||
public string DisplayName => string.IsNullOrWhiteSpace(Name) ? JobNumber : $"{JobNumber} - {Name}";
|
||||
}
|
||||
Reference in New Issue
Block a user