|
@@ -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 }, // 合作方式
|