ruifeng_liu 3 년 전
부모
커밋
281fba470f
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  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 }
+  }
 );
 
 // 专利信息表