shoc-backend/Data.SeaHavenIndustries/Models
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
..
Accounts.cs added new controllers 2026-01-21 15:41:19 -06:00
Addresses.cs added new controllers 2026-01-21 15:41:19 -06:00
Assets.cs added new controllers 2026-01-21 15:41:19 -06:00
Category.cs Initial commit 2024-09-28 14:58:36 -04:00
Comments.cs Add DynamoDB sync bridge for workorder-ingest pipeline 2026-04-16 17:29:52 -04:00
ContactDetails.cs added new controllers 2026-01-21 15:41:19 -06:00
Contacts.cs fix 2026-01-21 16:24:54 -06:00
Employee.cs added new controllers 2026-01-21 15:41:19 -06:00
FollowUps.cs added new controllers 2026-01-21 15:41:19 -06:00
ForgetPasswordCode.cs Initial commit 2024-09-28 14:58:36 -04:00
Locations.cs Add LocationController with full CRUD and extended model 2026-04-16 17:09:59 -04:00
PMSchedules.cs added new controllers 2026-01-21 15:41:19 -06:00
Quotes.cs Initial commit 2024-09-28 14:58:36 -04:00
Template.cs Initial commit 2024-09-28 14:58:36 -04:00
WorkerOrder.cs Add DynamoDB sync bridge for workorder-ingest pipeline 2026-04-16 17:29:52 -04:00
WorkOrderAttachments.cs Initial commit 2024-09-28 14:58:36 -04:00
WorkOrderCategories.cs Initial commit 2024-09-28 14:58:36 -04:00
WorkOrderContacts.cs Initial commit 2024-09-28 14:58:36 -04:00