This commit is contained in:
lik
2026-06-01 17:40:11 +08:00
parent 83d660496c
commit cebe7876f7
7 changed files with 349 additions and 105 deletions

View File

@@ -36,7 +36,7 @@ const EscortRecordSchema = mongoose.Schema(
*/
patient: {
name: { type: String, default: "", comment: "患者姓名" },
mobile: { type: String, default: "", comment: "患者联系电话" },
mobile: { type: String, default: "", unique: true, index: true, comment: "患者联系电话" },
sex: { type: String, enum: ["male", "female"], comment: "患者性别" },
age: { type: Number, default: 0, comment: "患者年龄" },
idnumber: { type: String, default: "", comment: "患者身份证号" },