Context
CashPilot uses SQLite for earnings storage and configuration. The database module should be tested to prevent regressions.
Task
- Write tests using an in-memory SQLite database
- Verify schema creation succeeds (tables: earnings, health_events, nodes, etc.)
- Test earnings insert and query (insert a row, query it back)
- Test config CRUD operations
Reference
app/database.py — database module