1a44133a63
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 <noreply@anthropic.com>
16 lines
585 B
C#
16 lines
585 B
C#
namespace PowderCoating.Core.Entities;
|
|
|
|
public class JobTimeEntry : BaseEntity
|
|
{
|
|
public int JobId { get; set; }
|
|
public string? UserId { get; set; } // FK to AspNetUsers
|
|
public string? UserDisplayName { get; set; } // snapshot of worker name at entry creation time
|
|
public DateTime WorkDate { get; set; }
|
|
public decimal HoursWorked { get; set; }
|
|
public string? Stage { get; set; } // e.g. "Sandblasting", "Coating", "Masking" — free text
|
|
public string? Notes { get; set; }
|
|
|
|
// Navigation
|
|
public virtual Job Job { get; set; } = null!;
|
|
}
|