|
@@ -6,11 +6,18 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
|
|
|
const batchInfo = new Schema({
|
|
|
batch: { type: String, required: false, maxLength: 200 }, // 批次
|
|
|
class: { type: String, required: false, maxLength: 200 }, // 班级数
|
|
|
- begindate: { type: String, required: false, maxLength: 200 }, // 开始日期
|
|
|
- finishdate: { type: String, required: false, maxLength: 200 }, // 结束日期
|
|
|
+ startdate: { type: String, required: false, maxLength: 200 }, // 开始日期
|
|
|
+ enddate: { type: String, required: false, maxLength: 200 }, // 结束日期
|
|
|
type: { type: String, required: false, maxLength: 200 }, // 类型:0-正常,1-特殊
|
|
|
name: { type: String, required: false, maxLength: 200 }, // 名称
|
|
|
number: { type: String, required: false, maxLength: 200 }, // 人数
|
|
|
+ color: { type: String, required: false, maxLength: 200 }, // 颜色
|
|
|
+});
|
|
|
+
|
|
|
+// 学校信息表
|
|
|
+const schInfo = new Schema({
|
|
|
+ schid: { type: String, required: false, maxLength: 200 }, // 学校id
|
|
|
+ num: { type: String, required: false, maxLength: 200 }, // 人数
|
|
|
});
|
|
|
|
|
|
// 期信息表
|
|
@@ -18,8 +25,10 @@ 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 }, // 学校
|
|
|
});
|
|
|
|
|
|
+
|
|
|
// 培训计划表
|
|
|
const TrainplanSchema = {
|
|
|
year: { type: String, required: true, maxLength: 200 }, // 年份
|