@pintahub/database-schemas 3.6.0 → 3.6.2

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.0",
3
+ "version": "3.6.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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: {
@@ -29,6 +29,12 @@ const ProductTag = new Schema({
29
29
  index: true,
30
30
  },
31
31
 
32
+ sales_count: {
33
+ type: Number,
34
+ default: 0,
35
+ index: true
36
+ },
37
+
32
38
  updated_at: {
33
39
  type: Date,
34
40
  default: Date.now