mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 22:23:12 +00:00
- DispatchChecklistItem model (DispatchId, WorkOrderId, ItemText, IsCompleted, CompletedBy, CompletedAt) - DispatchToVendor copies template items when TaskListTemplateId provided - Supports custom checklist items alongside template items - UpdateChecklistItem endpoint to toggle completion with user name - AddChecklistItem endpoint for ad-hoc items - GetDispatchById includes checklist items in response - Migration for DispatchChecklistItems table
19 lines
682 B
C#
19 lines
682 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Data.SeaHavenIndustries
|
|
{
|
|
public class DispatchChecklistItem : FullAuditEntity
|
|
{
|
|
public int DispatchId { get; set; }
|
|
[ForeignKey(nameof(DispatchId))]
|
|
public virtual Dispatch? Dispatch { get; set; }
|
|
public int? WorkOrderId { get; set; }
|
|
[ForeignKey(nameof(WorkOrderId))]
|
|
public virtual WorkOrder? WorkOrder { get; set; }
|
|
public string? ItemText { get; set; }
|
|
public bool IsCompleted { get; set; }
|
|
public string? CompletedBy { get; set; }
|
|
public DateTime? CompletedAt { get; set; }
|
|
public int SortOrder { get; set; }
|
|
}
|
|
}
|