tango-api-schema 2.2.132 → 2.2.133
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/index.js +3 -1
- package/package.json +1 -1
- package/schema/notification.model.js +26 -0
package/index.js
CHANGED
|
@@ -90,6 +90,7 @@ import planoCrestLogModel from './schema/planoCrestLog.model.js';
|
|
|
90
90
|
import countryCurrencyModel from './schema/countryCurrency.model.js';
|
|
91
91
|
import streamingModel from './schema/streaming.model.js';
|
|
92
92
|
import loginAttempt from "./schema/loginAttempt.model.js";
|
|
93
|
+
import notification from "./schema/notification.model.js";
|
|
93
94
|
|
|
94
95
|
|
|
95
96
|
export default {
|
|
@@ -184,5 +185,6 @@ export default {
|
|
|
184
185
|
planoCrestLogModel,
|
|
185
186
|
countryCurrencyModel,
|
|
186
187
|
streamingModel,
|
|
187
|
-
loginAttempt
|
|
188
|
+
loginAttempt,
|
|
189
|
+
notification
|
|
188
190
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const notification = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
userId: {
|
|
6
|
+
type: String,
|
|
7
|
+
},
|
|
8
|
+
captureTime: {
|
|
9
|
+
type:String,
|
|
10
|
+
},
|
|
11
|
+
storeId:{
|
|
12
|
+
type: String,
|
|
13
|
+
},
|
|
14
|
+
slotNo:{
|
|
15
|
+
type: Number,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
strict: true,
|
|
20
|
+
versionKey: false,
|
|
21
|
+
timestamps: true,
|
|
22
|
+
},
|
|
23
|
+
);
|
|
24
|
+
notification.index( { createdAt: 1 }, { expires: '1d' })
|
|
25
|
+
|
|
26
|
+
export default mongoose.model( 'notification', notification, 'notification');
|