refactor(db): Replace SELECT * with explicit columns in models
Replaced `SELECT *` statements across multiple data models with explicit column lists to improve query performance, reduce data transfer, and increase code clarity. This is part of the Phase 2 refactoring plan. - Refactored queries in the following models: - projectModel - toolsModel - attendanceModel - dailyIssueReportModel - issueTypeModel - workReportModel - userModel - dailyWorkReportModel fix(api): Add missing volume mounts to docker-compose Modified docker-compose.yml to mount the `config`, `middlewares`, `utils`, and `services` directories into the API container. This fixes a `MODULE_NOT_FOUND` error that caused the container to crash on startup. feat(db): Add migration for missing project columns Created a new database migration to add `is_active`, `project_status`, and `completed_date` columns to the `projects` table, resolving an inconsistency between the model code and the schema. docs: Add deployment notes Added a new markdown file to document the testing (macOS, Docker Desktop) and production (Synology NAS, Container Manager) environments.
This commit is contained in:
@@ -55,6 +55,10 @@ services:
|
||||
- ./api.hyungi.net/routes:/usr/src/app/routes
|
||||
- ./api.hyungi.net/controllers:/usr/src/app/controllers
|
||||
- ./api.hyungi.net/models:/usr/src/app/models
|
||||
- ./api.hyungi.net/config:/usr/src/app/config
|
||||
- ./api.hyungi.net/middlewares:/usr/src/app/middlewares
|
||||
- ./api.hyungi.net/utils:/usr/src/app/utils
|
||||
- ./api.hyungi.net/services:/usr/src/app/services
|
||||
- ./api.hyungi.net/index.js:/usr/src/app/index.js
|
||||
logging:
|
||||
driver: "json-file"
|
||||
|
||||
Reference in New Issue
Block a user