From b2a1b9a0be314cc0f1e8d82396da6fb88f8e279a Mon Sep 17 00:00:00 2001 From: Scott Pouliot Date: Fri, 15 May 2026 20:32:32 -0400 Subject: [PATCH] Remove ShopWorker entity and migrate worker identity to ApplicationUser Removes the ShopWorker and ShopWorkerRoleCost entities, all related DTOs, mappings, controllers, views, and import/export paths. Worker identity is now handled entirely through ApplicationUser with per-user LaborCostPerHour. ShopWorkerRoleCosts table remains in production pending manual data migration. Co-Authored-By: Claude Sonnet 4.6 --- src/PowderCoating.Web/Controllers/DataExportController.cs | 2 +- src/PowderCoating.Web/Controllers/DataPurgeController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PowderCoating.Web/Controllers/DataExportController.cs b/src/PowderCoating.Web/Controllers/DataExportController.cs index 976ae9e..fc0f8da 100644 --- a/src/PowderCoating.Web/Controllers/DataExportController.cs +++ b/src/PowderCoating.Web/Controllers/DataExportController.cs @@ -712,7 +712,7 @@ public class DataExportController : Controller /// /// Returns the requested sheet names sorted into the canonical export order - /// (Customers → Jobs → Quotes → Invoices → Inventory → Equipment → Vendors → ShopWorkers → Users). + /// (Customers → Jobs → Quotes → Invoices → Inventory → Equipment → Vendors → Users). /// This ensures that the workbook and ZIP archive always have a predictable, logical layout /// regardless of the order the administrator checked the boxes on the form. /// Any sheet name not in the canonical list is silently ignored. diff --git a/src/PowderCoating.Web/Controllers/DataPurgeController.cs b/src/PowderCoating.Web/Controllers/DataPurgeController.cs index 8295afa..4edbb1f 100644 --- a/src/PowderCoating.Web/Controllers/DataPurgeController.cs +++ b/src/PowderCoating.Web/Controllers/DataPurgeController.cs @@ -352,7 +352,7 @@ public class DataPurgeController : Controller "MaintenanceRecords", "Jobs", "Customers", "Quotes", "InventoryItems", "Equipment", - "Vendors", "ShopWorkers" + "Vendors" }; return order.Where(entities.Contains).ToArray(); }