@pintahub/database-schemas 5.2.2 → 5.4.0
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 +0 -11
- package/schemas/ShortLog.js +1 -1
package/package.json
CHANGED
package/schemas/Product.js
CHANGED
|
@@ -48,7 +48,6 @@ const Product = new Schema({
|
|
|
48
48
|
/** @ref Shop */
|
|
49
49
|
shop: {
|
|
50
50
|
type: Schema.Types.ObjectId,
|
|
51
|
-
index: true,
|
|
52
51
|
},
|
|
53
52
|
|
|
54
53
|
/** Shopify product ID */
|
|
@@ -94,7 +93,6 @@ const Product = new Schema({
|
|
|
94
93
|
category: {
|
|
95
94
|
type: String,
|
|
96
95
|
trim: true,
|
|
97
|
-
index: true,
|
|
98
96
|
},
|
|
99
97
|
|
|
100
98
|
/** Product status, e.g. 'draft', 'active', 'archived' */
|
|
@@ -145,7 +143,6 @@ const Product = new Schema({
|
|
|
145
143
|
publications: {
|
|
146
144
|
type: [String],
|
|
147
145
|
default: [],
|
|
148
|
-
index: true,
|
|
149
146
|
},
|
|
150
147
|
|
|
151
148
|
/** Number of carts containing this product */
|
|
@@ -174,7 +171,6 @@ const Product = new Schema({
|
|
|
174
171
|
vendor: {
|
|
175
172
|
type: String,
|
|
176
173
|
trim: true,
|
|
177
|
-
index: true,
|
|
178
174
|
},
|
|
179
175
|
|
|
180
176
|
/** @ref Group — product group/bundle */
|
|
@@ -187,7 +183,6 @@ const Product = new Schema({
|
|
|
187
183
|
last_synced_at: {
|
|
188
184
|
type: Date,
|
|
189
185
|
default: Date.now,
|
|
190
|
-
index: true,
|
|
191
186
|
},
|
|
192
187
|
|
|
193
188
|
/** Total page views */
|
|
@@ -226,7 +221,6 @@ const Product = new Schema({
|
|
|
226
221
|
trello_id: {
|
|
227
222
|
type: String,
|
|
228
223
|
trim: true,
|
|
229
|
-
index: true,
|
|
230
224
|
},
|
|
231
225
|
|
|
232
226
|
/** SKU / internal product code */
|
|
@@ -240,14 +234,12 @@ const Product = new Schema({
|
|
|
240
234
|
user_idea: {
|
|
241
235
|
type: String,
|
|
242
236
|
trim: true,
|
|
243
|
-
index: true,
|
|
244
237
|
},
|
|
245
238
|
|
|
246
239
|
/** Visibility on storefront: 'visible' or 'sensitive' */
|
|
247
240
|
visibility: {
|
|
248
241
|
type: String,
|
|
249
242
|
trim: true,
|
|
250
|
-
index: true,
|
|
251
243
|
default: 'visible',
|
|
252
244
|
},
|
|
253
245
|
|
|
@@ -268,7 +260,6 @@ const Product = new Schema({
|
|
|
268
260
|
favorites_count: {
|
|
269
261
|
type: Number,
|
|
270
262
|
default: 0,
|
|
271
|
-
index: true,
|
|
272
263
|
},
|
|
273
264
|
|
|
274
265
|
/** Import source info */
|
|
@@ -367,7 +358,6 @@ const Product = new Schema({
|
|
|
367
358
|
external_id: {
|
|
368
359
|
type: String,
|
|
369
360
|
trim: true,
|
|
370
|
-
index: true,
|
|
371
361
|
},
|
|
372
362
|
|
|
373
363
|
/** Number of times this product has been transferred */
|
|
@@ -391,7 +381,6 @@ const Product = new Schema({
|
|
|
391
381
|
created_at: {
|
|
392
382
|
type: Date,
|
|
393
383
|
default: Date.now,
|
|
394
|
-
index: true,
|
|
395
384
|
}
|
|
396
385
|
})
|
|
397
386
|
|