|
@@ -9,6 +9,8 @@ const patentapply = {
|
|
|
user_name: { type: String }, // 用户姓名
|
|
|
mech_id: { type: ObjectId }, // 机构id
|
|
|
mech_name: { type: String }, // 机构名称
|
|
|
+ admin_id: { type: ObjectId }, // 管理员id
|
|
|
+ admin_name: { type: String }, // 管理员姓名
|
|
|
agentmech_id: { type: ObjectId }, // 代理机构id
|
|
|
agentmech_name: { type: String }, // 代理机构姓名
|
|
|
create_number: { type: String }, // 申请号
|
|
@@ -30,6 +32,7 @@ const schema = new Schema(patentapply, { toJSON: { virtuals: true } });
|
|
|
schema.index({ id: 1 });
|
|
|
schema.index({ user_id: 1 });
|
|
|
schema.index({ mech_id: 1 });
|
|
|
+schema.index({ admin_id: 1 });
|
|
|
schema.index({ agentmech_id: 1 });
|
|
|
schema.index({ create_number: 1 });
|
|
|
schema.index({ name: 1 });
|