Commit Graph

4 Commits

Author SHA1 Message Date
Marco Gallegos
bcded88373 Merge branch 'feat/backend-core-setup-17551761085875550719' into main 2025-12-13 16:12:04 -06:00
google-labs-jules[bot]
7db61d9af9 feat: Set up database and data models
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`.
2025-12-13 22:08:28 +00:00
google-labs-jules[bot]
dcf9cbdc65 feat(db): Implementar sistema de migraciones y esquema inicial
Como Agente 3, este commit establece la fundación de la base de datos.

- Inicializa un proyecto Node.js con `package.json`.
- Añade `knex` y `pg` como dependencias para la gestión de la base de datos.
- Introduce `.gitignore` para excluir `node_modules`.
- Configura `knexfile.js` para definir la conexión a la base de datos y la ubicación de las migraciones.
- Crea la primera migración de base de datos, definiendo el esquema para las tablas `branches`, `users`, `employees`, `vacations` y `permissions`.
- Actualiza la bitácora del Agente 3 para documentar estas acciones.

Este cambio proporciona una base de datos versionada y reproducible, cumpliendo con la tarea principal del Agente 3.
2025-12-13 21:56:06 +00:00
google-labs-jules[bot]
3e6deb7236 feat: Initialize Node.js backend foundation
This commit lays the groundwork for the HR Platform's backend.

Key changes include:
- Initialized a Node.js project with `npm`.
- Added `express` as the core web framework.
- Established the backend source code structure in the `src/` directory.
- Implemented a basic Express server in `src/index.js`.
- Added a `/health` endpoint for monitoring.
- Included a centralized error-handling middleware.
- Configured the server port to be read from an environment variable (`process.env.PORT`).
- Added a `start` script to `package.json` for running the application.
- Created a log file for Agent 2 to document backend development progress.
2025-12-13 21:43:28 +00:00