tango-api-schema 2.2.132 → 2.2.134

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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.2.132",
3
+ "version": "2.2.134",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -0,0 +1,32 @@
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
+ storeName:{
15
+ type: String,
16
+ },
17
+ status:{
18
+ type: String,
19
+ },
20
+ slotNo:{
21
+ type: Number,
22
+ },
23
+ },
24
+ {
25
+ strict: true,
26
+ versionKey: false,
27
+ timestamps: true,
28
+ },
29
+ );
30
+ notification.index( { createdAt: 1 }, { expires: '1d' })
31
+
32
+ export default mongoose.model( 'notification', notification, 'notification');