|
@@ -38,8 +38,8 @@ const academicInfo = new Schema({
|
|
|
|
|
|
// 教师表
|
|
|
const TeacherSchema = {
|
|
|
- name: { type: String, required: false, maxLength: 200 }, // 教师姓名
|
|
|
- phone: { type: String, required: false, maxLength: 200 }, // 手机号
|
|
|
+ name: { type: String, required: true, maxLength: 200 }, // 教师姓名
|
|
|
+ phone: { type: String, required: true, maxLength: 200 }, // 手机号
|
|
|
idnumber: { type: String, required: false, maxLength: 200 }, // 身份证号
|
|
|
gender: { type: String, required: false, maxLength: 200 }, // 教师性别
|
|
|
// zynumber: { type: String, required: false, maxLength: 200 }, // 职业资格证号
|
|
@@ -81,7 +81,6 @@ const TeacherSchema = {
|
|
|
// 状态:0-注册,1-确认身份,2-资料评分,3-面试评分,4-确认入库
|
|
|
};
|
|
|
|
|
|
-
|
|
|
const schema = new Schema(TeacherSchema, { toJSON: { virtuals: true } });
|
|
|
schema.index({ id: 1 });
|
|
|
schema.plugin(metaPlugin);
|