database-connector 2.5.0 → 2.5.1
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/Payment.js +1 -0
- package/models/User.js +8 -0
- package/package.json +1 -1
package/models/Payment.js
CHANGED
package/models/User.js
CHANGED
|
@@ -104,6 +104,10 @@ const { policySchema } = require('database-connector/models/Policy');
|
|
|
104
104
|
* enum: [ar, en, fr]
|
|
105
105
|
* default: en
|
|
106
106
|
* description: User's preferred language
|
|
107
|
+
* currency:
|
|
108
|
+
* type: string
|
|
109
|
+
* default: EUR
|
|
110
|
+
* description: User's preferred currency (EUR, USD, DZD, etc.)
|
|
107
111
|
* storeCategorieIds:
|
|
108
112
|
* type: array
|
|
109
113
|
* items:
|
|
@@ -253,6 +257,10 @@ const userSchema = new mongoose.Schema(
|
|
|
253
257
|
enum: ['ar', 'en', 'fr'],
|
|
254
258
|
default: 'en',
|
|
255
259
|
},
|
|
260
|
+
currency: {
|
|
261
|
+
type: String,
|
|
262
|
+
default: 'EUR',
|
|
263
|
+
},
|
|
256
264
|
storeCategorieIds: [
|
|
257
265
|
{
|
|
258
266
|
type: mongoose.Schema.Types.ObjectId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "database-connector",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1",
|
|
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": {
|