Development #7083
Updated by Kyle Chong 3 months ago
Refer to: * docs/planning/02_Database_Design_TableDesigns.md * docs/planning/01_Architecture.md Set up the centralized POS+ Backend Firebird database. Scope: * Use Firebird 5.1 for POS+ Backend. * Create Server (docs/planning/01_Architecture.md). Build the required documented Backend database structure. * Store synchronized QubeBiz master/configuration data. * Store transactions collected from Cashier terminals. * Store synchronization/control information. * Store applicable audit/history data. * Support multiple Cashier terminals belonging to the same store. * Ensure transaction records can be traced to Store/Terminal/Business Date. * Support the required 7-year data retention. * API, worker or service. Define appropriate indexes for long-term transaction volume. * Ensure historical data growth does not unnecessarily degrade normal store operation. * Provide database initialization/version/migration handling for future Backend releases. * Do not interfere with existing Firebird 2.5 databases. contracts, retries, security and diagnostics, then add automated tests. Done when: Backend has a working Firebird 5.1 database capable of supporting store master data, POS transactions, synchronization and long-term retention. when Cashier/QubeBiz integration passes the linked acceptance scenario.