|
@@ -7,6 +7,7 @@ const { ObjectId } = require('mongoose').Types;
|
|
|
const patentwarning = {
|
|
|
to_id: { type: ObjectId }, // 接收人id
|
|
|
to_name: { type: String }, // 接收人姓名
|
|
|
+ create_number: { type: String }, // 专利申请号
|
|
|
patent_id: { type: ObjectId }, // 预警专利id
|
|
|
patent_name: { type: String }, // 预警专利姓名
|
|
|
content: { type: String }, // 预警信息
|
|
@@ -18,6 +19,7 @@ const schema = new Schema(patentwarning, { toJSON: { virtuals: true } });
|
|
|
schema.index({ id: 1 });
|
|
|
schema.index({ to_id: 1 });
|
|
|
schema.index({ to_name: 1 });
|
|
|
+schema.index({ create_number: 1 });
|
|
|
schema.index({ patent_id: 1 });
|
|
|
schema.index({ patent_name: 1 });
|
|
|
schema.index({ is_read: 1 });
|