增加健康档案api

This commit is contained in:
lik
2026-08-27 21:54:51 +08:00
parent 1f10eb3c92
commit 644f4bc7cb
4 changed files with 255 additions and 0 deletions
+3
View File
@@ -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)
}
}