|
@@ -9,6 +9,7 @@ const Personchat = {
|
|
receiver_name: { type: String, required: false, maxLength: 200 }, // 接收人名字
|
|
receiver_name: { type: String, required: false, maxLength: 200 }, // 接收人名字
|
|
personroom_id: { type: String, required: true, maxLength: 200 }, // 聊天房间id
|
|
personroom_id: { type: String, required: true, maxLength: 200 }, // 聊天房间id
|
|
content: { type: String, required: true, maxLength: 1000 }, // 发言内容
|
|
content: { type: String, required: true, maxLength: 1000 }, // 发言内容
|
|
|
|
+ send_time: { type: String, required: true, maxLength: 100 }, // 发言时间:年月日时分秒
|
|
status: { type: String, required: false, maxLength: 100, default: "0" }, // 状态,0-未读,1-已读
|
|
status: { type: String, required: false, maxLength: 100, default: "0" }, // 状态,0-未读,1-已读
|
|
};
|
|
};
|
|
const schema = new Schema(Personchat, { toJSON: { virtuals: true } });
|
|
const schema = new Schema(Personchat, { toJSON: { virtuals: true } });
|