lrf402788946 4 年之前
父節點
當前提交
f0af718b77
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/model/trainvideo.js

+ 2 - 1
app/model/trainvideo.js

@@ -2,12 +2,13 @@
 const Schema = require('mongoose').Schema;
 const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
 
-// 教师申请讲课表
+// 课程培训
 const TrainVideoSchema = {
   url: { type: String, required: true, maxLength: 200 }, // 视频地址
   subid: { type: String, required: true, maxLength: 200 }, // 科目id
   teacher: { type: String, required: true, maxLength: 200 }, // 教师姓名
   teacherid: { type: String, required: true, maxLength: 200 }, // 教师id
+  status: { type: String, required: false, maxLength: 200, default: '0' }, // 状态:0=>未审核;1=>审核通过(中心直接传来,通过);2=>审核失败
   touser: { type: String, required: false, maxLength: 20 }, // 面向对象:0=>所有人;1=>教师;2=>学生;3=>班主任
 };