lrf402788946 4 years ago
parent
commit
f416d7cfe6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/model/trainlive.js

+ 2 - 2
app/model/trainlive.js

@@ -6,12 +6,12 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
 const video = new Schema({
   video_title: { type: String, maxLength: 500 }, // 标题
   video_date: { type: String, maxLength: 500 }, // 时间
-  video_url: { type: String, required: true, maxLength: 500 }, // 视频路径
+  video_url: { type: String, maxLength: 500 }, // 视频路径
 });
 const user = new Schema({
   user_title: { type: String, maxLength: 500 }, // 用户名
   user_phone: { type: String, maxLength: 500 }, // 账号
-  user_password: { type: String, required: true, maxLength: 500 }, // 密码
+  user_password: { type: String, maxLength: 500 }, // 密码
 });
 // 培训问诊表
 const trainlive = {