tango-api-schema 2.4.31 → 2.5.0

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
@@ -117,6 +117,7 @@ import planoMappingDuplicateModel from "./schema/planoMappingDuplicate.model.js"
117
117
  import planoVmDetailDuplicateModel from "./schema/planoVmDetailDuplicate.model.js";
118
118
  import planoProductDetailDuplicateModel from "./schema/planoProductDetailDuplicate.model.js";
119
119
  import vmsStoreRequestModel from './schema/vmsStoreRequest.model.js'
120
+ import storeAccuracyIssuesModel from "./schema/storeAccuracyIssues.model.js";
120
121
 
121
122
 
122
123
  export default {
@@ -235,5 +236,6 @@ export default {
235
236
  planoMappingDuplicateModel,
236
237
  planoVmDetailDuplicateModel,
237
238
  planoProductDetailDuplicateModel,
238
- vmsStoreRequestModel
239
+ vmsStoreRequestModel,
240
+ storeAccuracyIssuesModel
239
241
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.4.31",
3
+ "version": "2.5.0",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -0,0 +1,27 @@
1
+ import mongoose from 'mongoose';
2
+
3
+ const collection = new mongoose.Schema(
4
+ {
5
+ clientId: {
6
+ type: String,
7
+ required: true,
8
+ },
9
+ IssueName:{
10
+ type:String,
11
+ required:true
12
+ },
13
+ isActive:{
14
+ type:Boolean
15
+ }
16
+ },
17
+ {
18
+ strict: true,
19
+ versionKey: false,
20
+ timestamps: true,
21
+ },
22
+ );
23
+
24
+ collection.index({ clientId:1,IssueName: 1,isActive:1 });
25
+ collection.index({ clientId:1 });
26
+
27
+ export default mongoose.model( 'storeAccuracyIssues', collection, "storeAccuracyIssues" );