mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 18:53:12 +00:00
* fix(migrations): make Phase6 completion slide-over migration idempotent Use IF EXISTS / IF COL_LENGTH guards and explicit EF migration metadata so partial environments can apply Phase 6 safely. * feat(locations): add sites options endpoint and vendor contactName Expose GET /api/locations/sites for the WO create wizard and include vendor contactName on dropdown responses. * feat(work-orders): add structured service notes POC and vendor fields Persist primary/extra services, service notes, free-text POC, and tech/vendor notes on create/patch/board/detail instead of embedding them in description. * fix(work-orders): make stacked tip build for CI quality gates * fix(work-orders): align stacked services with CI build * fix(work-orders): keep FlagColor out of structured-notes slice Remove FlagColor model/API/tests from this PR so schema and EF model stay aligned with the structured-fields migration. FlagColor remains in the follow-on PR that adds its migration. --------- Co-authored-by: Arthur Bassi <arthur.winiarski.ranger@outlook.com>
33 lines
865 B
C#
33 lines
865 B
C#
using Data.SeaHavenIndustries.Enums;
|
|
|
|
namespace SeaHaven.DataServices.Interfaces
|
|
{
|
|
public record WorkOrderDetailExtendedFields(
|
|
string? Description,
|
|
string? Trade,
|
|
string? Problem,
|
|
string? SubTrade,
|
|
DateOnly? OriginalWeek,
|
|
DateOnly? OriginalDate,
|
|
DateTime? CompletedDate,
|
|
string? SignOffName,
|
|
string? SignOffAttachment,
|
|
string? SignOffSignature,
|
|
string? ExtraServices,
|
|
string? ServiceNotes,
|
|
string? VendorNotes);
|
|
|
|
public record DispatchSignoffRow(
|
|
int DispatchId,
|
|
string? SignoffType,
|
|
string? Name,
|
|
DateTime? SignedAt);
|
|
|
|
public record CompletionDocTemplateRow(
|
|
int Id,
|
|
string Name,
|
|
string ServiceKey,
|
|
WorkOrderType? WorkOrderType,
|
|
string TemplateUrl,
|
|
bool IsActive);
|
|
}
|