joye-backend-utility 8.0.1 → 8.0.3
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.
- package/dist/schema/user.js +8 -3
- package/package.json +1 -1
package/dist/schema/user.js
CHANGED
|
@@ -11,6 +11,7 @@ const User = new mongoose_1.Schema({
|
|
|
11
11
|
employeeId: {
|
|
12
12
|
type: String,
|
|
13
13
|
required: true,
|
|
14
|
+
index: true,
|
|
14
15
|
},
|
|
15
16
|
postPieScreen: {
|
|
16
17
|
type: String,
|
|
@@ -60,6 +61,7 @@ const User = new mongoose_1.Schema({
|
|
|
60
61
|
notificationDate: {
|
|
61
62
|
type: String,
|
|
62
63
|
required: false,
|
|
64
|
+
index: true,
|
|
63
65
|
},
|
|
64
66
|
notificationCount: {
|
|
65
67
|
type: Number,
|
|
@@ -216,9 +218,12 @@ const User = new mongoose_1.Schema({
|
|
|
216
218
|
index: true,
|
|
217
219
|
},
|
|
218
220
|
});
|
|
219
|
-
User.index(
|
|
220
|
-
|
|
221
|
-
|
|
221
|
+
// User.index(
|
|
222
|
+
// { employeeId: 1 },
|
|
223
|
+
// {
|
|
224
|
+
// unique: true,
|
|
225
|
+
// },
|
|
226
|
+
// );
|
|
222
227
|
User.index({ botDetails: 1, preferredTimezone: -1 }, {
|
|
223
228
|
unique: false,
|
|
224
229
|
});
|