@pintahub/database-schemas 1.6.1 → 1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schemas/Product.js +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/database-schemas",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -155,6 +155,12 @@ const Product = new Schema({
155
155
  trim: true,
156
156
  },
157
157
 
158
+ visibility: {
159
+ type: String,
160
+ trim: true,
161
+ index: true,
162
+ },
163
+
158
164
  updated_at: {
159
165
  type: Date,
160
166
  default: Date.now
@@ -170,5 +176,9 @@ Product.index({
170
176
  title: 'text',
171
177
  })
172
178
 
179
+ Product.index({
180
+ alternative_title: 'text',
181
+ })
182
+
173
183
  module.exports = Product
174
184