tango-api-schema 2.0.39 → 2.0.41
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
|
@@ -18,6 +18,8 @@ import groupModel from './schema/group.model.js';
|
|
|
18
18
|
import authenticationModel from './schema/authentication.model.js';
|
|
19
19
|
import userAssignedStoreModel from "./schema/userAssignedStore.model.js";
|
|
20
20
|
import edgeappAuthModel from "./schema/edgeappAuth.model.js";
|
|
21
|
+
import clientRequestModel from "./schema/clientRequest.model.js";
|
|
22
|
+
import basePricingModel from "./schema/basePricing.model.js";
|
|
21
23
|
|
|
22
24
|
|
|
23
25
|
|
|
@@ -41,5 +43,7 @@ export default {
|
|
|
41
43
|
groupModel,
|
|
42
44
|
authenticationModel,
|
|
43
45
|
userAssignedStoreModel,
|
|
44
|
-
edgeappAuthModel
|
|
46
|
+
edgeappAuthModel,
|
|
47
|
+
clientRequestModel,
|
|
48
|
+
basePricingModel,
|
|
45
49
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import mongoose from 'mongoose'
|
|
2
|
+
import mongooseUniqueValidator from 'mongoose-unique-validator'
|
|
3
|
+
|
|
4
|
+
let pricingSchema = new mongoose.Schema(
|
|
5
|
+
{
|
|
6
|
+
product_name:{
|
|
7
|
+
type:String,
|
|
8
|
+
required:true
|
|
9
|
+
},
|
|
10
|
+
base_price: {
|
|
11
|
+
type:Number,
|
|
12
|
+
required: true
|
|
13
|
+
},
|
|
14
|
+
discout_percentage: {
|
|
15
|
+
type:Number,
|
|
16
|
+
required:true
|
|
17
|
+
},
|
|
18
|
+
camara_per_stores: {
|
|
19
|
+
type:Array
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
pricingSchema.plugin(mongooseUniqueValidator);
|
|
25
|
+
export default mongoose.model('basepricing', pricingSchema);
|
|
File without changes
|