ruifeng_liu před 3 roky
rodič
revize
1f6ad6356a
1 změnil soubory, kde provedl 7 přidání a 1 odebrání
  1. 7 1
      app/model/patent/patentinfo.js

+ 7 - 1
app/model/patent/patentinfo.js

@@ -3,6 +3,12 @@ const Schema = require('mongoose').Schema;
 const moment = require('moment');
 const metaPlugin = require('naf-framework-mongoose/lib/model/meta-plugin');
 const { ObjectId } = require('mongoose').Types;
+
+const user = new Schema({
+  id: { type: ObjectId, required: false, maxLength: 500 }, // 名称,
+  name: { type: String, required: false, maxLength: 500 }, // 链接地址,
+});
+
 // 专利信息表
 const patentinfo = {
   create_number: { type: String, required: false }, // 申请号
@@ -10,7 +16,7 @@ const patentinfo = {
   success_number: { type: String, required: false }, // 公开(公告)号
   success_date: { type: String, required: false }, //  公开(公告)日
   name: { type: String, required: false }, // 标题
-  inventor: { type: Array }, // 发明人
+  inventor: { type: [ user ] }, // 发明人
   address: { type: String, required: false }, // 发明人地址
   apply_personal: { type: String, required: false }, // 申请人
   term: { type: String, required: false }, // 专利有效性