feat(F-004,F-005): complete Quest and remaining domain schemas
Some checks failed
Build and Deploy / deploy (push) Blocked by required conditions
Build and Deploy / build (push) Has been cancelled

Quest Domain Complete (F-004):
- quest_account_request: new user registration requests
- quest_notification + alert reads: notification/alert system
- quest_email_event + subscriptions: email event management
- quest_email_log: email tracking
- quest_plant + inventory_type + inventory_plant: plant/inventory configuration
- quest_processed_order_acknowledgement_email: duplicate prevention

Remaining Domains Complete (F-005):

Shipment Requests:
- ship_request + ship_request_detail: shipment request cart workflow

Allocation Requests:
- alloc_request + alloc_request_detail + alloc_plant: coil allocation workflow

Invoice Management:
- inv_upload + inv_upload_entry + inv_upload_status: invoice upload/processing

Finance/AP:
- finance_ap_check_processing_batch + status: AP check processing

Paint Schedule:
- paint_plant + paint_line + paint_line_type + paint_plant_line + paint_schedule

Documentation:
- doc_category + doc_article + doc_article_permission_group: knowledge base

Wave/EDI:
- wave_process + wave_process_history: EDI processing

Task Scheduler:
- lts_task + lts_task_type + lts_task_schedule + lts_task_execution

Total: 60+ tables, 600+ columns across all domains. All migrations applied successfully.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Lorentz 2026-02-16 02:16:28 +00:00
parent e643af1fe6
commit d8af580d93
4 changed files with 1378 additions and 18 deletions

View file

@ -46,26 +46,26 @@
- [x] `quest_company` (EpicorCustID, display name, invoicing flags)
- [x] `quest_user` (FK to auth_user, IsSubUser, API token)
- [x] `quest_user_company` junction table
- [ ] `quest_account_request`
- [ ] `quest_notification` + `quest_user_notification_alert_read`
- [ ] `quest_email_event` + `quest_user_email_event` junction
- [ ] `quest_email_log`
- [ ] `quest_plant` + `quest_inventory_type` + `quest_inventory_plant`
- [ ] `quest_processed_order_acknowledgement_email`
- [ ] Run migration, verify
- **Deps:** F-003 | **Est:** 3 hrs | **Status:** 🔨 In Progress
- [x] `quest_account_request`
- [x] `quest_notification` + `quest_user_notification_alert_read`
- [x] `quest_email_event` + `quest_user_email_event` junction
- [x] `quest_email_log`
- [x] `quest_plant` + `quest_inventory_type` + `quest_inventory_plant`
- [x] `quest_processed_order_acknowledgement_email`
- [x] Run migration, verify
- **Deps:** F-003 | **Est:** 3 hrs | **Status:** ✅ Complete
### F-005: Prisma Schema - Remaining Domains
- [ ] `ship_request` + `ship_request_detail`
- [ ] `alloc_request` + `alloc_request_detail` + `alloc_plant`
- [ ] `inv_upload` + `inv_upload_entry` + `inv_upload_status`
- [ ] `finance_ap_check_processing_batch` + `finance_ap_check_processing_status`
- [ ] `paint_plant` + `paint_line` + `paint_line_type` + `paint_plant_line` + `paint_schedule`
- [ ] `doc_article` + `doc_category` + `doc_article_permission_group`
- [ ] `wave_process` + `wave_process_history`
- [ ] `lts_task` + `lts_task_type` + `lts_task_schedule` + related tables
- [ ] Run migration, verify all relationships
- **Deps:** F-004 | **Est:** 4 hrs
- [x] `ship_request` + `ship_request_detail`
- [x] `alloc_request` + `alloc_request_detail` + `alloc_plant`
- [x] `inv_upload` + `inv_upload_entry` + `inv_upload_status`
- [x] `finance_ap_check_processing_batch` + `finance_ap_check_processing_status`
- [x] `paint_plant` + `paint_line` + `paint_line_type` + `paint_plant_line` + `paint_schedule`
- [x] `doc_article` + `doc_category` + `doc_article_permission_group`
- [x] `wave_process` + `wave_process_history`
- [x] `lts_task` + `lts_task_type` + `lts_task_schedule` + related tables
- [x] Run migration, verify all relationships
- **Deps:** F-004 | **Est:** 4 hrs | **Status:** ✅ Complete
### F-006: Epicor MSSQL Connection Service
- [ ] `src/lib/epicor.ts` — connection pool with `mssql` package