|
@@ -12,7 +12,8 @@ const sell = {
|
|
|
inventor: { type: String }, // 权利人
|
|
|
type: { type: String }, // 申请类型
|
|
|
sell_type: { type: String }, // 交易类型:许可,转移,质押
|
|
|
- sell_money: { type: String }, // 交易金额
|
|
|
+ money_type: { type: String }, // 交易金额方式
|
|
|
+ sell_money: { type: Number }, // 交易金额
|
|
|
contacts: { type: String }, // 联系人
|
|
|
phone: { type: String }, // 手机号
|
|
|
email: { type: String }, // 邮箱
|
|
@@ -27,8 +28,10 @@ schema.index({ create_number: 1 });
|
|
|
schema.index({ name: 1 });
|
|
|
schema.index({ type: 1 });
|
|
|
schema.index({ sell_type: 1 });
|
|
|
+schema.index({ money_type: 1 });
|
|
|
schema.index({ contacts: 1 });
|
|
|
schema.index({ status: 1 });
|
|
|
+schema.index({ sell_money: 1 });
|
|
|
schema.index({ 'meta.createdAt': 1 });
|
|
|
schema.plugin(metaPlugin);
|
|
|
module.exports = app => {
|