|
@@ -8,15 +8,14 @@ const classInfo = new Schema({
|
|
|
number: { type: String, required: false, maxLength: 200 }, // 人数
|
|
|
type: { type: String, required: false, maxLength: 200 }, // 类型-0正常,1特殊,2,3创业班
|
|
|
headteacherid: { type: String, required: false, maxLength: 200 }, // 班主任id
|
|
|
- subid: { type: String, required: false, maxLength: 200 }, // 科目id
|
|
|
- teaid: { type: String, required: false, maxLength: 200 }, // 教师id
|
|
|
+ lessons: { type: [ Object ], required: false }, // 班级课表
|
|
|
hasclass: { type: String, required: false, maxLength: 200 }, // 是否生成班级: 0未生成;1已生成
|
|
|
});
|
|
|
|
|
|
// 批次信息表
|
|
|
const batchInfo = new Schema({
|
|
|
batch: { type: String, required: false, maxLength: 200 }, // 批次
|
|
|
- class: { type: [ Object ], required: false, select: true }, // 班级数
|
|
|
+ class: { type: [ classInfo ], required: false, select: true }, // 班级数
|
|
|
startdate: { type: String, required: false, maxLength: 200 }, // 开始日期
|
|
|
enddate: { type: String, required: false, maxLength: 200 }, // 结束日期
|
|
|
lessons: { type: [ Object ], required: false }, // 课程表
|