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 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.