@pintahub/database-schemas 1.5.8 → 1.6.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schemas/Product.js +11 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/database-schemas",
3
- "version": "1.5.8",
3
+ "version": "1.6.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -122,7 +122,11 @@ const Product = new Schema({
122
122
  index: true,
123
123
  },
124
124
 
125
- is_imported: {
125
+ source_product: {
126
+ type: Schema.Types.ObjectId,
127
+ },
128
+
129
+ is_imported: {//temporary filed for importing product
126
130
  type: Boolean,
127
131
  default: false,
128
132
  index: true,
@@ -137,6 +141,12 @@ const Product = new Schema({
137
141
  trello_id: {
138
142
  type: String,
139
143
  trim: true,
144
+ index: true,
145
+ },
146
+
147
+ user_idea: {
148
+ type: String,
149
+ trim: true,
140
150
  },
141
151
 
142
152
  updated_at: {