lrf402788946 4 éve
szülő
commit
f1594a633f
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      app/model/trainplan.js

+ 3 - 1
app/model/trainplan.js

@@ -8,13 +8,15 @@ const classInfo = new Schema({
   number: { type: String, required: false, maxLength: 200 }, // 人数
   type: { type: String, required: false, maxLength: 200 }, // 类型-0正常,1特殊,2,3创业班
   headteacherid: { type: String, required: false, maxLength: 200 }, // 班主任id
+  subid: { type: String, required: false, maxLength: 200 }, // 科目id
+  teaid: { type: String, required: false, maxLength: 200 }, // 教师id
   hasclass: { type: String, required: false, maxLength: 200 }, // 是否生成班级: 0未生成;1已生成
 });
 
 // 批次信息表
 const batchInfo = new Schema({
   batch: { type: String, required: false, maxLength: 200 }, // 批次
-  class: { type: [ classInfo ], required: false, select: true }, // 班级数
+  class: { type: [ Object ], required: false, select: true }, // 班级数
   startdate: { type: String, required: false, maxLength: 200 }, // 开始日期
   enddate: { type: String, required: false, maxLength: 200 }, // 结束日期
   lessons: { type: [ Object ], required: false }, // 课程表