|
@@ -8,6 +8,12 @@ const classInfo = new Schema({
|
|
|
number: { type: String, required: false, maxLength: 200 }, // 人数
|
|
|
});
|
|
|
|
|
|
+// 批次信息表
|
|
|
+const batchInfo = new Schema({
|
|
|
+ batch: { type: String, required: false, maxLength: 200 }, // 批次
|
|
|
+ classnum: { type: [ classInfo ], required: false, select: true }, // 班级
|
|
|
+});
|
|
|
+
|
|
|
// 全年计划模板表
|
|
|
const TrainmodelSchema = {
|
|
|
total: { type: String, required: false, maxLength: 200 }, // 总人数
|
|
@@ -15,8 +21,7 @@ const TrainmodelSchema = {
|
|
|
color: { type: [ String ], required: false }, // 默认颜色
|
|
|
planyearid: { type: String, required: true, maxLength: 200 }, // 大批次id
|
|
|
planid: { type: String, required: true, maxLength: 200 }, // 计划id
|
|
|
- batchnum: { type: String, required: false, maxLength: 200 }, // 默认期下生成的批次数
|
|
|
- classnum: { type: [ classInfo ], required: false, select: true }, // 默认批次下生成的班级数
|
|
|
+ batchnum: { type: [ batchInfo ], required: false, select: true }, // 默认期下生成的批次数
|
|
|
stunum: { type: String, required: false, maxLength: 200 }, // 默认每班学生数
|
|
|
carpnum: { type: String, required: false, maxLength: 200 }, // 默认每辆车的学生数
|
|
|
};
|