@pintahub/database-schemas 1.4.2 → 1.4.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/package.json +1 -1
- package/schemas/Product.js +10 -0
package/package.json
CHANGED
package/schemas/Product.js
CHANGED
|
@@ -96,11 +96,21 @@ const Product = new Schema({
|
|
|
96
96
|
index: true,
|
|
97
97
|
},
|
|
98
98
|
|
|
99
|
+
group: {
|
|
100
|
+
type: Schema.Types.ObjectId,
|
|
101
|
+
},
|
|
102
|
+
|
|
99
103
|
last_synced_at: {
|
|
100
104
|
type: Date,
|
|
101
105
|
default: Date.now
|
|
102
106
|
},
|
|
103
107
|
|
|
108
|
+
views_count: {
|
|
109
|
+
type: Number,
|
|
110
|
+
default: 0,
|
|
111
|
+
index: true,
|
|
112
|
+
},
|
|
113
|
+
|
|
104
114
|
updated_at: {
|
|
105
115
|
type: Date,
|
|
106
116
|
default: Date.now
|