This commit is contained in:
lik
2026-09-01 22:34:36 +08:00
parent 98c9026485
commit 71aba287bf
14 changed files with 129 additions and 219 deletions
+5
View File
@@ -3,6 +3,8 @@
import mongoose from 'mongoose';
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 config from '../conf.json' with { type: 'json' };
import logger from '../utils/logger.js';
@@ -12,6 +14,7 @@ class MongoDBSchema {
this.User = null;
this.EscortRecord = null;
this.Organization = null;
this.Employee = null;
this.HealthProfile = null;
}
@@ -40,6 +43,8 @@ class MongoDBSchema {
this.EscortRecord = this.dbConnection.model('escort_record', EscortRecordSchema)
this.HealthProfile = this.dbConnection.model('health_profile', HealthProfileSchema)
this.Organization = this.dbConnection.model('organization', OrganizationSchema)
this.Employee = this.dbConnection.model('employee', EmployeeSchema)
}
}