|
@@ -2,11 +2,16 @@
|
|
|
const Schema = require('mongoose').Schema;
|
|
|
const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
|
|
|
|
|
|
-// 栏目表
|
|
|
+const images = new Schema({
|
|
|
+ url: { type: String, required: true, maxLength: 500 }, // 图片路径
|
|
|
+});
|
|
|
+// 展会信息表
|
|
|
const ImgtxtdockSchema = {
|
|
|
- name: { type: String, required: true, maxLength: 500 }, // 名称
|
|
|
- type: { type: String, required: false, maxLength: 500 }, // 类别
|
|
|
- dock_id: { type: String, required: false, maxLength: 500 }, // 展会id
|
|
|
+ dock_id: { type: String, required: true, maxLength: 500 }, // 展会id
|
|
|
+ user_name: { type: String, required: false, maxLength: 500 }, // 姓名
|
|
|
+ brief: { type: String, required: false, maxLength: 500 }, // 信息内容
|
|
|
+ image: { type: [ images ], select: false }, // 图片
|
|
|
+ file_path: { type: String, required: false }, // 视频路径
|
|
|
};
|
|
|
|
|
|
|