guhongwei hace 4 años
padre
commit
a1dc3f5de0
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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 }, // 视频路径