database-connector 2.2.6 → 2.2.7

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/models/Product.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const mongoose = require('mongoose');
2
2
  const { policySchema } = require('database-connector/models/Policy');
3
- const { getBaseURL, getDefaultImagePath } = require('../config');
3
+ // const { getBaseURL, getDefaultImagePath } = require('../config');
4
4
 
5
5
  /**
6
6
  * @swagger
package/models/Store.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const mongoose = require('mongoose');
2
2
  const { policySchema } = require('database-connector/models/Policy');
3
- const { getBaseURL, getDefaultStoreImagePath } = require('../config');
3
+ // const { getBaseURL, getDefaultStoreImagePath } = require('../config');
4
4
 
5
5
  /**
6
6
  * @swagger
@@ -374,6 +374,11 @@ const storeSchema = new mongoose.Schema(
374
374
  },
375
375
  },
376
376
  ],
377
+ qrCode: {
378
+ type: String,
379
+ required: false,
380
+ description: 'QR Code associated with the store',
381
+ },
377
382
  },
378
383
 
379
384
  { timestamps: true, toJSON: { virtuals: true } }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "database-connector",
3
- "version": "2.2.6",
3
+ "version": "2.2.7",
4
4
  "description": "MongoDB models package with Mongoose schemas for e-commerce applications. Includes User, Product, Store, Order and more with built-in validation and virtual properties.",
5
5
  "main": "models/index.js",
6
6
  "scripts": {