Преглед изворни кода

课程信息表新增字段教师名称和科目名称

reloaded пре 5 година
родитељ
комит
8cae66c8be
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      app/model/lesson.js

+ 3 - 1
app/model/lesson.js

@@ -4,7 +4,9 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
 
 // 课程信息表
 const lessonInfo = new Schema({
-  teacherid: { type: String, required: false, maxLength: 500 }, // 教师id
+  teaname: { type: String, required: false, maxLength: 500 }, // 教师名称
+  teaid: { type: String, required: false, maxLength: 500 }, // 教师id
+  subname: { type: String, required: false, maxLength: 200 }, // 科目名称
   subid: { type: String, required: false, maxLength: 200 }, // 科目id
   date: { type: String, required: false, maxLength: 500 }, // 日期
   day: { type: String, required: false, maxLength: 500 }, // 课程天数,半天或一天