|
@@ -43,10 +43,10 @@ const TeacherSchema = {
|
|
|
idnumber: { type: String, required: false, maxLength: 200 }, // 身份证号
|
|
|
gender: { type: String, required: false, maxLength: 200 }, // 教师性别
|
|
|
// zynumber: { type: String, required: false, maxLength: 200 }, // 职业资格证号
|
|
|
- zynumberfile: { type: [zynumberfileInfo], select: true }, // 职业资格证图片
|
|
|
+ zynumberfile: { type: [ zynumberfileInfo ], select: true }, // 职业资格证图片
|
|
|
schid: { type: String, required: false, maxLength: 200 }, // 学校id
|
|
|
schname: { type: String, required: false, maxLength: 200 }, // 学校名称
|
|
|
- email: { type: String, required: 1, maxLength: 200 }, // 邮箱
|
|
|
+ email: { type: String, required: false, maxLength: 200 }, // 邮箱
|
|
|
openid: { type: String, required: false, maxLength: 200 }, // 微信openid
|
|
|
age: { type: String, required: false, maxLength: 200 }, // 年龄
|
|
|
birthday: { type: String, required: false, maxLength: 200 }, // 出生年月
|
|
@@ -59,9 +59,9 @@ const TeacherSchema = {
|
|
|
degree: { type: String, required: false, maxLength: 200 }, // 最后学位
|
|
|
major: { type: String, required: false, maxLength: 200 }, // 教师所学专业
|
|
|
schlesson: { type: String, required: false, maxLength: 200 }, // 教师在校所教课程
|
|
|
- experience: { type: [experienceInfo], select: false }, // 教育培训经历(从大学开始)
|
|
|
+ experience: { type: [ experienceInfo ], select: true }, // 教育培训经历(从大学开始)
|
|
|
courses: { type: String, required: false, maxLength: 200 }, // 主讲课程
|
|
|
- academic: { type: [academicInfo], select: false }, // 主要学术成果及获奖情况
|
|
|
+ academic: { type: [ academicInfo ], select: true }, // 主要学术成果及获奖情况
|
|
|
jobyear: { type: String, required: false, maxLength: 200 }, // 从事就业创业教学工作年限
|
|
|
jobaddress: { type: String, required: false, maxLength: 500 }, // 工作地点
|
|
|
subid: { type: String, required: false, maxLength: 200 }, // 科目id
|
|
@@ -69,8 +69,8 @@ const TeacherSchema = {
|
|
|
zlscore: { type: String, required: false, maxLength: 200 }, // 资料评分
|
|
|
msscore: { type: String, required: false, maxLength: 200 }, // 面试评分
|
|
|
xsscore: { type: String, required: false, maxLength: 200 }, // 学生评分
|
|
|
- file: { type: [FileInfo], select: false }, // 资料,教案PPT视频等
|
|
|
- status: { type: String, required: false, maxLength: 200, default: "0" },
|
|
|
+ file: { type: [ FileInfo ], select: false }, // 资料,教案PPT视频等
|
|
|
+ status: { type: String, required: false, maxLength: 200, default: '0' },
|
|
|
withpersonal: { type: String, required: false }, // 与人合作
|
|
|
career: { type: String, required: false }, // 职业探索
|
|
|
training: { type: String, required: false }, // 面试训练
|
|
@@ -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);
|