@open-mercato/core 0.4.11-develop.1275.9b2be5ab76 → 0.4.11-develop.1299.78ca9c88e2
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 +3 -3
- package/src/modules/auth/migrations/.snapshot-open-mercato.json +716 -8
- package/src/modules/customers/migrations/.snapshot-open-mercato.json +1619 -278
- package/src/modules/inbox_ops/migrations/.snapshot-open-mercato.json +654 -5
- package/src/modules/payment_gateways/migrations/.snapshot-open-mercato.json +195 -7
|
@@ -11,9 +11,15 @@
|
|
|
11
11
|
"type": "uuid",
|
|
12
12
|
"unsigned": false,
|
|
13
13
|
"autoincrement": false,
|
|
14
|
-
"primary":
|
|
14
|
+
"primary": true,
|
|
15
15
|
"nullable": false,
|
|
16
|
+
"unique": false,
|
|
17
|
+
"length": null,
|
|
18
|
+
"precision": null,
|
|
19
|
+
"scale": null,
|
|
16
20
|
"default": "gen_random_uuid()",
|
|
21
|
+
"comment": null,
|
|
22
|
+
"enumItems": [],
|
|
17
23
|
"mappedType": "uuid"
|
|
18
24
|
},
|
|
19
25
|
"payment_id": {
|
|
@@ -23,6 +29,13 @@
|
|
|
23
29
|
"autoincrement": false,
|
|
24
30
|
"primary": false,
|
|
25
31
|
"nullable": false,
|
|
32
|
+
"unique": false,
|
|
33
|
+
"length": null,
|
|
34
|
+
"precision": null,
|
|
35
|
+
"scale": null,
|
|
36
|
+
"default": null,
|
|
37
|
+
"comment": null,
|
|
38
|
+
"enumItems": [],
|
|
26
39
|
"mappedType": "uuid"
|
|
27
40
|
},
|
|
28
41
|
"provider_key": {
|
|
@@ -32,6 +45,13 @@
|
|
|
32
45
|
"autoincrement": false,
|
|
33
46
|
"primary": false,
|
|
34
47
|
"nullable": false,
|
|
48
|
+
"unique": false,
|
|
49
|
+
"length": null,
|
|
50
|
+
"precision": null,
|
|
51
|
+
"scale": null,
|
|
52
|
+
"default": null,
|
|
53
|
+
"comment": null,
|
|
54
|
+
"enumItems": [],
|
|
35
55
|
"mappedType": "text"
|
|
36
56
|
},
|
|
37
57
|
"provider_session_id": {
|
|
@@ -41,6 +61,13 @@
|
|
|
41
61
|
"autoincrement": false,
|
|
42
62
|
"primary": false,
|
|
43
63
|
"nullable": true,
|
|
64
|
+
"unique": false,
|
|
65
|
+
"length": null,
|
|
66
|
+
"precision": null,
|
|
67
|
+
"scale": null,
|
|
68
|
+
"default": null,
|
|
69
|
+
"comment": null,
|
|
70
|
+
"enumItems": [],
|
|
44
71
|
"mappedType": "text"
|
|
45
72
|
},
|
|
46
73
|
"gateway_payment_id": {
|
|
@@ -50,6 +77,13 @@
|
|
|
50
77
|
"autoincrement": false,
|
|
51
78
|
"primary": false,
|
|
52
79
|
"nullable": true,
|
|
80
|
+
"unique": false,
|
|
81
|
+
"length": null,
|
|
82
|
+
"precision": null,
|
|
83
|
+
"scale": null,
|
|
84
|
+
"default": null,
|
|
85
|
+
"comment": null,
|
|
86
|
+
"enumItems": [],
|
|
53
87
|
"mappedType": "text"
|
|
54
88
|
},
|
|
55
89
|
"gateway_refund_id": {
|
|
@@ -59,6 +93,13 @@
|
|
|
59
93
|
"autoincrement": false,
|
|
60
94
|
"primary": false,
|
|
61
95
|
"nullable": true,
|
|
96
|
+
"unique": false,
|
|
97
|
+
"length": null,
|
|
98
|
+
"precision": null,
|
|
99
|
+
"scale": null,
|
|
100
|
+
"default": null,
|
|
101
|
+
"comment": null,
|
|
102
|
+
"enumItems": [],
|
|
62
103
|
"mappedType": "text"
|
|
63
104
|
},
|
|
64
105
|
"unified_status": {
|
|
@@ -68,7 +109,13 @@
|
|
|
68
109
|
"autoincrement": false,
|
|
69
110
|
"primary": false,
|
|
70
111
|
"nullable": false,
|
|
112
|
+
"unique": false,
|
|
113
|
+
"length": null,
|
|
114
|
+
"precision": null,
|
|
115
|
+
"scale": null,
|
|
71
116
|
"default": "'pending'",
|
|
117
|
+
"comment": null,
|
|
118
|
+
"enumItems": [],
|
|
72
119
|
"mappedType": "text"
|
|
73
120
|
},
|
|
74
121
|
"gateway_status": {
|
|
@@ -78,6 +125,13 @@
|
|
|
78
125
|
"autoincrement": false,
|
|
79
126
|
"primary": false,
|
|
80
127
|
"nullable": true,
|
|
128
|
+
"unique": false,
|
|
129
|
+
"length": null,
|
|
130
|
+
"precision": null,
|
|
131
|
+
"scale": null,
|
|
132
|
+
"default": null,
|
|
133
|
+
"comment": null,
|
|
134
|
+
"enumItems": [],
|
|
81
135
|
"mappedType": "text"
|
|
82
136
|
},
|
|
83
137
|
"redirect_url": {
|
|
@@ -87,6 +141,13 @@
|
|
|
87
141
|
"autoincrement": false,
|
|
88
142
|
"primary": false,
|
|
89
143
|
"nullable": true,
|
|
144
|
+
"unique": false,
|
|
145
|
+
"length": null,
|
|
146
|
+
"precision": null,
|
|
147
|
+
"scale": null,
|
|
148
|
+
"default": null,
|
|
149
|
+
"comment": null,
|
|
150
|
+
"enumItems": [],
|
|
90
151
|
"mappedType": "text"
|
|
91
152
|
},
|
|
92
153
|
"client_secret": {
|
|
@@ -96,6 +157,13 @@
|
|
|
96
157
|
"autoincrement": false,
|
|
97
158
|
"primary": false,
|
|
98
159
|
"nullable": true,
|
|
160
|
+
"unique": false,
|
|
161
|
+
"length": null,
|
|
162
|
+
"precision": null,
|
|
163
|
+
"scale": null,
|
|
164
|
+
"default": null,
|
|
165
|
+
"comment": null,
|
|
166
|
+
"enumItems": [],
|
|
99
167
|
"mappedType": "text"
|
|
100
168
|
},
|
|
101
169
|
"amount": {
|
|
@@ -105,8 +173,13 @@
|
|
|
105
173
|
"autoincrement": false,
|
|
106
174
|
"primary": false,
|
|
107
175
|
"nullable": false,
|
|
176
|
+
"unique": false,
|
|
177
|
+
"length": null,
|
|
108
178
|
"precision": 18,
|
|
109
179
|
"scale": 4,
|
|
180
|
+
"default": null,
|
|
181
|
+
"comment": null,
|
|
182
|
+
"enumItems": [],
|
|
110
183
|
"mappedType": "decimal"
|
|
111
184
|
},
|
|
112
185
|
"currency_code": {
|
|
@@ -116,6 +189,13 @@
|
|
|
116
189
|
"autoincrement": false,
|
|
117
190
|
"primary": false,
|
|
118
191
|
"nullable": false,
|
|
192
|
+
"unique": false,
|
|
193
|
+
"length": null,
|
|
194
|
+
"precision": null,
|
|
195
|
+
"scale": null,
|
|
196
|
+
"default": null,
|
|
197
|
+
"comment": null,
|
|
198
|
+
"enumItems": [],
|
|
119
199
|
"mappedType": "text"
|
|
120
200
|
},
|
|
121
201
|
"gateway_metadata": {
|
|
@@ -125,6 +205,13 @@
|
|
|
125
205
|
"autoincrement": false,
|
|
126
206
|
"primary": false,
|
|
127
207
|
"nullable": true,
|
|
208
|
+
"unique": false,
|
|
209
|
+
"length": null,
|
|
210
|
+
"precision": null,
|
|
211
|
+
"scale": null,
|
|
212
|
+
"default": null,
|
|
213
|
+
"comment": null,
|
|
214
|
+
"enumItems": [],
|
|
128
215
|
"mappedType": "json"
|
|
129
216
|
},
|
|
130
217
|
"webhook_log": {
|
|
@@ -134,6 +221,13 @@
|
|
|
134
221
|
"autoincrement": false,
|
|
135
222
|
"primary": false,
|
|
136
223
|
"nullable": true,
|
|
224
|
+
"unique": false,
|
|
225
|
+
"length": null,
|
|
226
|
+
"precision": null,
|
|
227
|
+
"scale": null,
|
|
228
|
+
"default": null,
|
|
229
|
+
"comment": null,
|
|
230
|
+
"enumItems": [],
|
|
137
231
|
"mappedType": "json"
|
|
138
232
|
},
|
|
139
233
|
"last_webhook_at": {
|
|
@@ -143,7 +237,13 @@
|
|
|
143
237
|
"autoincrement": false,
|
|
144
238
|
"primary": false,
|
|
145
239
|
"nullable": true,
|
|
240
|
+
"unique": false,
|
|
146
241
|
"length": 6,
|
|
242
|
+
"precision": null,
|
|
243
|
+
"scale": null,
|
|
244
|
+
"default": null,
|
|
245
|
+
"comment": null,
|
|
246
|
+
"enumItems": [],
|
|
147
247
|
"mappedType": "datetime"
|
|
148
248
|
},
|
|
149
249
|
"last_polled_at": {
|
|
@@ -153,7 +253,13 @@
|
|
|
153
253
|
"autoincrement": false,
|
|
154
254
|
"primary": false,
|
|
155
255
|
"nullable": true,
|
|
256
|
+
"unique": false,
|
|
156
257
|
"length": 6,
|
|
258
|
+
"precision": null,
|
|
259
|
+
"scale": null,
|
|
260
|
+
"default": null,
|
|
261
|
+
"comment": null,
|
|
262
|
+
"enumItems": [],
|
|
157
263
|
"mappedType": "datetime"
|
|
158
264
|
},
|
|
159
265
|
"expires_at": {
|
|
@@ -163,7 +269,13 @@
|
|
|
163
269
|
"autoincrement": false,
|
|
164
270
|
"primary": false,
|
|
165
271
|
"nullable": true,
|
|
272
|
+
"unique": false,
|
|
166
273
|
"length": 6,
|
|
274
|
+
"precision": null,
|
|
275
|
+
"scale": null,
|
|
276
|
+
"default": null,
|
|
277
|
+
"comment": null,
|
|
278
|
+
"enumItems": [],
|
|
167
279
|
"mappedType": "datetime"
|
|
168
280
|
},
|
|
169
281
|
"organization_id": {
|
|
@@ -173,6 +285,13 @@
|
|
|
173
285
|
"autoincrement": false,
|
|
174
286
|
"primary": false,
|
|
175
287
|
"nullable": false,
|
|
288
|
+
"unique": false,
|
|
289
|
+
"length": null,
|
|
290
|
+
"precision": null,
|
|
291
|
+
"scale": null,
|
|
292
|
+
"default": null,
|
|
293
|
+
"comment": null,
|
|
294
|
+
"enumItems": [],
|
|
176
295
|
"mappedType": "uuid"
|
|
177
296
|
},
|
|
178
297
|
"tenant_id": {
|
|
@@ -182,6 +301,13 @@
|
|
|
182
301
|
"autoincrement": false,
|
|
183
302
|
"primary": false,
|
|
184
303
|
"nullable": false,
|
|
304
|
+
"unique": false,
|
|
305
|
+
"length": null,
|
|
306
|
+
"precision": null,
|
|
307
|
+
"scale": null,
|
|
308
|
+
"default": null,
|
|
309
|
+
"comment": null,
|
|
310
|
+
"enumItems": [],
|
|
185
311
|
"mappedType": "uuid"
|
|
186
312
|
},
|
|
187
313
|
"created_at": {
|
|
@@ -191,7 +317,13 @@
|
|
|
191
317
|
"autoincrement": false,
|
|
192
318
|
"primary": false,
|
|
193
319
|
"nullable": false,
|
|
320
|
+
"unique": false,
|
|
194
321
|
"length": 6,
|
|
322
|
+
"precision": null,
|
|
323
|
+
"scale": null,
|
|
324
|
+
"default": null,
|
|
325
|
+
"comment": null,
|
|
326
|
+
"enumItems": [],
|
|
195
327
|
"mappedType": "datetime"
|
|
196
328
|
},
|
|
197
329
|
"updated_at": {
|
|
@@ -201,7 +333,13 @@
|
|
|
201
333
|
"autoincrement": false,
|
|
202
334
|
"primary": false,
|
|
203
335
|
"nullable": false,
|
|
336
|
+
"unique": false,
|
|
204
337
|
"length": 6,
|
|
338
|
+
"precision": null,
|
|
339
|
+
"scale": null,
|
|
340
|
+
"default": null,
|
|
341
|
+
"comment": null,
|
|
342
|
+
"enumItems": [],
|
|
205
343
|
"mappedType": "datetime"
|
|
206
344
|
},
|
|
207
345
|
"deleted_at": {
|
|
@@ -211,7 +349,13 @@
|
|
|
211
349
|
"autoincrement": false,
|
|
212
350
|
"primary": false,
|
|
213
351
|
"nullable": true,
|
|
352
|
+
"unique": false,
|
|
214
353
|
"length": 6,
|
|
354
|
+
"precision": null,
|
|
355
|
+
"scale": null,
|
|
356
|
+
"default": null,
|
|
357
|
+
"comment": null,
|
|
358
|
+
"enumItems": [],
|
|
215
359
|
"mappedType": "datetime"
|
|
216
360
|
}
|
|
217
361
|
},
|
|
@@ -276,9 +420,15 @@
|
|
|
276
420
|
"type": "uuid",
|
|
277
421
|
"unsigned": false,
|
|
278
422
|
"autoincrement": false,
|
|
279
|
-
"primary":
|
|
423
|
+
"primary": true,
|
|
280
424
|
"nullable": false,
|
|
425
|
+
"unique": false,
|
|
426
|
+
"length": null,
|
|
427
|
+
"precision": null,
|
|
428
|
+
"scale": null,
|
|
281
429
|
"default": "gen_random_uuid()",
|
|
430
|
+
"comment": null,
|
|
431
|
+
"enumItems": [],
|
|
282
432
|
"mappedType": "uuid"
|
|
283
433
|
},
|
|
284
434
|
"provider_key": {
|
|
@@ -288,6 +438,13 @@
|
|
|
288
438
|
"autoincrement": false,
|
|
289
439
|
"primary": false,
|
|
290
440
|
"nullable": false,
|
|
441
|
+
"unique": false,
|
|
442
|
+
"length": null,
|
|
443
|
+
"precision": null,
|
|
444
|
+
"scale": null,
|
|
445
|
+
"default": null,
|
|
446
|
+
"comment": null,
|
|
447
|
+
"enumItems": [],
|
|
291
448
|
"mappedType": "text"
|
|
292
449
|
},
|
|
293
450
|
"idempotency_key": {
|
|
@@ -297,6 +454,13 @@
|
|
|
297
454
|
"autoincrement": false,
|
|
298
455
|
"primary": false,
|
|
299
456
|
"nullable": false,
|
|
457
|
+
"unique": false,
|
|
458
|
+
"length": null,
|
|
459
|
+
"precision": null,
|
|
460
|
+
"scale": null,
|
|
461
|
+
"default": null,
|
|
462
|
+
"comment": null,
|
|
463
|
+
"enumItems": [],
|
|
300
464
|
"mappedType": "text"
|
|
301
465
|
},
|
|
302
466
|
"event_type": {
|
|
@@ -306,6 +470,13 @@
|
|
|
306
470
|
"autoincrement": false,
|
|
307
471
|
"primary": false,
|
|
308
472
|
"nullable": false,
|
|
473
|
+
"unique": false,
|
|
474
|
+
"length": null,
|
|
475
|
+
"precision": null,
|
|
476
|
+
"scale": null,
|
|
477
|
+
"default": null,
|
|
478
|
+
"comment": null,
|
|
479
|
+
"enumItems": [],
|
|
309
480
|
"mappedType": "text"
|
|
310
481
|
},
|
|
311
482
|
"organization_id": {
|
|
@@ -315,6 +486,13 @@
|
|
|
315
486
|
"autoincrement": false,
|
|
316
487
|
"primary": false,
|
|
317
488
|
"nullable": false,
|
|
489
|
+
"unique": false,
|
|
490
|
+
"length": null,
|
|
491
|
+
"precision": null,
|
|
492
|
+
"scale": null,
|
|
493
|
+
"default": null,
|
|
494
|
+
"comment": null,
|
|
495
|
+
"enumItems": [],
|
|
318
496
|
"mappedType": "uuid"
|
|
319
497
|
},
|
|
320
498
|
"tenant_id": {
|
|
@@ -324,6 +502,13 @@
|
|
|
324
502
|
"autoincrement": false,
|
|
325
503
|
"primary": false,
|
|
326
504
|
"nullable": false,
|
|
505
|
+
"unique": false,
|
|
506
|
+
"length": null,
|
|
507
|
+
"precision": null,
|
|
508
|
+
"scale": null,
|
|
509
|
+
"default": null,
|
|
510
|
+
"comment": null,
|
|
511
|
+
"enumItems": [],
|
|
327
512
|
"mappedType": "uuid"
|
|
328
513
|
},
|
|
329
514
|
"processed_at": {
|
|
@@ -333,7 +518,13 @@
|
|
|
333
518
|
"autoincrement": false,
|
|
334
519
|
"primary": false,
|
|
335
520
|
"nullable": false,
|
|
521
|
+
"unique": false,
|
|
336
522
|
"length": 6,
|
|
523
|
+
"precision": null,
|
|
524
|
+
"scale": null,
|
|
525
|
+
"default": null,
|
|
526
|
+
"comment": null,
|
|
527
|
+
"enumItems": [],
|
|
337
528
|
"mappedType": "datetime"
|
|
338
529
|
}
|
|
339
530
|
},
|
|
@@ -349,12 +540,9 @@
|
|
|
349
540
|
"tenant_id"
|
|
350
541
|
],
|
|
351
542
|
"composite": true,
|
|
352
|
-
"constraint":
|
|
543
|
+
"constraint": true,
|
|
353
544
|
"primary": false,
|
|
354
|
-
"unique":
|
|
355
|
-
"options": {
|
|
356
|
-
"unique": true
|
|
357
|
-
}
|
|
545
|
+
"unique": true
|
|
358
546
|
},
|
|
359
547
|
{
|
|
360
548
|
"keyName": "gateway_webhook_events_pkey",
|