|
@@ -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 },
|
|
|
termnum: { type: [ termInfo ], select: true },
|
|
|
+ festivals: { type: [ festivalInfo ], select: true },
|
|
|
};
|
|
|
|
|
|
|