|
@@ -25,7 +25,6 @@ const termInfo = new Schema({
|
|
|
term: { type: String, required: false, maxLength: 200 }, // 期数
|
|
|
classnum: { type: String, required: false, maxLength: 200 }, // 班级数
|
|
|
batchnum: { type: [ batchInfo ], select: true }, // 批
|
|
|
- school: { type: [ schInfo ], select: true }, // 学校
|
|
|
});
|
|
|
|
|
|
// 节假日信息表
|
|
@@ -43,6 +42,7 @@ const TrainplanSchema = {
|
|
|
title: { type: String, required: true, maxLength: 500 }, // 标题
|
|
|
status: { type: String, required: false, maxLength: 200, default: '0' }, // 状态,0-筹备中,1-发布,2-结束
|
|
|
termnum: { type: [ termInfo ], select: true }, // 期
|
|
|
+ school: { type: [ schInfo ], select: true }, // 学校
|
|
|
festivals: { type: [ festivalInfo ], select: true }, // 节假日
|
|
|
};
|
|
|
|