tango-api-schema 2.1.37 → 2.1.39

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.1.37",
3
+ "version": "2.1.39",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -58,16 +58,18 @@ const auditLogSchema = new mongoose.Schema( {
58
58
  },
59
59
  retagImage: {
60
60
  type: Array,
61
+ },
62
+ timeSpent:{
63
+ type:Number
61
64
  }
62
65
  },
63
66
  {
64
67
  timestamps: true,
65
68
  strict: true,
66
69
  versionKey: false,
67
- expires: '3d',
68
70
  } );
69
71
 
70
- auditLogSchema.index({ userId:1,storeId: 1,moduleType:1, fileDate:1, auditType:1 });
72
+ auditLogSchema.index({ userId:1,storeId: 1,moduleType:1, fileDate:1, auditType:1,createdAt: 1 },{ expires: '3d' });
71
73
 
72
74
  export default mongoose.model( 'auditLog', auditLogSchema, 'auditLog' );
73
75
 
@@ -74,10 +74,7 @@ const user = new mongoose.Schema(
74
74
  },
75
75
  isEdit: {
76
76
  type: Boolean,
77
- },
78
- isDelete: {
79
- type: Boolean,
80
- },
77
+ },
81
78
  },
82
79
  ],
83
80
  },
@@ -109,6 +106,9 @@ const user = new mongoose.Schema(
109
106
  employeeId:{
110
107
  type:String
111
108
  },
109
+ assignedStores:{
110
+ type:Array
111
+ }
112
112
  },
113
113
  {
114
114
  strict: true,