@pintahub/database-schemas 1.5.9 → 1.6.1

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.9",
3
+ "version": "1.6.1",
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,
@@ -140,6 +144,12 @@ const Product = new Schema({
140
144
  index: true,
141
145
  },
142
146
 
147
+ code: {
148
+ type: String,
149
+ trim: true,
150
+ index: true,
151
+ },
152
+
143
153
  user_idea: {
144
154
  type: String,
145
155
  trim: true,