cheny 4 年之前
父节点
当前提交
28d5fff30e
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      app/model/dock.js

+ 4 - 1
app/model/dock.js

@@ -2,6 +2,9 @@
 const Schema = require('mongoose').Schema;
 const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
 const { Secret } = require('naf-framework-mongoose/lib/model/schema');
+// const image = new Schema({
+// });
+// image.index({ id: 1 });
 // 产品
 const goods = new Schema({
   totaltype: { type: String, required: false, maxLength: 5 }, // 产品类型
@@ -11,7 +14,7 @@ const goods = new Schema({
   phase: { type: String, required: false, maxLength: 200 }, // 研发阶段
   price: { type: String, required: false, maxLength: 200 }, // 产品单价
   priceunit: { type: String, required: false, maxLength: 200 }, // 产品单位
-  image: { type: [ String ], required: false }, // 产品图片
+  image: { type: [ Object ], required: false }, // 产品图片
   field: { type: String, maxLength: 200 }, // 所属领域
   scope: { type: String, maxLength: 200 }, // 服务范围
   coopermode: { type: String, maxLength: 200 }, // 合作方式