database-connector 2.5.8 → 2.5.9
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/User.js +9 -0
- package/package.json +1 -1
package/models/User.js
CHANGED
|
@@ -33,6 +33,11 @@ const { policySchema } = require('database-connector/models/Policy');
|
|
|
33
33
|
* type: boolean
|
|
34
34
|
* default: false
|
|
35
35
|
* description: Whether the user is an admin
|
|
36
|
+
* mobilePaymentManager:
|
|
37
|
+
* type: boolean
|
|
38
|
+
* nullable: true
|
|
39
|
+
* default: null
|
|
40
|
+
* description: Whether the payment manager goes to buyers to collect money (null if the user is not a paymentManager)
|
|
36
41
|
* companyName:
|
|
37
42
|
* type: string
|
|
38
43
|
* description: Company name
|
|
@@ -189,6 +194,10 @@ const userSchema = new mongoose.Schema(
|
|
|
189
194
|
default: null,
|
|
190
195
|
},
|
|
191
196
|
isAdmin: { type: Boolean, default: false },
|
|
197
|
+
mobilePaymentManager: {
|
|
198
|
+
type: Boolean,
|
|
199
|
+
default: null,
|
|
200
|
+
},
|
|
192
201
|
companyName: {
|
|
193
202
|
type: String,
|
|
194
203
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "database-connector",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.9",
|
|
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": {
|