Add a PostgreSQL transport to Winston so bot logs are persisted to the database alongside file/console output.
Requirements
Implementation Notes
- Use the existing db.js pool — no separate connection
- Migration: CREATE TABLE IF NOT EXISTS on startup
- Consider batch inserts to reduce DB round-trips
- Index on timestamp + level for efficient querying
- Dashboard task will eventually consume these logs
Acceptance Criteria
- Logs written to PostgreSQL
- Configurable retention and pruning
- No performance impact when DB unavailable