This commit establishes the database foundation for the HR Platform.
Key changes include:
- Defined the complete data schema in `docs/API_CONTRACTS.md` to serve as a single source of truth.
- Integrated `knex.js` with `sqlite3` to manage the database connection and schema.
- Implemented a version-controlled migration system and created initial migrations for all required tables.
- Created seed files to populate the database with sample data for development.
- Addressed security feedback by using `bcrypt` to hash user passwords in the seed data and adding the SQLite database file to `.gitignore`.
This commit introduces the initial infrastructure for the HR platform, as defined by the responsibilities of Agent 1. It includes:
- A `Dockerfile` for building the Node.js application container.
- A `docker-compose.yml` file to orchestrate the `api` and `db` services.
- An `.env.example` file to define the required environment variables.
- A `.gitignore` file to exclude unnecessary files from version control.
- A log file in `docs/agents/agent-01-infraestructura.md` to document the changes.
Define la estructura de directorios y la documentación inicial para orquestar el trabajo de los agentes de IA.
- Crea los directorios `src` y `docs/agents`.
- Genera archivos de bitácora individuales para cada uno de los 13 agentes definidos.
- Introduce `docs/CONVENTIONS.md` para establecer las reglas de nomenclatura, estilo de código y contratos de API.
- Actualiza el `README.md` principal con una sección que detalla el nuevo flujo de trabajo basado en agentes, explicando cómo deben operar y documentar su progreso.
Este cambio sienta las bases para un desarrollo estructurado, trazable y coherente, de acuerdo con el rol del Agente 0 (Arquitectura y Orquestación).