docs: add MisData archival implementation and unit test report

Document the MisData_Curr/Hist table split in architecture docs, add
post-sync archival scripts to move BackLevel records to history table,
and generate comprehensive unit test report (856 tests, 100% pass rate).
This commit is contained in:
Joseph Doherty
2026-01-19 04:03:25 -05:00
parent 1e5b1bb3da
commit 08f5aa1447
4 changed files with 339 additions and 1 deletions
+8
View File
@@ -127,6 +127,8 @@ The scoping tool cache database includes these primary tables:
| `WorkOrder_Hist` | Historical work orders from JDE |
| `LotUsage_Curr` | Current lot usage from CMS |
| `LotUsage_Hist` | Historical lot usage from CMS |
| `MisData_Curr` | Current MIS data (Status='Current') from JDE |
| `MisData_Hist` | Historical MIS data (Status='BackLevel') from JDE |
| `Lot` | Lot reference data |
| `Item` | Item master reference data |
| `WorkCenter` | Work center reference data |
@@ -134,6 +136,12 @@ The scoping tool cache database includes these primary tables:
| `ProfitCenter` | Profit center reference data |
| `SchemaVersions` | DbUp tracking table (auto-created) |
### Views
| View | Purpose |
|------|---------|
| `MisData` | UNION ALL of `MisData_Curr` and `MisData_Hist` for unified MIS data access |
## Search Criteria Extraction Functions
The database includes SQL functions that extract filter criteria from the `Search.Criteria` JSON column. These functions enable the query builder to pass only a `SearchId` parameter, with all filter extraction happening in SQL Server.