guhongwei 3 年之前
父節點
當前提交
9e8d1a6586
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/model/patent/patenttrans.js

+ 3 - 0
app/model/patent/patenttrans.js

@@ -13,6 +13,8 @@ const patenttrans = {
   email: { type: String }, // 电子邮箱
   budget: { type: String }, // 投资预算
   type: { type: String }, // 交易类型(转让,合作,招商,质押)
+  is_report: { type: Boolean, default: false }, // 评估报告
+  report: { type: Array }, // 评估报告
   requirementdesc: { type: String }, // 技术说明
   expect: { type: String }, // 预期目标
   present: { type: String }, // 需求现状
@@ -28,6 +30,7 @@ schema.index({ phone: 1 });
 schema.index({ email: 1 });
 schema.index({ budget: 1 });
 schema.index({ type: 1 });
+schema.index({ is_report: 1 });
 schema.index({ status: 1 });
 schema.index({ 'meta.createdAt': 1 });
 schema.plugin(metaPlugin);