|
@@ -7,9 +7,11 @@ const { ObjectId } = require('mongoose').Types;
|
|
|
const patentnotice = {
|
|
|
send_id: { type: ObjectId }, // 发送人id
|
|
|
send_name: { type: String }, // 发送人姓名
|
|
|
- to_type: { type: String }, // 0-所有人;1-机构用户;2-平台用户;3机构发给自己用户
|
|
|
+ to_type: { type: String }, // 0-所有人;1-机构用户;2-平台用户;3机构发给自己用户,4:科企发给个人用户
|
|
|
to_id: { type: [ ObjectId ] }, // 接收人id
|
|
|
+ is_read: { type: Boolean, default: false }, // 是否已读
|
|
|
content: { type: String }, // 内容
|
|
|
+ notice_file: { type: Array }, // 通知文件
|
|
|
remark: { type: String },
|
|
|
};
|
|
|
const schema = new Schema(patentnotice, { toJSON: { virtuals: true } });
|