Development #7214
Updated by Kyle Chong 3 months ago
Refer to: * docs/planning/modules/M17_Training_Mode.md * relevant database architecture MD * When entering Training Mode, prepare an isolated Mode (M17) (docs/planning/modules/M17_Training_Mode.md). There is no implemented training database set for Training operation. Scope: * Copy one set pair. Prove safe copy, validation and atomic switch of the current POS Master DB. * Copy/create one set of the required Transaction/Training DB. * The copied databases become the active database set for Training Mode. * Production databases must Master.db plus Transactions.db together. Simulate crash during switch and confirm live files remain untouched. * Validate that the Training database set is successfully prepared before allowing Training Mode to start. * If database preparation fails, remain in Production Mode and show/log the error. Done when: POS+ can create an isolated database set from the current POS data for Training Mode without modifying the Production database set. usable.