Document legacy BOM tables

This commit is contained in:
Mikhail Chusavitin
2026-03-07 21:13:08 +03:00
parent 7c3752f110
commit 4e977737ee
2 changed files with 19 additions and 0 deletions

View File

@@ -113,6 +113,17 @@ Database: `RFQ_LOG`
| `qt_partnumber_book_items` | PN→LOT mapping rows (written by PriceForge) | SELECT |
| `qt_vendor_partnumber_seen` | Vendor PN tracking for unresolved/ignored BOM rows (`is_ignored`) | INSERT only for new `partnumber`; existing rows must not be modified |
Legacy server tables not used by QuoteForge runtime anymore:
- `qt_bom`
- `qt_lot_bundles`
- `qt_lot_bundle_items`
QuoteForge canonical BOM storage is:
- `qt_configurations.vendor_spec`
- row-level PN -> multiple LOT decomposition in `vendor_spec[].lot_mappings[]`
`qt_client_schema_state` current contract:
- identity key: `username + hostname`

View File

@@ -18,6 +18,14 @@ The vendor spec feature allows importing a vendor BOM (Bill of Materials) into a
`vendor_spec` is a JSON array of `VendorSpecItem` objects stored inside the configuration row.
It syncs to MariaDB `qt_configurations.vendor_spec` via the existing pending_changes mechanism.
Legacy storage note:
- QuoteForge does not use `qt_bom`
- QuoteForge does not use `qt_lot_bundles`
- QuoteForge does not use `qt_lot_bundle_items`
The only canonical persisted BOM contract for QuoteForge is `qt_configurations.vendor_spec`.
### `vendor_spec` JSON Schema
```json