database-connector 2.2.3 → 2.2.4
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 +6 -0
- package/package.json +1 -1
package/models/Store.js
CHANGED
|
@@ -60,6 +60,9 @@ const { getBaseURL, getDefaultStoreImagePath } = require('../config');
|
|
|
60
60
|
* description:
|
|
61
61
|
* type: string
|
|
62
62
|
* description: Store description
|
|
63
|
+
* registrationNumber:
|
|
64
|
+
* type: string
|
|
65
|
+
* description: Store registration number
|
|
63
66
|
* isActive:
|
|
64
67
|
* type: boolean
|
|
65
68
|
* default: true
|
|
@@ -269,6 +272,9 @@ const storeSchema = new mongoose.Schema(
|
|
|
269
272
|
type: String,
|
|
270
273
|
required: true,
|
|
271
274
|
},
|
|
275
|
+
registrationNumber: {
|
|
276
|
+
type: String,
|
|
277
|
+
},
|
|
272
278
|
ratingCount: {
|
|
273
279
|
type: Number,
|
|
274
280
|
default: 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "database-connector",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
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": {
|