|
@@ -52,6 +52,12 @@ const festivalInfo = new Schema({
|
|
name: { type: String, required: false, maxLength: 200 }, // 名称
|
|
name: { type: String, required: false, maxLength: 200 }, // 名称
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+// 备注信息表
|
|
|
|
+const remarkInfo = new Schema({
|
|
|
|
+ month: { type: String, required: false, maxLength: 20 }, // 月份
|
|
|
|
+ class: { type: String, required: false, maxLength: 200 }, // 班级
|
|
|
|
+ number: { type: String, required: false, maxLength: 200 }, // 数量
|
|
|
|
+});
|
|
|
|
|
|
// 培训计划表
|
|
// 培训计划表
|
|
const TrainplanSchema = {
|
|
const TrainplanSchema = {
|
|
@@ -60,6 +66,7 @@ const TrainplanSchema = {
|
|
title: { type: String, required: true, maxLength: 500 }, // 标题
|
|
title: { type: String, required: true, maxLength: 500 }, // 标题
|
|
status: { type: String, required: false, maxLength: 200, default: '0' }, // 状态,0-筹备中,1-发布,2-结束
|
|
status: { type: String, required: false, maxLength: 200, default: '0' }, // 状态,0-筹备中,1-发布,2-结束
|
|
termnum: { type: [ termInfo ], select: true }, // 期
|
|
termnum: { type: [ termInfo ], select: true }, // 期
|
|
|
|
+ remark: { type: [ remarkInfo ], select: true }, // 备注
|
|
school: { type: [ schInfo ], select: true }, // 学校
|
|
school: { type: [ schInfo ], select: true }, // 学校
|
|
festivals: { type: [ festivalInfo ], select: true }, // 节假日
|
|
festivals: { type: [ festivalInfo ], select: true }, // 节假日
|
|
};
|
|
};
|