tango-api-schema 2.0.97 → 2.0.98
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 +5 -3
- package/package.json +1 -1
- package/schema/tagging.model.js +35 -0
package/index.js
CHANGED
|
@@ -21,8 +21,9 @@ import basePricingModel from "./schema/basePricing.model.js";
|
|
|
21
21
|
import invoiceModel from "./schema/invoice.model.js";
|
|
22
22
|
import workstationModel from "./schema/workstation.model.js";
|
|
23
23
|
import dailyPricingModel from "./schema/dailyPricing.model.js";
|
|
24
|
-
import fittingModel from './schema/fitting.model.js'
|
|
25
|
-
import qualityCheckModel from './schema/quality.model.js'
|
|
24
|
+
import fittingModel from './schema/fitting.model.js';
|
|
25
|
+
import qualityCheckModel from './schema/quality.model.js';
|
|
26
|
+
import taggingModel from "./schema/tagging.model.js";
|
|
26
27
|
|
|
27
28
|
export default {
|
|
28
29
|
leadModel,
|
|
@@ -49,5 +50,6 @@ export default {
|
|
|
49
50
|
workstationModel,
|
|
50
51
|
dailyPricingModel,
|
|
51
52
|
fittingModel,
|
|
52
|
-
qualityCheckModel
|
|
53
|
+
qualityCheckModel,
|
|
54
|
+
taggingModel
|
|
53
55
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import mongooseUniqueValidator from 'mongoose-unique-validator';
|
|
2
|
+
import mongoose from 'mongoose';
|
|
3
|
+
|
|
4
|
+
// schema
|
|
5
|
+
const collection = new Schema({
|
|
6
|
+
clientId:{
|
|
7
|
+
type:String,
|
|
8
|
+
required:true
|
|
9
|
+
},
|
|
10
|
+
storeId:{
|
|
11
|
+
type:String,
|
|
12
|
+
required:true
|
|
13
|
+
},
|
|
14
|
+
tagName:{
|
|
15
|
+
type:String,
|
|
16
|
+
required:true
|
|
17
|
+
},
|
|
18
|
+
coordinates:{
|
|
19
|
+
type:Array,
|
|
20
|
+
},
|
|
21
|
+
cameraId:{
|
|
22
|
+
type:mongoose.Types.ObjectId,
|
|
23
|
+
},
|
|
24
|
+
streamName:{
|
|
25
|
+
type:String,
|
|
26
|
+
}
|
|
27
|
+
},{
|
|
28
|
+
strict: true,
|
|
29
|
+
versionKey: false,
|
|
30
|
+
timestamps: true,
|
|
31
|
+
} );
|
|
32
|
+
|
|
33
|
+
collection.plugin(mongooseUniqueValidator);
|
|
34
|
+
|
|
35
|
+
export default model("tagging", collection);
|