修改了employee相关

This commit is contained in:
lik
2026-10-06 21:44:42 +08:00
parent 0e81341bff
commit 7fc91b75f7
7 changed files with 309 additions and 9 deletions
+3 -1
View File
@@ -5,6 +5,7 @@ import { EscortRecordSchema } from "./schema/escort_record.js"
import { HealthProfileSchema } from "./schema/health_profile.js"
import { OrganizationSchema } from "./schema/organization.js"
import { EmployeeSchema } from "./schema/employee.js"
import { EmployeeReviewSchema } from "./schema/employee_review.js"
import config from '../config.js';
import logger from '../utils/logger.js';
@@ -16,6 +17,7 @@ class MongoDBSchema {
this.Organization = null;
this.Employee = null;
this.HealthProfile = null;
this.EmployeeReview = null;
}
init() {
@@ -45,9 +47,9 @@ class MongoDBSchema {
this.HealthProfile = this.dbConnection.model('health_profile', HealthProfileSchema)
this.Organization = this.dbConnection.model('organization', OrganizationSchema)
this.Employee = this.dbConnection.model('employee', EmployeeSchema)
this.EmployeeReview = this.dbConnection.model('employee_review', EmployeeReviewSchema)
}
}
const DBModel = new MongoDBSchema()
export { DBModel };