liuyu пре 4 година
родитељ
комит
6afe9c50a1
1 измењених фајлова са 8 додато и 3 уклоњено
  1. 8 3
      app/model/trainplan.js

+ 8 - 3
app/model/trainplan.js

@@ -22,12 +22,17 @@ const batchInfo = new Schema({
   color: { type: String, required: false, maxLength: 200 }, // 颜色
 });
 
+// 学校班级人数信息表
+const classNumInfo = new Schema({
+  name: { type: String, required: false, maxLength: 200 }, // 名称
+  number: { type: String, required: false, maxLength: 200 }, // 人数
+  code: { type: String, required: false, maxLength: 200 }, // 班级code
+});
+
 // 学校信息表
 const schInfo = new Schema({
   code: { type: String, required: false, maxLength: 200 }, // 学校code
-  jynum: { type: String, required: false, maxLength: 200 }, // 就业人数
-  cynum: { type: String, required: false, maxLength: 200 }, // 创业人数
-  mznum: { type: String, required: false, maxLength: 200 }, // 少数民族人数
+  classnum: { type: [ classNumInfo ], select: true }, // 班级人数
   num: { type: String, required: false, maxLength: 200 }, // 总人数
 });