shoc-backend/Data.SeaHavenIndustries
Adam Moussa 6f8f67735a Add DynamoDB sync bridge for workorder-ingest pipeline
- Add ExternalWorkOrderId, Customer, SiteCode, Building, Severity,
  DateReported, ScheduledStart, SourceEmailS3Key to WorkOrder model
- Add Commenter, RecordType, ExternalCommentId to Comments model
- Add AWSSDK.DynamoDBv2 package
- Create SyncController with endpoints:
  - POST /api/Sync/WorkOrders — scans DynamoDB WorkOrders table, upserts into SQL
  - POST /api/Sync/Comments — scans DynamoDB WorkOrderComments, creates Comments
  - POST /api/Sync/All — runs both
- Auto-creates Locations from site_code/building/address during sync
- Maps DynamoDB status values to SHOC status strings
- Maps severity to SHOC priority format (Sev N)
- Deduplicates on ExternalWorkOrderId / ExternalCommentId
2026-04-16 17:29:52 -04:00
..
Auth fix 2026-03-30 06:49:40 -05:00
Migrations Add DynamoDB sync bridge for workorder-ingest pipeline 2026-04-16 17:29:52 -04:00
Models Add DynamoDB sync bridge for workorder-ingest pipeline 2026-04-16 17:29:52 -04:00
Data.SeaHavenIndustries.csproj Initial commit 2024-09-28 14:58:36 -04:00