@cendo/database-schemas 1.9.3 → 1.9.6
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/Order.js +15 -0
package/package.json
CHANGED
package/schemas/Order.js
CHANGED
|
@@ -142,6 +142,12 @@ const Order = new Schema({
|
|
|
142
142
|
index: true
|
|
143
143
|
},
|
|
144
144
|
|
|
145
|
+
push_to_carrier_attempts: {
|
|
146
|
+
type: Number,
|
|
147
|
+
default: 0,
|
|
148
|
+
index: true
|
|
149
|
+
},
|
|
150
|
+
|
|
145
151
|
sync_id: {
|
|
146
152
|
type: String,
|
|
147
153
|
trim: true,
|
|
@@ -151,6 +157,11 @@ const Order = new Schema({
|
|
|
151
157
|
type: Boolean,
|
|
152
158
|
},
|
|
153
159
|
|
|
160
|
+
pushed_at: {
|
|
161
|
+
type: Date,
|
|
162
|
+
index: true
|
|
163
|
+
},
|
|
164
|
+
|
|
154
165
|
updated_at: {
|
|
155
166
|
type: Date,
|
|
156
167
|
default: Date.now
|
|
@@ -176,5 +187,9 @@ Order.index({
|
|
|
176
187
|
type: 1,
|
|
177
188
|
})
|
|
178
189
|
|
|
190
|
+
Order.index({
|
|
191
|
+
'logistic_data.tracking_number': 1,
|
|
192
|
+
})
|
|
193
|
+
|
|
179
194
|
module.exports = Order
|
|
180
195
|
|