@pintahub/database-schemas 3.6.1 → 3.6.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/database-schemas",
3
- "version": "3.6.1",
3
+ "version": "3.6.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/schemas/Group.js CHANGED
@@ -99,6 +99,12 @@ const Group = new Schema({
99
99
  index: true,
100
100
  },
101
101
 
102
+ views_count: {
103
+ type: Number,
104
+ default: 0,
105
+ index: true,
106
+ },
107
+
102
108
  updated_at: {
103
109
  type: Date,
104
110
  default: Date.now
@@ -150,7 +150,8 @@ const Product = new Schema({
150
150
 
151
151
  last_synced_at: {
152
152
  type: Date,
153
- default: Date.now
153
+ default: Date.now,
154
+ index: true,
154
155
  },
155
156
 
156
157
  views_count: {