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