database-connector 2.5.5 → 2.5.6

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/Store.js CHANGED
@@ -541,12 +541,12 @@ const storeSchema = new mongoose.Schema(
541
541
  ],
542
542
  deliveryScope: {
543
543
  type: String,
544
- enum: ['local', 'national'],
544
+ enum: ['local', 'national', null],
545
545
  default: null,
546
546
  },
547
547
  availableQuantities: {
548
548
  type: String,
549
- enum: ['small_series', 'volume', 'both'],
549
+ enum: ['small_series', 'volume', 'both', null],
550
550
  default: null,
551
551
  },
552
552
  },
package/models/User.js CHANGED
@@ -185,7 +185,7 @@ const userSchema = new mongoose.Schema(
185
185
  },
186
186
  sellerType: {
187
187
  type: String,
188
- enum: ['physical_merchant', 'mobile_merchant', 'producer', 'e_merchant'],
188
+ enum: ['physical_merchant', 'mobile_merchant', 'producer', 'e_merchant', null],
189
189
  default: null,
190
190
  },
191
191
  isAdmin: { type: Boolean, default: false },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "database-connector",
3
- "version": "2.5.5",
3
+ "version": "2.5.6",
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": {