@pintahub/database-schemas 2.1.3 → 2.1.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schemas/Product.js +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/database-schemas",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -176,6 +176,12 @@ const Product = new Schema({
176
176
  trim: true,
177
177
  },
178
178
 
179
+ sales_count: {
180
+ type: Number,
181
+ default: 0,
182
+ index: true,
183
+ },
184
+
179
185
  source: {
180
186
  type: ProductSource,
181
187
  },
@@ -197,6 +203,11 @@ const Product = new Schema({
197
203
  trim: true,
198
204
  },
199
205
 
206
+ is_featured: {
207
+ type: Boolean,
208
+ default: false,
209
+ },
210
+
200
211
  updated_at: {
201
212
  type: Date,
202
213
  default: Date.now