|
@@ -6,7 +6,6 @@ const { ObjectId } = require('mongoose').Types;
|
|
// 价值评估表
|
|
// 价值评估表
|
|
const patentassess = {
|
|
const patentassess = {
|
|
user_id: { type: ObjectId }, // 用户id
|
|
user_id: { type: ObjectId }, // 用户id
|
|
- admin_id: { type: ObjectId }, // 管理员id
|
|
|
|
patent_id: { type: ObjectId }, // 专利id
|
|
patent_id: { type: ObjectId }, // 专利id
|
|
create_number: { type: String }, // 申请号
|
|
create_number: { type: String }, // 申请号
|
|
patent_name: { type: String }, // 专利名称
|
|
patent_name: { type: String }, // 专利名称
|
|
@@ -27,7 +26,6 @@ const patentassess = {
|
|
const schema = new Schema(patentassess, { toJSON: { virtuals: true } });
|
|
const schema = new Schema(patentassess, { toJSON: { virtuals: true } });
|
|
schema.index({ id: 1 });
|
|
schema.index({ id: 1 });
|
|
schema.index({ user_id: 1 });
|
|
schema.index({ user_id: 1 });
|
|
-schema.index({ admin_id: 1 });
|
|
|
|
schema.index({ patent_id: 1 });
|
|
schema.index({ patent_id: 1 });
|
|
schema.index({ create_number: 1 });
|
|
schema.index({ create_number: 1 });
|
|
schema.index({ type: 1 });
|
|
schema.index({ type: 1 });
|