增加健康档案api
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import mongoose from 'mongoose';
|
||||
import { EscortRecordSchema } from "./schema/escort_record.js"
|
||||
import { OrganizationSchema } from "./schema/org.js"
|
||||
import { HealthProfileSchema } from "./schema/health_profile.js"
|
||||
import config from '../conf.json' with { type: 'json' };
|
||||
import logger from '../utils/logger.js';
|
||||
|
||||
@@ -12,6 +13,7 @@ class MongoDBSchema {
|
||||
this.User = null;
|
||||
this.EscortRecord = null;
|
||||
this.Organization = null;
|
||||
this.HealthProfile = null;
|
||||
}
|
||||
|
||||
init() {
|
||||
@@ -38,6 +40,7 @@ class MongoDBSchema {
|
||||
);
|
||||
|
||||
this.EscortRecord = this.dbConnection.model('escort_record', EscortRecordSchema)
|
||||
this.HealthProfile = this.dbConnection.model('health_profile', HealthProfileSchema)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user