joye-backend-utility 8.1.3 → 8.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -66,9 +66,11 @@ const UserMessageLog = new mongoose_1.Schema({
|
|
|
66
66
|
integration: {
|
|
67
67
|
type: String,
|
|
68
68
|
required: false,
|
|
69
|
+
index: true,
|
|
69
70
|
},
|
|
70
71
|
});
|
|
71
72
|
UserMessageLog.index({ employeeId: 1, activityId: -1 });
|
|
72
73
|
UserMessageLog.index({ employeeId: 1, date: -1 });
|
|
73
74
|
UserMessageLog.index({ employeeId: 1, messageType: -1, status: -1, date: -1 });
|
|
75
|
+
UserMessageLog.index({ employeeId: 1, integration: 1, date: -1 });
|
|
74
76
|
exports.UserMessageLogSchema = UserMessageLog;
|
|
@@ -167,6 +167,10 @@ const UserAnalytic = new mongoose_1.Schema({
|
|
|
167
167
|
type: String,
|
|
168
168
|
required: false,
|
|
169
169
|
},
|
|
170
|
+
tz: {
|
|
171
|
+
type: String,
|
|
172
|
+
required: false,
|
|
173
|
+
},
|
|
170
174
|
});
|
|
171
175
|
// Allowed compound indexes only — never add `dailySuggestion` (large object → high write RU).
|
|
172
176
|
// `autoIndex` is false in `database.ts`; create indexes manually in Cosmos if needed.
|