|
@@ -12,9 +12,9 @@ const HeadteacherSchema = {
|
|
|
age: { type: String, required: false, maxLength: 200 }, // 年龄
|
|
|
birthday: { type: String, required: false, maxLength: 200 }, // 出生年月
|
|
|
department: { type: String, required: false, maxLength: 200 }, // 所在部门
|
|
|
- is_etiquette_teacher: { type: String, required: false, maxLength: 200 }, // 是否可讲礼仪课,0-否,1-是
|
|
|
-}
|
|
|
-;
|
|
|
+ islyteacher: { type: String, required: false, maxLength: 200 }, // 是否可讲礼仪课,0-否,1-是
|
|
|
+};
|
|
|
+
|
|
|
|
|
|
const schema = new Schema(HeadteacherSchema, { toJSON: { virtuals: true } });
|
|
|
schema.index({ id: 1 });
|