Trade-Core DB Audit Guide
Safe audit guide before moving trade-core from in-memory stores to Postgres persistence.
Audit Checklist
- inspect backend/config/db.js
- inspect backend/routes/tradeCore.js
- confirm existing trade tables
- identify current in-memory stores
- plan DB mapping before code
In-Memory to DB Mapping
ORDERStrade_orders
WALLET_LEDGERtrade_wallet_ledger
ACTIVITYtrade_activity_log
NOTIFICATIONStrade_notifications
Safety Rules
- no manual psql
- use backend/config/db.js only
- create route/script for schema check
- test with localhost curl
- no frontend changes during DB migration