|
@@ -6,6 +6,12 @@ const { Secret } = require('naf-framework-mongoose/lib/model/schema');
|
|
|
const images = new Schema({
|
|
|
url: { type: String, required: true, maxLength: 500 }, // 图片路径
|
|
|
});
|
|
|
+// 展会视频表
|
|
|
+const videos = new Schema({
|
|
|
+ file_path: { type: String, required: true }, // 视频路径
|
|
|
+ videointro: { type: String, required: false, maxLength: 200 }, // 视频文件标题
|
|
|
+ videointroinfo: { type: String, required: false, maxLength: 200 }, // 视频文件简介
|
|
|
+});
|
|
|
// const image = new Schema({
|
|
|
// });
|
|
|
// image.index({ id: 1 });
|
|
@@ -87,6 +93,7 @@ const vipuser = new Schema({
|
|
|
email: { type: String, required: false, maxLength: 20 }, // 郵箱
|
|
|
content: { type: String, required: false }, // 内容
|
|
|
});
|
|
|
+
|
|
|
vipuser.index({ id: 1 });
|
|
|
const Dock = {
|
|
|
room_id: { type: String, required: true, maxLength: 10 }, // 房间号
|
|
@@ -101,9 +108,7 @@ const Dock = {
|
|
|
user_id: { type: String, required: false, maxLength: 200 }, // 创建人id
|
|
|
province: { type: String, required: false }, // 省
|
|
|
place: { type: String, required: false }, // 市
|
|
|
- file_path: { type: String, required: false }, // 视频路径
|
|
|
- videointro: { type: String, required: false, maxLength: 200 }, // 视频文件标题
|
|
|
- videointroinfo: { type: String, required: false, maxLength: 200 }, // 视频文件简介
|
|
|
+ videodata: { type: [ videos ], select: true }, // 视频路径
|
|
|
adminuser: { type: String, required: false, maxLength: 200 }, // 用户姓名
|
|
|
phone: { type: String, required: false, maxLength: 200 }, // 电话
|
|
|
vipuser: { type: [ vipuser ], default: [] }, // vip用户
|