ruifeng_liu 3 years ago
parent
commit
281fba470f
1 changed files with 2 additions and 3 deletions
  1. 2 3
      app/model/patent/patentinfo.js

+ 2 - 3
app/model/patent/patentinfo.js

@@ -6,10 +6,9 @@ const { ObjectId } = require('mongoose').Types;
 
 const user = new Schema(
   {
-    id: { type: ObjectId, required: false, maxLength: 500 }, // 名称,
+    user_id: { type: ObjectId, required: false, maxLength: 500 }, // 名称,
     name: { type: String, required: false, maxLength: 500 }, // 链接地址,
-  },
-  { _id: false, id: true }
+  }
 );
 
 // 专利信息表