This commit is contained in:
lik
2026-06-04 10:15:13 +08:00
parent 1fce05cbfb
commit fb2925507c

View File

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