|
@@ -7,6 +7,7 @@ const notice = {
|
|
customer: { type: String, required: true, zh: '用户', ref: 'User.User' }, //
|
|
customer: { type: String, required: true, zh: '用户', ref: 'User.User' }, //
|
|
source: { type: String, required: false, zh: '消息来源' }, // 字典:notice_source
|
|
source: { type: String, required: false, zh: '消息来源' }, // 字典:notice_source
|
|
source_id: { type: String, required: false, zh: '来源id' }, //
|
|
source_id: { type: String, required: false, zh: '来源id' }, //
|
|
|
|
+ shop: { type: String, required: false, zh: '店铺id' }, //
|
|
time: { type: String, required: false, zh: '发送时间' }, //
|
|
time: { type: String, required: false, zh: '发送时间' }, //
|
|
content: { type: String, required: false, zh: '内容' }, //
|
|
content: { type: String, required: false, zh: '内容' }, //
|
|
status: { type: String, required: false, default: '0', zh: '状态' }, // 字典:notice_status
|
|
status: { type: String, required: false, default: '0', zh: '状态' }, // 字典:notice_status
|
|
@@ -17,6 +18,7 @@ schema.index({ 'meta.createdAt': 1 });
|
|
schema.index({ customer: 1 });
|
|
schema.index({ customer: 1 });
|
|
schema.index({ source: 1 });
|
|
schema.index({ source: 1 });
|
|
schema.index({ source_id: 1 });
|
|
schema.index({ source_id: 1 });
|
|
|
|
+schema.index({ shop: 1 });
|
|
schema.index({ time: 1 });
|
|
schema.index({ time: 1 });
|
|
schema.index({ status: 1 });
|
|
schema.index({ status: 1 });
|
|
|
|
|