tango-api-schema 2.0.10 → 2.0.11

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
@@ -3,8 +3,9 @@ import otpModel from "./schema/otp.model.js";
3
3
  import storeModel from "./schema/store.model.js";
4
4
  import countryCodesModel from './schema/countryCodes.model.js';
5
5
  import clientModel from "./schema/client.model.js";
6
- import tangoTicketModel from "./schema/tangoTicket.model.js"
7
- import virtualAccountModel from "./schema/virtualAccount.model.js"
6
+ import tangoTicketModel from "./schema/tangoTicket.model.js";
7
+ import virtualModel from "./schema/virtualAccount.model.js";
8
+ import basePricingModel from "./schema/basePricing.model.js";
8
9
 
9
10
  export default {
10
11
  leadModel,
@@ -13,5 +14,6 @@ export default {
13
14
  countryCodesModel,
14
15
  clientModel,
15
16
  tangoTicketModel,
16
- virtualAccountModel,
17
+ virtualModel,
18
+ basePricingModel,
17
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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);