guhongwei 4 anni fa
parent
commit
a1dc3f5de0
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      app/model/channel.js

+ 1 - 0
app/model/channel.js

@@ -4,6 +4,7 @@ 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 }, // 视频路径