database-connector 2.1.3 → 2.1.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/User.js +14 -0
- package/package.json +1 -1
package/models/User.js
CHANGED
|
@@ -55,6 +55,13 @@ const { policySchema } = require('database-connector/models/Policy');
|
|
|
55
55
|
* email:
|
|
56
56
|
* type: string
|
|
57
57
|
* description: User email address
|
|
58
|
+
* isGoogleAuth:
|
|
59
|
+
* type: boolean
|
|
60
|
+
* default: false
|
|
61
|
+
* description: Whether the user authenticated via Google
|
|
62
|
+
* googleUid:
|
|
63
|
+
* type: string
|
|
64
|
+
* description: Google user identifier
|
|
58
65
|
* favouritsProductst:
|
|
59
66
|
* type: array
|
|
60
67
|
* items:
|
|
@@ -170,6 +177,13 @@ const userSchema = new mongoose.Schema(
|
|
|
170
177
|
type: String,
|
|
171
178
|
default: null,
|
|
172
179
|
},
|
|
180
|
+
isGoogleAuth: {
|
|
181
|
+
type: Boolean,
|
|
182
|
+
default: false,
|
|
183
|
+
},
|
|
184
|
+
googleUid: {
|
|
185
|
+
type: String,
|
|
186
|
+
},
|
|
173
187
|
favouritsProductst: [
|
|
174
188
|
{
|
|
175
189
|
productId: { type: String },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "database-connector",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.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": {
|