@cendo/database-schemas 1.9.1 → 1.9.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cendo/database-schemas",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "keywords": [],
package/schemas/Order.js CHANGED
@@ -142,6 +142,11 @@ const Order = new Schema({
142
142
  index: true
143
143
  },
144
144
 
145
+ sync_id: {
146
+ type: String,
147
+ trim: true,
148
+ },
149
+
145
150
  updated_at: {
146
151
  type: Date,
147
152
  default: Date.now
@@ -74,6 +74,11 @@ const OrderItem = new Schema({
74
74
  // ref: 'Media'
75
75
  },
76
76
 
77
+ sync_id: {
78
+ type: String,
79
+ trim: true,
80
+ },
81
+
77
82
  updated_at: {
78
83
  type: Date,
79
84
  default: Date.now
@@ -90,4 +95,9 @@ OrderItem.index({
90
95
  sku_id: 1,
91
96
  })
92
97
 
98
+ OrderItem.index({
99
+ order: 1,
100
+ sync_id: 1,
101
+ })
102
+
93
103
  module.exports = OrderItem