database-connector 2.3.11 → 2.3.12

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.
@@ -19,6 +19,10 @@ const mongoose = require('mongoose');
19
19
  * type: boolean
20
20
  * default: false
21
21
  * description: Whether the category is confirmed
22
+ * rayonId:
23
+ * type: string
24
+ * nullable: true
25
+ * description: Reference to rayon or sub-rayon (ObjectId)
22
26
  * createdAt:
23
27
  * type: string
24
28
  * format: date-time
@@ -38,7 +42,11 @@ const storeCategorySchema = new mongoose.Schema(
38
42
  type: String,
39
43
  required: true
40
44
  },
41
- confirmed: { type: Boolean, default: false }
45
+ confirmed: { type: Boolean, default: false },
46
+ rayonId: {
47
+ type: mongoose.Schema.Types.ObjectId,
48
+ default: null,
49
+ },
42
50
  },
43
51
  { timestamps: true, toJSON: { virtuals: true } }
44
52
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "database-connector",
3
- "version": "2.3.11",
3
+ "version": "2.3.12",
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": {