tmp
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user