Trade-Core DB Handoff
Current handoff notes for the safe trade-core DB persistence layer.
Current DB Persistence Layer
Trade-core keeps in-memory operation active while DB writes and DB read fallbacks are verified. DB persistence is additive and must not remove memory fallback yet.
Tables
- trade_orders
- trade_wallet_ledger
- trade_activity_log
- trade_notifications
Rules
- in-memory fallback must stay until DB read/write is verified
- no manual psql
- use backend/config/db.js only
- do not touch fragile yarn buyer or seller pages during DB migration
- verify backend curl checks before any UI expansion