|
@@ -28,6 +28,13 @@ const termInfo = new Schema({
|
|
|
school: { type: [ schInfo ], select: true }, // 学校
|
|
|
});
|
|
|
|
|
|
+// 节假日信息表
|
|
|
+const festivalInfo = new Schema({
|
|
|
+ begindate: { type: String, required: false, maxLength: 200 }, // 开始日期
|
|
|
+ finishdate: { type: String, required: false, maxLength: 200 }, // 结束日期
|
|
|
+ name: { type: String, required: false, maxLength: 200 }, // 名称
|
|
|
+});
|
|
|
+
|
|
|
|
|
|
// 培训计划表
|
|
|
const TrainplanSchema = {
|
|
@@ -35,6 +42,7 @@ const TrainplanSchema = {
|
|
|
title: { type: String, required: true, maxLength: 500 }, // 标题
|
|
|
status: { type: String, required: false, maxLength: 200 }, // 状态,0-筹备中,1-发布,2-结束
|
|
|
termnum: { type: [ termInfo ], select: true }, // 期
|
|
|
+ festivals: { type: [ festivalInfo ], select: true }, // 节假日
|
|
|
};
|
|
|
|
|
|
|