guhongwei 4 years ago
parent
commit
51f639fcb6
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app/model/channel.js

+ 4 - 4
app/model/channel.js

@@ -4,10 +4,10 @@ const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
 const { Secret } = require('naf-framework-mongoose/lib/model/schema');
 // 产品图片表
 const videos = new Schema({
-  name: { type: String, required: true, maxLength: 200 }, // 视频标题
-  start_time: { type: String, required: true, maxLength: 200 }, // 开始时间
-  end_time: { type: String, required: true, maxLength: 200 }, // 结束时间
-  url: { type: String, required: true, maxLength: 500 }, // 视频路径
+  name: { type: String, required: false, maxLength: 200 }, // 视频标题
+  start_time: { type: String, required: false, maxLength: 200 }, // 开始时间
+  end_time: { type: String, required: false, maxLength: 200 }, // 结束时间
+  url: { type: String, required: false, maxLength: 500 }, // 视频路径
 });
 
 const Channel = {