Database Module
The Database Module (@ever-works/agent/database) provides the core data access layer for the Ever Works platform. It configures TypeORM, registers all entity repositories, and supports multiple database backends (SQLite, PostgreSQL, MySQL) with environment-driven configuration.
Module Structure
packages/agent/src/database/
├── index.ts # Barrel exports
├── database.config.ts # DatabaseConfig interface, ENTITIES array, config factory
├── database.module.ts # NestJS DatabaseModule with repository providers