tango-api-schema 2.1.28 → 2.1.30
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/package.json +1 -1
- package/schema/assignAudit.model.js +1 -0
- package/schema/auditLogs.model.js +3 -2
- package/schema/auditStoreData.model.js +1 -0
- package/schema/auditUserWallet.model.js +2 -1
- package/schema/mailOnlyuser.model.js +5 -0
- package/schema/storeAudit.model.js +1 -0
- package/schema/storeEmpDetection.model.js +1 -0
- package/schema/traxAuditData.model.js +1 -0
- package/schema/userAudit.model.js +1 -0
- package/schema/userEmpDetection.model.js +1 -0
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import mongoose from 'mongoose';
|
|
7
7
|
|
|
8
8
|
// Schema
|
|
9
|
-
const
|
|
9
|
+
const auditLogSchema = new mongoose.Schema( {
|
|
10
10
|
userId: {
|
|
11
11
|
type: mongoose.Schema.Types.ObjectId,
|
|
12
12
|
},
|
|
@@ -67,6 +67,7 @@ const auditLogSchem = new mongoose.Schema( {
|
|
|
67
67
|
expires: '3d',
|
|
68
68
|
} );
|
|
69
69
|
|
|
70
|
+
auditLogSchema.index({ userId:1,storeId: 1,moduleType:1, fileDate:1, auditType:1 });
|
|
70
71
|
|
|
71
|
-
export default mongoose.model( 'auditLog',
|
|
72
|
+
export default mongoose.model( 'auditLog', auditLogSchema, 'auditLog' );
|
|
72
73
|
|
|
@@ -57,5 +57,6 @@ const storeEmpDetectionSchema = new mongoose.Schema( {
|
|
|
57
57
|
versionKey: false,
|
|
58
58
|
} );
|
|
59
59
|
|
|
60
|
+
storeEmpDetectionSchema.index({clientId:1, storeId: 1,moduleType:1, fileDate:1,fileDateISO:1});
|
|
60
61
|
|
|
61
62
|
export default mongoose.model( 'storeEmpDetection', storeEmpDetectionSchema, 'storeEmpDetection' );
|
|
@@ -72,5 +72,6 @@ const userAuditSchem = new mongoose.Schema( {
|
|
|
72
72
|
versionKey: false,
|
|
73
73
|
} );
|
|
74
74
|
|
|
75
|
+
userAuditSchem.index({ storeId: 1,moduleType:1, fileDate:1,clientId:1,userId:1, auditType:1, fileDateISO:1});
|
|
75
76
|
|
|
76
77
|
export default mongoose.model( 'userAudit', userAuditSchem, 'userAudit' );
|
|
@@ -76,5 +76,6 @@ type:String
|
|
|
76
76
|
versionKey: false,
|
|
77
77
|
} );
|
|
78
78
|
|
|
79
|
+
userEmpDetectionSchema.index({ storeId: 1,moduleType:1, fileDate:1,clientId:1,userId:1, auditType:1, fileDateISO:1});
|
|
79
80
|
|
|
80
81
|
export default mongoose.model( 'userEmpDetection', userEmpDetectionSchema, 'userEmpDetection' );
|