@happyvertical/smrt-commerce 0.40.70 → 0.41.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.
- package/AGENTS.md +9 -2
- package/README.md +8 -8
- package/dist/chunks/money-WSMvSgWq.js +8 -0
- package/dist/chunks/money-WSMvSgWq.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +297 -115
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +613 -387
- package/dist/migrations/moneyMinorUnits.d.ts +86 -0
- package/dist/migrations/moneyMinorUnits.d.ts.map +1 -0
- package/dist/models/Contract.d.ts +19 -9
- package/dist/models/Contract.d.ts.map +1 -1
- package/dist/models/ContractLineItem.d.ts +21 -7
- package/dist/models/ContractLineItem.d.ts.map +1 -1
- package/dist/models/Customer.d.ts +7 -1
- package/dist/models/Customer.d.ts.map +1 -1
- package/dist/models/Invoice.d.ts +43 -37
- package/dist/models/Invoice.d.ts.map +1 -1
- package/dist/models/InvoiceLineItem.d.ts +34 -10
- package/dist/models/InvoiceLineItem.d.ts.map +1 -1
- package/dist/models/Payment.d.ts +31 -11
- package/dist/models/Payment.d.ts.map +1 -1
- package/dist/models/PaymentAllocation.d.ts +9 -2
- package/dist/models/PaymentAllocation.d.ts.map +1 -1
- package/dist/models/PaymentIntent.d.ts +7 -2
- package/dist/models/PaymentIntent.d.ts.map +1 -1
- package/dist/models/Payout.d.ts +15 -10
- package/dist/models/Payout.d.ts.map +1 -1
- package/dist/models/Vendor.d.ts +3 -1
- package/dist/models/Vendor.d.ts.map +1 -1
- package/dist/money.d.ts +27 -0
- package/dist/money.d.ts.map +1 -0
- package/dist/smrt-knowledge.json +155 -93
- package/package.json +8 -7
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-commerce",
|
|
5
|
-
"packageVersion": "0.
|
|
5
|
+
"packageVersion": "0.41.0",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-commerce:ContractCollection": {
|
|
8
8
|
"name": "contractcollection",
|
|
@@ -193,12 +193,6 @@
|
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
195
|
"indexes": [
|
|
196
|
-
{
|
|
197
|
-
"name": "contract_collections_id_idx",
|
|
198
|
-
"columns": [
|
|
199
|
-
"id"
|
|
200
|
-
]
|
|
201
|
-
},
|
|
202
196
|
{
|
|
203
197
|
"name": "contract_collections_slug_context_idx",
|
|
204
198
|
"columns": [
|
|
@@ -206,6 +200,12 @@
|
|
|
206
200
|
"context"
|
|
207
201
|
],
|
|
208
202
|
"unique": true
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "contract_collections_created_at_idx",
|
|
206
|
+
"columns": [
|
|
207
|
+
"created_at"
|
|
208
|
+
]
|
|
209
209
|
}
|
|
210
210
|
],
|
|
211
211
|
"version": "c2abc9f0"
|
|
@@ -307,12 +307,6 @@
|
|
|
307
307
|
}
|
|
308
308
|
},
|
|
309
309
|
"indexes": [
|
|
310
|
-
{
|
|
311
|
-
"name": "contract_line_item_collections_id_idx",
|
|
312
|
-
"columns": [
|
|
313
|
-
"id"
|
|
314
|
-
]
|
|
315
|
-
},
|
|
316
310
|
{
|
|
317
311
|
"name": "contract_line_item_collections_slug_context_idx",
|
|
318
312
|
"columns": [
|
|
@@ -320,6 +314,12 @@
|
|
|
320
314
|
"context"
|
|
321
315
|
],
|
|
322
316
|
"unique": true
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "contract_line_item_collections_created_at_idx",
|
|
320
|
+
"columns": [
|
|
321
|
+
"created_at"
|
|
322
|
+
]
|
|
323
323
|
}
|
|
324
324
|
],
|
|
325
325
|
"version": "410887d1"
|
|
@@ -462,12 +462,6 @@
|
|
|
462
462
|
}
|
|
463
463
|
},
|
|
464
464
|
"indexes": [
|
|
465
|
-
{
|
|
466
|
-
"name": "customer_collections_id_idx",
|
|
467
|
-
"columns": [
|
|
468
|
-
"id"
|
|
469
|
-
]
|
|
470
|
-
},
|
|
471
465
|
{
|
|
472
466
|
"name": "customer_collections_slug_context_idx",
|
|
473
467
|
"columns": [
|
|
@@ -475,6 +469,12 @@
|
|
|
475
469
|
"context"
|
|
476
470
|
],
|
|
477
471
|
"unique": true
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"name": "customer_collections_created_at_idx",
|
|
475
|
+
"columns": [
|
|
476
|
+
"created_at"
|
|
477
|
+
]
|
|
478
478
|
}
|
|
479
479
|
],
|
|
480
480
|
"version": "63593259"
|
|
@@ -653,12 +653,6 @@
|
|
|
653
653
|
}
|
|
654
654
|
},
|
|
655
655
|
"indexes": [
|
|
656
|
-
{
|
|
657
|
-
"name": "fulfillment_collections_id_idx",
|
|
658
|
-
"columns": [
|
|
659
|
-
"id"
|
|
660
|
-
]
|
|
661
|
-
},
|
|
662
656
|
{
|
|
663
657
|
"name": "fulfillment_collections_slug_context_idx",
|
|
664
658
|
"columns": [
|
|
@@ -666,6 +660,12 @@
|
|
|
666
660
|
"context"
|
|
667
661
|
],
|
|
668
662
|
"unique": true
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"name": "fulfillment_collections_created_at_idx",
|
|
666
|
+
"columns": [
|
|
667
|
+
"created_at"
|
|
668
|
+
]
|
|
669
669
|
}
|
|
670
670
|
],
|
|
671
671
|
"version": "0cb8f9e1"
|
|
@@ -795,12 +795,6 @@
|
|
|
795
795
|
}
|
|
796
796
|
},
|
|
797
797
|
"indexes": [
|
|
798
|
-
{
|
|
799
|
-
"name": "fulfillment_line_item_collections_id_idx",
|
|
800
|
-
"columns": [
|
|
801
|
-
"id"
|
|
802
|
-
]
|
|
803
|
-
},
|
|
804
798
|
{
|
|
805
799
|
"name": "fulfillment_line_item_collections_slug_context_idx",
|
|
806
800
|
"columns": [
|
|
@@ -808,6 +802,12 @@
|
|
|
808
802
|
"context"
|
|
809
803
|
],
|
|
810
804
|
"unique": true
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"name": "fulfillment_line_item_collections_created_at_idx",
|
|
808
|
+
"columns": [
|
|
809
|
+
"created_at"
|
|
810
|
+
]
|
|
811
811
|
}
|
|
812
812
|
],
|
|
813
813
|
"version": "88e7502e"
|
|
@@ -1074,12 +1074,6 @@
|
|
|
1074
1074
|
}
|
|
1075
1075
|
},
|
|
1076
1076
|
"indexes": [
|
|
1077
|
-
{
|
|
1078
|
-
"name": "invoice_collections_id_idx",
|
|
1079
|
-
"columns": [
|
|
1080
|
-
"id"
|
|
1081
|
-
]
|
|
1082
|
-
},
|
|
1083
1077
|
{
|
|
1084
1078
|
"name": "invoice_collections_slug_context_idx",
|
|
1085
1079
|
"columns": [
|
|
@@ -1087,6 +1081,12 @@
|
|
|
1087
1081
|
"context"
|
|
1088
1082
|
],
|
|
1089
1083
|
"unique": true
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
"name": "invoice_collections_created_at_idx",
|
|
1087
|
+
"columns": [
|
|
1088
|
+
"created_at"
|
|
1089
|
+
]
|
|
1090
1090
|
}
|
|
1091
1091
|
],
|
|
1092
1092
|
"version": "4877ccc3"
|
|
@@ -1305,12 +1305,6 @@
|
|
|
1305
1305
|
}
|
|
1306
1306
|
},
|
|
1307
1307
|
"indexes": [
|
|
1308
|
-
{
|
|
1309
|
-
"name": "invoice_line_item_collections_id_idx",
|
|
1310
|
-
"columns": [
|
|
1311
|
-
"id"
|
|
1312
|
-
]
|
|
1313
|
-
},
|
|
1314
1308
|
{
|
|
1315
1309
|
"name": "invoice_line_item_collections_slug_context_idx",
|
|
1316
1310
|
"columns": [
|
|
@@ -1318,6 +1312,12 @@
|
|
|
1318
1312
|
"context"
|
|
1319
1313
|
],
|
|
1320
1314
|
"unique": true
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"name": "invoice_line_item_collections_created_at_idx",
|
|
1318
|
+
"columns": [
|
|
1319
|
+
"created_at"
|
|
1320
|
+
]
|
|
1321
1321
|
}
|
|
1322
1322
|
],
|
|
1323
1323
|
"version": "27337dcf"
|
|
@@ -1532,12 +1532,6 @@
|
|
|
1532
1532
|
}
|
|
1533
1533
|
},
|
|
1534
1534
|
"indexes": [
|
|
1535
|
-
{
|
|
1536
|
-
"name": "payment_allocation_collections_id_idx",
|
|
1537
|
-
"columns": [
|
|
1538
|
-
"id"
|
|
1539
|
-
]
|
|
1540
|
-
},
|
|
1541
1535
|
{
|
|
1542
1536
|
"name": "payment_allocation_collections_slug_context_idx",
|
|
1543
1537
|
"columns": [
|
|
@@ -1545,6 +1539,12 @@
|
|
|
1545
1539
|
"context"
|
|
1546
1540
|
],
|
|
1547
1541
|
"unique": true
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
"name": "payment_allocation_collections_created_at_idx",
|
|
1545
|
+
"columns": [
|
|
1546
|
+
"created_at"
|
|
1547
|
+
]
|
|
1548
1548
|
}
|
|
1549
1549
|
],
|
|
1550
1550
|
"version": "0d07c4d3"
|
|
@@ -1765,12 +1765,6 @@
|
|
|
1765
1765
|
}
|
|
1766
1766
|
},
|
|
1767
1767
|
"indexes": [
|
|
1768
|
-
{
|
|
1769
|
-
"name": "payment_collections_id_idx",
|
|
1770
|
-
"columns": [
|
|
1771
|
-
"id"
|
|
1772
|
-
]
|
|
1773
|
-
},
|
|
1774
1768
|
{
|
|
1775
1769
|
"name": "payment_collections_slug_context_idx",
|
|
1776
1770
|
"columns": [
|
|
@@ -1778,6 +1772,12 @@
|
|
|
1778
1772
|
"context"
|
|
1779
1773
|
],
|
|
1780
1774
|
"unique": true
|
|
1775
|
+
},
|
|
1776
|
+
{
|
|
1777
|
+
"name": "payment_collections_created_at_idx",
|
|
1778
|
+
"columns": [
|
|
1779
|
+
"created_at"
|
|
1780
|
+
]
|
|
1781
1781
|
}
|
|
1782
1782
|
],
|
|
1783
1783
|
"version": "bf759c9b"
|
|
@@ -1940,12 +1940,6 @@
|
|
|
1940
1940
|
}
|
|
1941
1941
|
},
|
|
1942
1942
|
"indexes": [
|
|
1943
|
-
{
|
|
1944
|
-
"name": "payment_instrument_collections_id_idx",
|
|
1945
|
-
"columns": [
|
|
1946
|
-
"id"
|
|
1947
|
-
]
|
|
1948
|
-
},
|
|
1949
1943
|
{
|
|
1950
1944
|
"name": "payment_instrument_collections_slug_context_idx",
|
|
1951
1945
|
"columns": [
|
|
@@ -1953,6 +1947,12 @@
|
|
|
1953
1947
|
"context"
|
|
1954
1948
|
],
|
|
1955
1949
|
"unique": true
|
|
1950
|
+
},
|
|
1951
|
+
{
|
|
1952
|
+
"name": "payment_instrument_collections_created_at_idx",
|
|
1953
|
+
"columns": [
|
|
1954
|
+
"created_at"
|
|
1955
|
+
]
|
|
1956
1956
|
}
|
|
1957
1957
|
],
|
|
1958
1958
|
"version": "dd2ca72c"
|
|
@@ -2126,12 +2126,6 @@
|
|
|
2126
2126
|
}
|
|
2127
2127
|
},
|
|
2128
2128
|
"indexes": [
|
|
2129
|
-
{
|
|
2130
|
-
"name": "payment_intent_collections_id_idx",
|
|
2131
|
-
"columns": [
|
|
2132
|
-
"id"
|
|
2133
|
-
]
|
|
2134
|
-
},
|
|
2135
2129
|
{
|
|
2136
2130
|
"name": "payment_intent_collections_slug_context_idx",
|
|
2137
2131
|
"columns": [
|
|
@@ -2139,6 +2133,12 @@
|
|
|
2139
2133
|
"context"
|
|
2140
2134
|
],
|
|
2141
2135
|
"unique": true
|
|
2136
|
+
},
|
|
2137
|
+
{
|
|
2138
|
+
"name": "payment_intent_collections_created_at_idx",
|
|
2139
|
+
"columns": [
|
|
2140
|
+
"created_at"
|
|
2141
|
+
]
|
|
2142
2142
|
}
|
|
2143
2143
|
],
|
|
2144
2144
|
"version": "f79d1a8f"
|
|
@@ -2326,12 +2326,6 @@
|
|
|
2326
2326
|
}
|
|
2327
2327
|
},
|
|
2328
2328
|
"indexes": [
|
|
2329
|
-
{
|
|
2330
|
-
"name": "payout_collections_id_idx",
|
|
2331
|
-
"columns": [
|
|
2332
|
-
"id"
|
|
2333
|
-
]
|
|
2334
|
-
},
|
|
2335
2329
|
{
|
|
2336
2330
|
"name": "payout_collections_slug_context_idx",
|
|
2337
2331
|
"columns": [
|
|
@@ -2339,6 +2333,12 @@
|
|
|
2339
2333
|
"context"
|
|
2340
2334
|
],
|
|
2341
2335
|
"unique": true
|
|
2336
|
+
},
|
|
2337
|
+
{
|
|
2338
|
+
"name": "payout_collections_created_at_idx",
|
|
2339
|
+
"columns": [
|
|
2340
|
+
"created_at"
|
|
2341
|
+
]
|
|
2342
2342
|
}
|
|
2343
2343
|
],
|
|
2344
2344
|
"version": "7dc3bcc1"
|
|
@@ -2481,12 +2481,6 @@
|
|
|
2481
2481
|
}
|
|
2482
2482
|
},
|
|
2483
2483
|
"indexes": [
|
|
2484
|
-
{
|
|
2485
|
-
"name": "vendor_collections_id_idx",
|
|
2486
|
-
"columns": [
|
|
2487
|
-
"id"
|
|
2488
|
-
]
|
|
2489
|
-
},
|
|
2490
2484
|
{
|
|
2491
2485
|
"name": "vendor_collections_slug_context_idx",
|
|
2492
2486
|
"columns": [
|
|
@@ -2494,6 +2488,12 @@
|
|
|
2494
2488
|
"context"
|
|
2495
2489
|
],
|
|
2496
2490
|
"unique": true
|
|
2491
|
+
},
|
|
2492
|
+
{
|
|
2493
|
+
"name": "vendor_collections_created_at_idx",
|
|
2494
|
+
"columns": [
|
|
2495
|
+
"created_at"
|
|
2496
|
+
]
|
|
2497
2497
|
}
|
|
2498
2498
|
],
|
|
2499
2499
|
"version": "ffdcddab"
|
|
@@ -2552,17 +2552,17 @@
|
|
|
2552
2552
|
"related": "Vendor"
|
|
2553
2553
|
},
|
|
2554
2554
|
"subtotal": {
|
|
2555
|
-
"type": "
|
|
2555
|
+
"type": "integer",
|
|
2556
2556
|
"required": false,
|
|
2557
2557
|
"default": 0
|
|
2558
2558
|
},
|
|
2559
2559
|
"taxAmount": {
|
|
2560
|
-
"type": "
|
|
2560
|
+
"type": "integer",
|
|
2561
2561
|
"required": false,
|
|
2562
2562
|
"default": 0
|
|
2563
2563
|
},
|
|
2564
2564
|
"totalAmount": {
|
|
2565
|
-
"type": "
|
|
2565
|
+
"type": "integer",
|
|
2566
2566
|
"required": false,
|
|
2567
2567
|
"default": 0
|
|
2568
2568
|
},
|
|
@@ -3162,14 +3162,20 @@
|
|
|
3162
3162
|
"cli": true,
|
|
3163
3163
|
"tenantScoped": {
|
|
3164
3164
|
"mode": "optional"
|
|
3165
|
-
}
|
|
3165
|
+
},
|
|
3166
|
+
"conflictColumns": [
|
|
3167
|
+
"tenant_id",
|
|
3168
|
+
"slug",
|
|
3169
|
+
"context",
|
|
3170
|
+
"_meta_type"
|
|
3171
|
+
]
|
|
3166
3172
|
},
|
|
3167
3173
|
"extends": "SmrtObject",
|
|
3168
3174
|
"exportName": "Contract",
|
|
3169
3175
|
"collectionExportName": "ContractCollection",
|
|
3170
3176
|
"schema": {
|
|
3171
3177
|
"tableName": "contracts",
|
|
3172
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\"
|
|
3178
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\" INTEGER DEFAULT 0,\n \"tax_amount\" INTEGER DEFAULT 0,\n \"total_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"issue_date\" TIMESTAMP,\n \"due_date\" TIMESTAMP,\n \"expiry_date\" TIMESTAMP,\n \"reference\" TEXT DEFAULT '',\n \"notes\" TEXT DEFAULT '',\n \"terms\" TEXT DEFAULT '',\n \"channel_id\" TEXT DEFAULT ''\n);",
|
|
3173
3179
|
"columns": {
|
|
3174
3180
|
"id": {
|
|
3175
3181
|
"type": "UUID",
|
|
@@ -3228,17 +3234,17 @@
|
|
|
3228
3234
|
"notNull": false
|
|
3229
3235
|
},
|
|
3230
3236
|
"subtotal": {
|
|
3231
|
-
"type": "
|
|
3237
|
+
"type": "INTEGER",
|
|
3232
3238
|
"notNull": false,
|
|
3233
3239
|
"default": 0
|
|
3234
3240
|
},
|
|
3235
3241
|
"tax_amount": {
|
|
3236
|
-
"type": "
|
|
3242
|
+
"type": "INTEGER",
|
|
3237
3243
|
"notNull": false,
|
|
3238
3244
|
"default": 0
|
|
3239
3245
|
},
|
|
3240
3246
|
"total_amount": {
|
|
3241
|
-
"type": "
|
|
3247
|
+
"type": "INTEGER",
|
|
3242
3248
|
"notNull": false,
|
|
3243
3249
|
"default": 0
|
|
3244
3250
|
},
|
|
@@ -3281,15 +3287,10 @@
|
|
|
3281
3287
|
}
|
|
3282
3288
|
},
|
|
3283
3289
|
"indexes": [
|
|
3284
|
-
{
|
|
3285
|
-
"name": "contracts_id_idx",
|
|
3286
|
-
"columns": [
|
|
3287
|
-
"id"
|
|
3288
|
-
]
|
|
3289
|
-
},
|
|
3290
3290
|
{
|
|
3291
3291
|
"name": "contracts_slug_context_meta_type_idx",
|
|
3292
3292
|
"columns": [
|
|
3293
|
+
"tenant_id",
|
|
3293
3294
|
"slug",
|
|
3294
3295
|
"context",
|
|
3295
3296
|
"_meta_type"
|
|
@@ -3303,13 +3304,26 @@
|
|
|
3303
3304
|
]
|
|
3304
3305
|
},
|
|
3305
3306
|
{
|
|
3306
|
-
"name": "
|
|
3307
|
+
"name": "contracts_tenant_id_created_at_idx",
|
|
3308
|
+
"columns": [
|
|
3309
|
+
"tenant_id",
|
|
3310
|
+
"created_at"
|
|
3311
|
+
]
|
|
3312
|
+
},
|
|
3313
|
+
{
|
|
3314
|
+
"name": "contracts_customer_id_idx",
|
|
3315
|
+
"columns": [
|
|
3316
|
+
"customer_id"
|
|
3317
|
+
]
|
|
3318
|
+
},
|
|
3319
|
+
{
|
|
3320
|
+
"name": "contracts_vendor_id_idx",
|
|
3307
3321
|
"columns": [
|
|
3308
|
-
"
|
|
3322
|
+
"vendor_id"
|
|
3309
3323
|
]
|
|
3310
3324
|
}
|
|
3311
3325
|
],
|
|
3312
|
-
"version": "
|
|
3326
|
+
"version": "db450616"
|
|
3313
3327
|
}
|
|
3314
3328
|
},
|
|
3315
3329
|
"@happyvertical/smrt-commerce:Estimate": {
|
|
@@ -3365,17 +3379,17 @@
|
|
|
3365
3379
|
"related": "Vendor"
|
|
3366
3380
|
},
|
|
3367
3381
|
"subtotal": {
|
|
3368
|
-
"type": "
|
|
3382
|
+
"type": "integer",
|
|
3369
3383
|
"required": false,
|
|
3370
3384
|
"default": 0
|
|
3371
3385
|
},
|
|
3372
3386
|
"taxAmount": {
|
|
3373
|
-
"type": "
|
|
3387
|
+
"type": "integer",
|
|
3374
3388
|
"required": false,
|
|
3375
3389
|
"default": 0
|
|
3376
3390
|
},
|
|
3377
3391
|
"totalAmount": {
|
|
3378
|
-
"type": "
|
|
3392
|
+
"type": "integer",
|
|
3379
3393
|
"required": false,
|
|
3380
3394
|
"default": 0
|
|
3381
3395
|
},
|
|
@@ -3968,7 +3982,7 @@
|
|
|
3968
3982
|
"collectionExportName": "EstimateCollection",
|
|
3969
3983
|
"schema": {
|
|
3970
3984
|
"tableName": "contracts",
|
|
3971
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\"
|
|
3985
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\" INTEGER DEFAULT 0,\n \"tax_amount\" INTEGER DEFAULT 0,\n \"total_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"issue_date\" TIMESTAMP,\n \"due_date\" TIMESTAMP,\n \"expiry_date\" TIMESTAMP,\n \"reference\" TEXT DEFAULT '',\n \"notes\" TEXT DEFAULT '',\n \"terms\" TEXT DEFAULT '',\n \"channel_id\" TEXT DEFAULT ''\n);",
|
|
3972
3986
|
"columns": {
|
|
3973
3987
|
"id": {
|
|
3974
3988
|
"type": "UUID",
|
|
@@ -4027,17 +4041,17 @@
|
|
|
4027
4041
|
"notNull": false
|
|
4028
4042
|
},
|
|
4029
4043
|
"subtotal": {
|
|
4030
|
-
"type": "
|
|
4044
|
+
"type": "INTEGER",
|
|
4031
4045
|
"notNull": false,
|
|
4032
4046
|
"default": 0
|
|
4033
4047
|
},
|
|
4034
4048
|
"tax_amount": {
|
|
4035
|
-
"type": "
|
|
4049
|
+
"type": "INTEGER",
|
|
4036
4050
|
"notNull": false,
|
|
4037
4051
|
"default": 0
|
|
4038
4052
|
},
|
|
4039
4053
|
"total_amount": {
|
|
4040
|
-
"type": "
|
|
4054
|
+
"type": "INTEGER",
|
|
4041
4055
|
"notNull": false,
|
|
4042
4056
|
"default": 0
|
|
4043
4057
|
},
|
|
@@ -4080,15 +4094,10 @@
|
|
|
4080
4094
|
}
|
|
4081
4095
|
},
|
|
4082
4096
|
"indexes": [
|
|
4083
|
-
{
|
|
4084
|
-
"name": "contracts_id_idx",
|
|
4085
|
-
"columns": [
|
|
4086
|
-
"id"
|
|
4087
|
-
]
|
|
4088
|
-
},
|
|
4089
4097
|
{
|
|
4090
4098
|
"name": "contracts_slug_context_meta_type_idx",
|
|
4091
4099
|
"columns": [
|
|
4100
|
+
"tenant_id",
|
|
4092
4101
|
"slug",
|
|
4093
4102
|
"context",
|
|
4094
4103
|
"_meta_type"
|
|
@@ -4102,13 +4111,26 @@
|
|
|
4102
4111
|
]
|
|
4103
4112
|
},
|
|
4104
4113
|
{
|
|
4105
|
-
"name": "
|
|
4114
|
+
"name": "contracts_tenant_id_created_at_idx",
|
|
4115
|
+
"columns": [
|
|
4116
|
+
"tenant_id",
|
|
4117
|
+
"created_at"
|
|
4118
|
+
]
|
|
4119
|
+
},
|
|
4120
|
+
{
|
|
4121
|
+
"name": "contracts_customer_id_idx",
|
|
4122
|
+
"columns": [
|
|
4123
|
+
"customer_id"
|
|
4124
|
+
]
|
|
4125
|
+
},
|
|
4126
|
+
{
|
|
4127
|
+
"name": "contracts_vendor_id_idx",
|
|
4106
4128
|
"columns": [
|
|
4107
|
-
"
|
|
4129
|
+
"vendor_id"
|
|
4108
4130
|
]
|
|
4109
4131
|
}
|
|
4110
4132
|
],
|
|
4111
|
-
"version": "
|
|
4133
|
+
"version": "db450616"
|
|
4112
4134
|
}
|
|
4113
4135
|
},
|
|
4114
4136
|
"@happyvertical/smrt-commerce:Order": {
|
|
@@ -4164,17 +4186,17 @@
|
|
|
4164
4186
|
"related": "Vendor"
|
|
4165
4187
|
},
|
|
4166
4188
|
"subtotal": {
|
|
4167
|
-
"type": "
|
|
4189
|
+
"type": "integer",
|
|
4168
4190
|
"required": false,
|
|
4169
4191
|
"default": 0
|
|
4170
4192
|
},
|
|
4171
4193
|
"taxAmount": {
|
|
4172
|
-
"type": "
|
|
4194
|
+
"type": "integer",
|
|
4173
4195
|
"required": false,
|
|
4174
4196
|
"default": 0
|
|
4175
4197
|
},
|
|
4176
4198
|
"totalAmount": {
|
|
4177
|
-
"type": "
|
|
4199
|
+
"type": "integer",
|
|
4178
4200
|
"required": false,
|
|
4179
4201
|
"default": 0
|
|
4180
4202
|
},
|
|
@@ -4767,7 +4789,7 @@
|
|
|
4767
4789
|
"collectionExportName": "OrderCollection",
|
|
4768
4790
|
"schema": {
|
|
4769
4791
|
"tableName": "contracts",
|
|
4770
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\"
|
|
4792
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\" INTEGER DEFAULT 0,\n \"tax_amount\" INTEGER DEFAULT 0,\n \"total_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"issue_date\" TIMESTAMP,\n \"due_date\" TIMESTAMP,\n \"expiry_date\" TIMESTAMP,\n \"reference\" TEXT DEFAULT '',\n \"notes\" TEXT DEFAULT '',\n \"terms\" TEXT DEFAULT '',\n \"channel_id\" TEXT DEFAULT ''\n);",
|
|
4771
4793
|
"columns": {
|
|
4772
4794
|
"id": {
|
|
4773
4795
|
"type": "UUID",
|
|
@@ -4826,17 +4848,17 @@
|
|
|
4826
4848
|
"notNull": false
|
|
4827
4849
|
},
|
|
4828
4850
|
"subtotal": {
|
|
4829
|
-
"type": "
|
|
4851
|
+
"type": "INTEGER",
|
|
4830
4852
|
"notNull": false,
|
|
4831
4853
|
"default": 0
|
|
4832
4854
|
},
|
|
4833
4855
|
"tax_amount": {
|
|
4834
|
-
"type": "
|
|
4856
|
+
"type": "INTEGER",
|
|
4835
4857
|
"notNull": false,
|
|
4836
4858
|
"default": 0
|
|
4837
4859
|
},
|
|
4838
4860
|
"total_amount": {
|
|
4839
|
-
"type": "
|
|
4861
|
+
"type": "INTEGER",
|
|
4840
4862
|
"notNull": false,
|
|
4841
4863
|
"default": 0
|
|
4842
4864
|
},
|
|
@@ -4879,15 +4901,10 @@
|
|
|
4879
4901
|
}
|
|
4880
4902
|
},
|
|
4881
4903
|
"indexes": [
|
|
4882
|
-
{
|
|
4883
|
-
"name": "contracts_id_idx",
|
|
4884
|
-
"columns": [
|
|
4885
|
-
"id"
|
|
4886
|
-
]
|
|
4887
|
-
},
|
|
4888
4904
|
{
|
|
4889
4905
|
"name": "contracts_slug_context_meta_type_idx",
|
|
4890
4906
|
"columns": [
|
|
4907
|
+
"tenant_id",
|
|
4891
4908
|
"slug",
|
|
4892
4909
|
"context",
|
|
4893
4910
|
"_meta_type"
|
|
@@ -4901,13 +4918,26 @@
|
|
|
4901
4918
|
]
|
|
4902
4919
|
},
|
|
4903
4920
|
{
|
|
4904
|
-
"name": "
|
|
4921
|
+
"name": "contracts_tenant_id_created_at_idx",
|
|
4922
|
+
"columns": [
|
|
4923
|
+
"tenant_id",
|
|
4924
|
+
"created_at"
|
|
4925
|
+
]
|
|
4926
|
+
},
|
|
4927
|
+
{
|
|
4928
|
+
"name": "contracts_customer_id_idx",
|
|
4929
|
+
"columns": [
|
|
4930
|
+
"customer_id"
|
|
4931
|
+
]
|
|
4932
|
+
},
|
|
4933
|
+
{
|
|
4934
|
+
"name": "contracts_vendor_id_idx",
|
|
4905
4935
|
"columns": [
|
|
4906
|
-
"
|
|
4936
|
+
"vendor_id"
|
|
4907
4937
|
]
|
|
4908
4938
|
}
|
|
4909
4939
|
],
|
|
4910
|
-
"version": "
|
|
4940
|
+
"version": "db450616"
|
|
4911
4941
|
}
|
|
4912
4942
|
},
|
|
4913
4943
|
"@happyvertical/smrt-commerce:Lease": {
|
|
@@ -4963,17 +4993,17 @@
|
|
|
4963
4993
|
"related": "Vendor"
|
|
4964
4994
|
},
|
|
4965
4995
|
"subtotal": {
|
|
4966
|
-
"type": "
|
|
4996
|
+
"type": "integer",
|
|
4967
4997
|
"required": false,
|
|
4968
4998
|
"default": 0
|
|
4969
4999
|
},
|
|
4970
5000
|
"taxAmount": {
|
|
4971
|
-
"type": "
|
|
5001
|
+
"type": "integer",
|
|
4972
5002
|
"required": false,
|
|
4973
5003
|
"default": 0
|
|
4974
5004
|
},
|
|
4975
5005
|
"totalAmount": {
|
|
4976
|
-
"type": "
|
|
5006
|
+
"type": "integer",
|
|
4977
5007
|
"required": false,
|
|
4978
5008
|
"default": 0
|
|
4979
5009
|
},
|
|
@@ -5566,7 +5596,7 @@
|
|
|
5566
5596
|
"collectionExportName": "LeaseCollection",
|
|
5567
5597
|
"schema": {
|
|
5568
5598
|
"tableName": "contracts",
|
|
5569
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\"
|
|
5599
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\" INTEGER DEFAULT 0,\n \"tax_amount\" INTEGER DEFAULT 0,\n \"total_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"issue_date\" TIMESTAMP,\n \"due_date\" TIMESTAMP,\n \"expiry_date\" TIMESTAMP,\n \"reference\" TEXT DEFAULT '',\n \"notes\" TEXT DEFAULT '',\n \"terms\" TEXT DEFAULT '',\n \"channel_id\" TEXT DEFAULT ''\n);",
|
|
5570
5600
|
"columns": {
|
|
5571
5601
|
"id": {
|
|
5572
5602
|
"type": "UUID",
|
|
@@ -5625,17 +5655,17 @@
|
|
|
5625
5655
|
"notNull": false
|
|
5626
5656
|
},
|
|
5627
5657
|
"subtotal": {
|
|
5628
|
-
"type": "
|
|
5658
|
+
"type": "INTEGER",
|
|
5629
5659
|
"notNull": false,
|
|
5630
5660
|
"default": 0
|
|
5631
5661
|
},
|
|
5632
5662
|
"tax_amount": {
|
|
5633
|
-
"type": "
|
|
5663
|
+
"type": "INTEGER",
|
|
5634
5664
|
"notNull": false,
|
|
5635
5665
|
"default": 0
|
|
5636
5666
|
},
|
|
5637
5667
|
"total_amount": {
|
|
5638
|
-
"type": "
|
|
5668
|
+
"type": "INTEGER",
|
|
5639
5669
|
"notNull": false,
|
|
5640
5670
|
"default": 0
|
|
5641
5671
|
},
|
|
@@ -5678,15 +5708,10 @@
|
|
|
5678
5708
|
}
|
|
5679
5709
|
},
|
|
5680
5710
|
"indexes": [
|
|
5681
|
-
{
|
|
5682
|
-
"name": "contracts_id_idx",
|
|
5683
|
-
"columns": [
|
|
5684
|
-
"id"
|
|
5685
|
-
]
|
|
5686
|
-
},
|
|
5687
5711
|
{
|
|
5688
5712
|
"name": "contracts_slug_context_meta_type_idx",
|
|
5689
5713
|
"columns": [
|
|
5714
|
+
"tenant_id",
|
|
5690
5715
|
"slug",
|
|
5691
5716
|
"context",
|
|
5692
5717
|
"_meta_type"
|
|
@@ -5700,13 +5725,26 @@
|
|
|
5700
5725
|
]
|
|
5701
5726
|
},
|
|
5702
5727
|
{
|
|
5703
|
-
"name": "
|
|
5728
|
+
"name": "contracts_tenant_id_created_at_idx",
|
|
5729
|
+
"columns": [
|
|
5730
|
+
"tenant_id",
|
|
5731
|
+
"created_at"
|
|
5732
|
+
]
|
|
5733
|
+
},
|
|
5734
|
+
{
|
|
5735
|
+
"name": "contracts_customer_id_idx",
|
|
5704
5736
|
"columns": [
|
|
5705
|
-
"
|
|
5737
|
+
"customer_id"
|
|
5738
|
+
]
|
|
5739
|
+
},
|
|
5740
|
+
{
|
|
5741
|
+
"name": "contracts_vendor_id_idx",
|
|
5742
|
+
"columns": [
|
|
5743
|
+
"vendor_id"
|
|
5706
5744
|
]
|
|
5707
5745
|
}
|
|
5708
5746
|
],
|
|
5709
|
-
"version": "
|
|
5747
|
+
"version": "db450616"
|
|
5710
5748
|
}
|
|
5711
5749
|
},
|
|
5712
5750
|
"@happyvertical/smrt-commerce:Agreement": {
|
|
@@ -5762,17 +5800,17 @@
|
|
|
5762
5800
|
"related": "Vendor"
|
|
5763
5801
|
},
|
|
5764
5802
|
"subtotal": {
|
|
5765
|
-
"type": "
|
|
5803
|
+
"type": "integer",
|
|
5766
5804
|
"required": false,
|
|
5767
5805
|
"default": 0
|
|
5768
5806
|
},
|
|
5769
5807
|
"taxAmount": {
|
|
5770
|
-
"type": "
|
|
5808
|
+
"type": "integer",
|
|
5771
5809
|
"required": false,
|
|
5772
5810
|
"default": 0
|
|
5773
5811
|
},
|
|
5774
5812
|
"totalAmount": {
|
|
5775
|
-
"type": "
|
|
5813
|
+
"type": "integer",
|
|
5776
5814
|
"required": false,
|
|
5777
5815
|
"default": 0
|
|
5778
5816
|
},
|
|
@@ -6365,7 +6403,7 @@
|
|
|
6365
6403
|
"collectionExportName": "AgreementCollection",
|
|
6366
6404
|
"schema": {
|
|
6367
6405
|
"tableName": "contracts",
|
|
6368
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\"
|
|
6406
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\" INTEGER DEFAULT 0,\n \"tax_amount\" INTEGER DEFAULT 0,\n \"total_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"issue_date\" TIMESTAMP,\n \"due_date\" TIMESTAMP,\n \"expiry_date\" TIMESTAMP,\n \"reference\" TEXT DEFAULT '',\n \"notes\" TEXT DEFAULT '',\n \"terms\" TEXT DEFAULT '',\n \"channel_id\" TEXT DEFAULT ''\n);",
|
|
6369
6407
|
"columns": {
|
|
6370
6408
|
"id": {
|
|
6371
6409
|
"type": "UUID",
|
|
@@ -6424,17 +6462,17 @@
|
|
|
6424
6462
|
"notNull": false
|
|
6425
6463
|
},
|
|
6426
6464
|
"subtotal": {
|
|
6427
|
-
"type": "
|
|
6465
|
+
"type": "INTEGER",
|
|
6428
6466
|
"notNull": false,
|
|
6429
6467
|
"default": 0
|
|
6430
6468
|
},
|
|
6431
6469
|
"tax_amount": {
|
|
6432
|
-
"type": "
|
|
6470
|
+
"type": "INTEGER",
|
|
6433
6471
|
"notNull": false,
|
|
6434
6472
|
"default": 0
|
|
6435
6473
|
},
|
|
6436
6474
|
"total_amount": {
|
|
6437
|
-
"type": "
|
|
6475
|
+
"type": "INTEGER",
|
|
6438
6476
|
"notNull": false,
|
|
6439
6477
|
"default": 0
|
|
6440
6478
|
},
|
|
@@ -6477,15 +6515,10 @@
|
|
|
6477
6515
|
}
|
|
6478
6516
|
},
|
|
6479
6517
|
"indexes": [
|
|
6480
|
-
{
|
|
6481
|
-
"name": "contracts_id_idx",
|
|
6482
|
-
"columns": [
|
|
6483
|
-
"id"
|
|
6484
|
-
]
|
|
6485
|
-
},
|
|
6486
6518
|
{
|
|
6487
6519
|
"name": "contracts_slug_context_meta_type_idx",
|
|
6488
6520
|
"columns": [
|
|
6521
|
+
"tenant_id",
|
|
6489
6522
|
"slug",
|
|
6490
6523
|
"context",
|
|
6491
6524
|
"_meta_type"
|
|
@@ -6499,13 +6532,26 @@
|
|
|
6499
6532
|
]
|
|
6500
6533
|
},
|
|
6501
6534
|
{
|
|
6502
|
-
"name": "
|
|
6535
|
+
"name": "contracts_tenant_id_created_at_idx",
|
|
6536
|
+
"columns": [
|
|
6537
|
+
"tenant_id",
|
|
6538
|
+
"created_at"
|
|
6539
|
+
]
|
|
6540
|
+
},
|
|
6541
|
+
{
|
|
6542
|
+
"name": "contracts_customer_id_idx",
|
|
6543
|
+
"columns": [
|
|
6544
|
+
"customer_id"
|
|
6545
|
+
]
|
|
6546
|
+
},
|
|
6547
|
+
{
|
|
6548
|
+
"name": "contracts_vendor_id_idx",
|
|
6503
6549
|
"columns": [
|
|
6504
|
-
"
|
|
6550
|
+
"vendor_id"
|
|
6505
6551
|
]
|
|
6506
6552
|
}
|
|
6507
6553
|
],
|
|
6508
|
-
"version": "
|
|
6554
|
+
"version": "db450616"
|
|
6509
6555
|
}
|
|
6510
6556
|
},
|
|
6511
6557
|
"@happyvertical/smrt-commerce:PurchaseOrder": {
|
|
@@ -6561,17 +6607,17 @@
|
|
|
6561
6607
|
"related": "Vendor"
|
|
6562
6608
|
},
|
|
6563
6609
|
"subtotal": {
|
|
6564
|
-
"type": "
|
|
6610
|
+
"type": "integer",
|
|
6565
6611
|
"required": false,
|
|
6566
6612
|
"default": 0
|
|
6567
6613
|
},
|
|
6568
6614
|
"taxAmount": {
|
|
6569
|
-
"type": "
|
|
6615
|
+
"type": "integer",
|
|
6570
6616
|
"required": false,
|
|
6571
6617
|
"default": 0
|
|
6572
6618
|
},
|
|
6573
6619
|
"totalAmount": {
|
|
6574
|
-
"type": "
|
|
6620
|
+
"type": "integer",
|
|
6575
6621
|
"required": false,
|
|
6576
6622
|
"default": 0
|
|
6577
6623
|
},
|
|
@@ -7164,7 +7210,7 @@
|
|
|
7164
7210
|
"collectionExportName": "PurchaseOrderCollection",
|
|
7165
7211
|
"schema": {
|
|
7166
7212
|
"tableName": "contracts",
|
|
7167
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\"
|
|
7213
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\" INTEGER DEFAULT 0,\n \"tax_amount\" INTEGER DEFAULT 0,\n \"total_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"issue_date\" TIMESTAMP,\n \"due_date\" TIMESTAMP,\n \"expiry_date\" TIMESTAMP,\n \"reference\" TEXT DEFAULT '',\n \"notes\" TEXT DEFAULT '',\n \"terms\" TEXT DEFAULT '',\n \"channel_id\" TEXT DEFAULT ''\n);",
|
|
7168
7214
|
"columns": {
|
|
7169
7215
|
"id": {
|
|
7170
7216
|
"type": "UUID",
|
|
@@ -7223,17 +7269,17 @@
|
|
|
7223
7269
|
"notNull": false
|
|
7224
7270
|
},
|
|
7225
7271
|
"subtotal": {
|
|
7226
|
-
"type": "
|
|
7272
|
+
"type": "INTEGER",
|
|
7227
7273
|
"notNull": false,
|
|
7228
7274
|
"default": 0
|
|
7229
7275
|
},
|
|
7230
7276
|
"tax_amount": {
|
|
7231
|
-
"type": "
|
|
7277
|
+
"type": "INTEGER",
|
|
7232
7278
|
"notNull": false,
|
|
7233
7279
|
"default": 0
|
|
7234
7280
|
},
|
|
7235
7281
|
"total_amount": {
|
|
7236
|
-
"type": "
|
|
7282
|
+
"type": "INTEGER",
|
|
7237
7283
|
"notNull": false,
|
|
7238
7284
|
"default": 0
|
|
7239
7285
|
},
|
|
@@ -7276,15 +7322,10 @@
|
|
|
7276
7322
|
}
|
|
7277
7323
|
},
|
|
7278
7324
|
"indexes": [
|
|
7279
|
-
{
|
|
7280
|
-
"name": "contracts_id_idx",
|
|
7281
|
-
"columns": [
|
|
7282
|
-
"id"
|
|
7283
|
-
]
|
|
7284
|
-
},
|
|
7285
7325
|
{
|
|
7286
7326
|
"name": "contracts_slug_context_meta_type_idx",
|
|
7287
7327
|
"columns": [
|
|
7328
|
+
"tenant_id",
|
|
7288
7329
|
"slug",
|
|
7289
7330
|
"context",
|
|
7290
7331
|
"_meta_type"
|
|
@@ -7298,13 +7339,26 @@
|
|
|
7298
7339
|
]
|
|
7299
7340
|
},
|
|
7300
7341
|
{
|
|
7301
|
-
"name": "
|
|
7342
|
+
"name": "contracts_tenant_id_created_at_idx",
|
|
7302
7343
|
"columns": [
|
|
7303
|
-
"tenant_id"
|
|
7344
|
+
"tenant_id",
|
|
7345
|
+
"created_at"
|
|
7346
|
+
]
|
|
7347
|
+
},
|
|
7348
|
+
{
|
|
7349
|
+
"name": "contracts_customer_id_idx",
|
|
7350
|
+
"columns": [
|
|
7351
|
+
"customer_id"
|
|
7352
|
+
]
|
|
7353
|
+
},
|
|
7354
|
+
{
|
|
7355
|
+
"name": "contracts_vendor_id_idx",
|
|
7356
|
+
"columns": [
|
|
7357
|
+
"vendor_id"
|
|
7304
7358
|
]
|
|
7305
7359
|
}
|
|
7306
7360
|
],
|
|
7307
|
-
"version": "
|
|
7361
|
+
"version": "db450616"
|
|
7308
7362
|
}
|
|
7309
7363
|
},
|
|
7310
7364
|
"@happyvertical/smrt-commerce:WholesaleOrder": {
|
|
@@ -7360,17 +7414,17 @@
|
|
|
7360
7414
|
"related": "Vendor"
|
|
7361
7415
|
},
|
|
7362
7416
|
"subtotal": {
|
|
7363
|
-
"type": "
|
|
7417
|
+
"type": "integer",
|
|
7364
7418
|
"required": false,
|
|
7365
7419
|
"default": 0
|
|
7366
7420
|
},
|
|
7367
7421
|
"taxAmount": {
|
|
7368
|
-
"type": "
|
|
7422
|
+
"type": "integer",
|
|
7369
7423
|
"required": false,
|
|
7370
7424
|
"default": 0
|
|
7371
7425
|
},
|
|
7372
7426
|
"totalAmount": {
|
|
7373
|
-
"type": "
|
|
7427
|
+
"type": "integer",
|
|
7374
7428
|
"required": false,
|
|
7375
7429
|
"default": 0
|
|
7376
7430
|
},
|
|
@@ -7963,7 +8017,7 @@
|
|
|
7963
8017
|
"collectionExportName": "WholesaleOrderCollection",
|
|
7964
8018
|
"schema": {
|
|
7965
8019
|
"tableName": "contracts",
|
|
7966
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\"
|
|
8020
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\" INTEGER DEFAULT 0,\n \"tax_amount\" INTEGER DEFAULT 0,\n \"total_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"issue_date\" TIMESTAMP,\n \"due_date\" TIMESTAMP,\n \"expiry_date\" TIMESTAMP,\n \"reference\" TEXT DEFAULT '',\n \"notes\" TEXT DEFAULT '',\n \"terms\" TEXT DEFAULT '',\n \"channel_id\" TEXT DEFAULT ''\n);",
|
|
7967
8021
|
"columns": {
|
|
7968
8022
|
"id": {
|
|
7969
8023
|
"type": "UUID",
|
|
@@ -8022,17 +8076,17 @@
|
|
|
8022
8076
|
"notNull": false
|
|
8023
8077
|
},
|
|
8024
8078
|
"subtotal": {
|
|
8025
|
-
"type": "
|
|
8079
|
+
"type": "INTEGER",
|
|
8026
8080
|
"notNull": false,
|
|
8027
8081
|
"default": 0
|
|
8028
8082
|
},
|
|
8029
8083
|
"tax_amount": {
|
|
8030
|
-
"type": "
|
|
8084
|
+
"type": "INTEGER",
|
|
8031
8085
|
"notNull": false,
|
|
8032
8086
|
"default": 0
|
|
8033
8087
|
},
|
|
8034
8088
|
"total_amount": {
|
|
8035
|
-
"type": "
|
|
8089
|
+
"type": "INTEGER",
|
|
8036
8090
|
"notNull": false,
|
|
8037
8091
|
"default": 0
|
|
8038
8092
|
},
|
|
@@ -8075,15 +8129,10 @@
|
|
|
8075
8129
|
}
|
|
8076
8130
|
},
|
|
8077
8131
|
"indexes": [
|
|
8078
|
-
{
|
|
8079
|
-
"name": "contracts_id_idx",
|
|
8080
|
-
"columns": [
|
|
8081
|
-
"id"
|
|
8082
|
-
]
|
|
8083
|
-
},
|
|
8084
8132
|
{
|
|
8085
8133
|
"name": "contracts_slug_context_meta_type_idx",
|
|
8086
8134
|
"columns": [
|
|
8135
|
+
"tenant_id",
|
|
8087
8136
|
"slug",
|
|
8088
8137
|
"context",
|
|
8089
8138
|
"_meta_type"
|
|
@@ -8097,13 +8146,26 @@
|
|
|
8097
8146
|
]
|
|
8098
8147
|
},
|
|
8099
8148
|
{
|
|
8100
|
-
"name": "
|
|
8149
|
+
"name": "contracts_tenant_id_created_at_idx",
|
|
8150
|
+
"columns": [
|
|
8151
|
+
"tenant_id",
|
|
8152
|
+
"created_at"
|
|
8153
|
+
]
|
|
8154
|
+
},
|
|
8155
|
+
{
|
|
8156
|
+
"name": "contracts_customer_id_idx",
|
|
8101
8157
|
"columns": [
|
|
8102
|
-
"
|
|
8158
|
+
"customer_id"
|
|
8159
|
+
]
|
|
8160
|
+
},
|
|
8161
|
+
{
|
|
8162
|
+
"name": "contracts_vendor_id_idx",
|
|
8163
|
+
"columns": [
|
|
8164
|
+
"vendor_id"
|
|
8103
8165
|
]
|
|
8104
8166
|
}
|
|
8105
8167
|
],
|
|
8106
|
-
"version": "
|
|
8168
|
+
"version": "db450616"
|
|
8107
8169
|
}
|
|
8108
8170
|
},
|
|
8109
8171
|
"@happyvertical/smrt-commerce:ProductionOrder": {
|
|
@@ -8159,17 +8221,17 @@
|
|
|
8159
8221
|
"related": "Vendor"
|
|
8160
8222
|
},
|
|
8161
8223
|
"subtotal": {
|
|
8162
|
-
"type": "
|
|
8224
|
+
"type": "integer",
|
|
8163
8225
|
"required": false,
|
|
8164
8226
|
"default": 0
|
|
8165
8227
|
},
|
|
8166
8228
|
"taxAmount": {
|
|
8167
|
-
"type": "
|
|
8229
|
+
"type": "integer",
|
|
8168
8230
|
"required": false,
|
|
8169
8231
|
"default": 0
|
|
8170
8232
|
},
|
|
8171
8233
|
"totalAmount": {
|
|
8172
|
-
"type": "
|
|
8234
|
+
"type": "integer",
|
|
8173
8235
|
"required": false,
|
|
8174
8236
|
"default": 0
|
|
8175
8237
|
},
|
|
@@ -8778,7 +8840,7 @@
|
|
|
8778
8840
|
"collectionExportName": "ProductionOrderCollection",
|
|
8779
8841
|
"schema": {
|
|
8780
8842
|
"tableName": "contracts",
|
|
8781
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\"
|
|
8843
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\" INTEGER DEFAULT 0,\n \"tax_amount\" INTEGER DEFAULT 0,\n \"total_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"issue_date\" TIMESTAMP,\n \"due_date\" TIMESTAMP,\n \"expiry_date\" TIMESTAMP,\n \"reference\" TEXT DEFAULT '',\n \"notes\" TEXT DEFAULT '',\n \"terms\" TEXT DEFAULT '',\n \"channel_id\" TEXT DEFAULT ''\n);",
|
|
8782
8844
|
"columns": {
|
|
8783
8845
|
"id": {
|
|
8784
8846
|
"type": "UUID",
|
|
@@ -8837,17 +8899,17 @@
|
|
|
8837
8899
|
"notNull": false
|
|
8838
8900
|
},
|
|
8839
8901
|
"subtotal": {
|
|
8840
|
-
"type": "
|
|
8902
|
+
"type": "INTEGER",
|
|
8841
8903
|
"notNull": false,
|
|
8842
8904
|
"default": 0
|
|
8843
8905
|
},
|
|
8844
8906
|
"tax_amount": {
|
|
8845
|
-
"type": "
|
|
8907
|
+
"type": "INTEGER",
|
|
8846
8908
|
"notNull": false,
|
|
8847
8909
|
"default": 0
|
|
8848
8910
|
},
|
|
8849
8911
|
"total_amount": {
|
|
8850
|
-
"type": "
|
|
8912
|
+
"type": "INTEGER",
|
|
8851
8913
|
"notNull": false,
|
|
8852
8914
|
"default": 0
|
|
8853
8915
|
},
|
|
@@ -8890,15 +8952,10 @@
|
|
|
8890
8952
|
}
|
|
8891
8953
|
},
|
|
8892
8954
|
"indexes": [
|
|
8893
|
-
{
|
|
8894
|
-
"name": "contracts_id_idx",
|
|
8895
|
-
"columns": [
|
|
8896
|
-
"id"
|
|
8897
|
-
]
|
|
8898
|
-
},
|
|
8899
8955
|
{
|
|
8900
8956
|
"name": "contracts_slug_context_meta_type_idx",
|
|
8901
8957
|
"columns": [
|
|
8958
|
+
"tenant_id",
|
|
8902
8959
|
"slug",
|
|
8903
8960
|
"context",
|
|
8904
8961
|
"_meta_type"
|
|
@@ -8912,13 +8969,26 @@
|
|
|
8912
8969
|
]
|
|
8913
8970
|
},
|
|
8914
8971
|
{
|
|
8915
|
-
"name": "
|
|
8972
|
+
"name": "contracts_tenant_id_created_at_idx",
|
|
8973
|
+
"columns": [
|
|
8974
|
+
"tenant_id",
|
|
8975
|
+
"created_at"
|
|
8976
|
+
]
|
|
8977
|
+
},
|
|
8978
|
+
{
|
|
8979
|
+
"name": "contracts_customer_id_idx",
|
|
8980
|
+
"columns": [
|
|
8981
|
+
"customer_id"
|
|
8982
|
+
]
|
|
8983
|
+
},
|
|
8984
|
+
{
|
|
8985
|
+
"name": "contracts_vendor_id_idx",
|
|
8916
8986
|
"columns": [
|
|
8917
|
-
"
|
|
8987
|
+
"vendor_id"
|
|
8918
8988
|
]
|
|
8919
8989
|
}
|
|
8920
8990
|
],
|
|
8921
|
-
"version": "
|
|
8991
|
+
"version": "db450616"
|
|
8922
8992
|
}
|
|
8923
8993
|
},
|
|
8924
8994
|
"@happyvertical/smrt-commerce:Cart": {
|
|
@@ -8974,17 +9044,17 @@
|
|
|
8974
9044
|
"related": "Vendor"
|
|
8975
9045
|
},
|
|
8976
9046
|
"subtotal": {
|
|
8977
|
-
"type": "
|
|
9047
|
+
"type": "integer",
|
|
8978
9048
|
"required": false,
|
|
8979
9049
|
"default": 0
|
|
8980
9050
|
},
|
|
8981
9051
|
"taxAmount": {
|
|
8982
|
-
"type": "
|
|
9052
|
+
"type": "integer",
|
|
8983
9053
|
"required": false,
|
|
8984
9054
|
"default": 0
|
|
8985
9055
|
},
|
|
8986
9056
|
"totalAmount": {
|
|
8987
|
-
"type": "
|
|
9057
|
+
"type": "integer",
|
|
8988
9058
|
"required": false,
|
|
8989
9059
|
"default": 0
|
|
8990
9060
|
},
|
|
@@ -9577,7 +9647,7 @@
|
|
|
9577
9647
|
"collectionExportName": "CartCollection",
|
|
9578
9648
|
"schema": {
|
|
9579
9649
|
"tableName": "contracts",
|
|
9580
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\"
|
|
9650
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\" INTEGER DEFAULT 0,\n \"tax_amount\" INTEGER DEFAULT 0,\n \"total_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"issue_date\" TIMESTAMP,\n \"due_date\" TIMESTAMP,\n \"expiry_date\" TIMESTAMP,\n \"reference\" TEXT DEFAULT '',\n \"notes\" TEXT DEFAULT '',\n \"terms\" TEXT DEFAULT '',\n \"channel_id\" TEXT DEFAULT ''\n);",
|
|
9581
9651
|
"columns": {
|
|
9582
9652
|
"id": {
|
|
9583
9653
|
"type": "UUID",
|
|
@@ -9636,17 +9706,17 @@
|
|
|
9636
9706
|
"notNull": false
|
|
9637
9707
|
},
|
|
9638
9708
|
"subtotal": {
|
|
9639
|
-
"type": "
|
|
9709
|
+
"type": "INTEGER",
|
|
9640
9710
|
"notNull": false,
|
|
9641
9711
|
"default": 0
|
|
9642
9712
|
},
|
|
9643
9713
|
"tax_amount": {
|
|
9644
|
-
"type": "
|
|
9714
|
+
"type": "INTEGER",
|
|
9645
9715
|
"notNull": false,
|
|
9646
9716
|
"default": 0
|
|
9647
9717
|
},
|
|
9648
9718
|
"total_amount": {
|
|
9649
|
-
"type": "
|
|
9719
|
+
"type": "INTEGER",
|
|
9650
9720
|
"notNull": false,
|
|
9651
9721
|
"default": 0
|
|
9652
9722
|
},
|
|
@@ -9689,15 +9759,10 @@
|
|
|
9689
9759
|
}
|
|
9690
9760
|
},
|
|
9691
9761
|
"indexes": [
|
|
9692
|
-
{
|
|
9693
|
-
"name": "contracts_id_idx",
|
|
9694
|
-
"columns": [
|
|
9695
|
-
"id"
|
|
9696
|
-
]
|
|
9697
|
-
},
|
|
9698
9762
|
{
|
|
9699
9763
|
"name": "contracts_slug_context_meta_type_idx",
|
|
9700
9764
|
"columns": [
|
|
9765
|
+
"tenant_id",
|
|
9701
9766
|
"slug",
|
|
9702
9767
|
"context",
|
|
9703
9768
|
"_meta_type"
|
|
@@ -9711,13 +9776,26 @@
|
|
|
9711
9776
|
]
|
|
9712
9777
|
},
|
|
9713
9778
|
{
|
|
9714
|
-
"name": "
|
|
9779
|
+
"name": "contracts_tenant_id_created_at_idx",
|
|
9715
9780
|
"columns": [
|
|
9716
|
-
"tenant_id"
|
|
9781
|
+
"tenant_id",
|
|
9782
|
+
"created_at"
|
|
9783
|
+
]
|
|
9784
|
+
},
|
|
9785
|
+
{
|
|
9786
|
+
"name": "contracts_customer_id_idx",
|
|
9787
|
+
"columns": [
|
|
9788
|
+
"customer_id"
|
|
9789
|
+
]
|
|
9790
|
+
},
|
|
9791
|
+
{
|
|
9792
|
+
"name": "contracts_vendor_id_idx",
|
|
9793
|
+
"columns": [
|
|
9794
|
+
"vendor_id"
|
|
9717
9795
|
]
|
|
9718
9796
|
}
|
|
9719
9797
|
],
|
|
9720
|
-
"version": "
|
|
9798
|
+
"version": "db450616"
|
|
9721
9799
|
}
|
|
9722
9800
|
},
|
|
9723
9801
|
"@happyvertical/smrt-commerce:LicenseSale": {
|
|
@@ -9773,17 +9851,17 @@
|
|
|
9773
9851
|
"related": "Vendor"
|
|
9774
9852
|
},
|
|
9775
9853
|
"subtotal": {
|
|
9776
|
-
"type": "
|
|
9854
|
+
"type": "integer",
|
|
9777
9855
|
"required": false,
|
|
9778
9856
|
"default": 0
|
|
9779
9857
|
},
|
|
9780
9858
|
"taxAmount": {
|
|
9781
|
-
"type": "
|
|
9859
|
+
"type": "integer",
|
|
9782
9860
|
"required": false,
|
|
9783
9861
|
"default": 0
|
|
9784
9862
|
},
|
|
9785
9863
|
"totalAmount": {
|
|
9786
|
-
"type": "
|
|
9864
|
+
"type": "integer",
|
|
9787
9865
|
"required": false,
|
|
9788
9866
|
"default": 0
|
|
9789
9867
|
},
|
|
@@ -10512,7 +10590,7 @@
|
|
|
10512
10590
|
"collectionExportName": "LicenseSaleCollection",
|
|
10513
10591
|
"schema": {
|
|
10514
10592
|
"tableName": "contracts",
|
|
10515
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\"
|
|
10593
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"customer_id\" UUID,\n \"vendor_id\" UUID,\n \"subtotal\" INTEGER DEFAULT 0,\n \"tax_amount\" INTEGER DEFAULT 0,\n \"total_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"issue_date\" TIMESTAMP,\n \"due_date\" TIMESTAMP,\n \"expiry_date\" TIMESTAMP,\n \"reference\" TEXT DEFAULT '',\n \"notes\" TEXT DEFAULT '',\n \"terms\" TEXT DEFAULT '',\n \"channel_id\" TEXT DEFAULT ''\n);",
|
|
10516
10594
|
"columns": {
|
|
10517
10595
|
"id": {
|
|
10518
10596
|
"type": "UUID",
|
|
@@ -10571,17 +10649,17 @@
|
|
|
10571
10649
|
"notNull": false
|
|
10572
10650
|
},
|
|
10573
10651
|
"subtotal": {
|
|
10574
|
-
"type": "
|
|
10652
|
+
"type": "INTEGER",
|
|
10575
10653
|
"notNull": false,
|
|
10576
10654
|
"default": 0
|
|
10577
10655
|
},
|
|
10578
10656
|
"tax_amount": {
|
|
10579
|
-
"type": "
|
|
10657
|
+
"type": "INTEGER",
|
|
10580
10658
|
"notNull": false,
|
|
10581
10659
|
"default": 0
|
|
10582
10660
|
},
|
|
10583
10661
|
"total_amount": {
|
|
10584
|
-
"type": "
|
|
10662
|
+
"type": "INTEGER",
|
|
10585
10663
|
"notNull": false,
|
|
10586
10664
|
"default": 0
|
|
10587
10665
|
},
|
|
@@ -10624,15 +10702,10 @@
|
|
|
10624
10702
|
}
|
|
10625
10703
|
},
|
|
10626
10704
|
"indexes": [
|
|
10627
|
-
{
|
|
10628
|
-
"name": "contracts_id_idx",
|
|
10629
|
-
"columns": [
|
|
10630
|
-
"id"
|
|
10631
|
-
]
|
|
10632
|
-
},
|
|
10633
10705
|
{
|
|
10634
10706
|
"name": "contracts_slug_context_meta_type_idx",
|
|
10635
10707
|
"columns": [
|
|
10708
|
+
"tenant_id",
|
|
10636
10709
|
"slug",
|
|
10637
10710
|
"context",
|
|
10638
10711
|
"_meta_type"
|
|
@@ -10646,13 +10719,26 @@
|
|
|
10646
10719
|
]
|
|
10647
10720
|
},
|
|
10648
10721
|
{
|
|
10649
|
-
"name": "
|
|
10722
|
+
"name": "contracts_tenant_id_created_at_idx",
|
|
10723
|
+
"columns": [
|
|
10724
|
+
"tenant_id",
|
|
10725
|
+
"created_at"
|
|
10726
|
+
]
|
|
10727
|
+
},
|
|
10728
|
+
{
|
|
10729
|
+
"name": "contracts_customer_id_idx",
|
|
10730
|
+
"columns": [
|
|
10731
|
+
"customer_id"
|
|
10732
|
+
]
|
|
10733
|
+
},
|
|
10734
|
+
{
|
|
10735
|
+
"name": "contracts_vendor_id_idx",
|
|
10650
10736
|
"columns": [
|
|
10651
|
-
"
|
|
10737
|
+
"vendor_id"
|
|
10652
10738
|
]
|
|
10653
10739
|
}
|
|
10654
10740
|
],
|
|
10655
|
-
"version": "
|
|
10741
|
+
"version": "db450616"
|
|
10656
10742
|
}
|
|
10657
10743
|
},
|
|
10658
10744
|
"@happyvertical/smrt-commerce:ContractLineItem": {
|
|
@@ -10705,12 +10791,12 @@
|
|
|
10705
10791
|
"default": 1
|
|
10706
10792
|
},
|
|
10707
10793
|
"unitPrice": {
|
|
10708
|
-
"type": "
|
|
10794
|
+
"type": "integer",
|
|
10709
10795
|
"required": false,
|
|
10710
10796
|
"default": 0
|
|
10711
10797
|
},
|
|
10712
10798
|
"discount": {
|
|
10713
|
-
"type": "
|
|
10799
|
+
"type": "integer",
|
|
10714
10800
|
"required": false,
|
|
10715
10801
|
"default": 0
|
|
10716
10802
|
},
|
|
@@ -10720,7 +10806,7 @@
|
|
|
10720
10806
|
"default": 0
|
|
10721
10807
|
},
|
|
10722
10808
|
"amount": {
|
|
10723
|
-
"type": "
|
|
10809
|
+
"type": "integer",
|
|
10724
10810
|
"required": false,
|
|
10725
10811
|
"default": 0
|
|
10726
10812
|
},
|
|
@@ -11288,14 +11374,20 @@
|
|
|
11288
11374
|
"cli": true,
|
|
11289
11375
|
"tenantScoped": {
|
|
11290
11376
|
"mode": "optional"
|
|
11291
|
-
}
|
|
11377
|
+
},
|
|
11378
|
+
"conflictColumns": [
|
|
11379
|
+
"tenant_id",
|
|
11380
|
+
"slug",
|
|
11381
|
+
"context",
|
|
11382
|
+
"_meta_type"
|
|
11383
|
+
]
|
|
11292
11384
|
},
|
|
11293
11385
|
"extends": "SmrtObject",
|
|
11294
11386
|
"exportName": "ContractLineItem",
|
|
11295
11387
|
"collectionExportName": "ContractLineItemCollection",
|
|
11296
11388
|
"schema": {
|
|
11297
11389
|
"tableName": "contract_line_items",
|
|
11298
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"contract_line_items\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_id\" UUID,\n \"description\" TEXT DEFAULT '',\n \"quantity\" REAL DEFAULT 1,\n \"unit_price\"
|
|
11390
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"contract_line_items\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_id\" UUID,\n \"description\" TEXT DEFAULT '',\n \"quantity\" REAL DEFAULT 1,\n \"unit_price\" INTEGER DEFAULT 0,\n \"discount\" INTEGER DEFAULT 0,\n \"tax_rate\" REAL DEFAULT 0,\n \"amount\" INTEGER DEFAULT 0,\n \"product_id\" UUID,\n \"sku\" TEXT DEFAULT '',\n \"start_date\" TIMESTAMP,\n \"end_date\" TIMESTAMP,\n \"billing_period\" TEXT DEFAULT '',\n \"sort_order\" INTEGER DEFAULT 0\n);",
|
|
11299
11391
|
"columns": {
|
|
11300
11392
|
"id": {
|
|
11301
11393
|
"type": "UUID",
|
|
@@ -11351,12 +11443,12 @@
|
|
|
11351
11443
|
"default": 1
|
|
11352
11444
|
},
|
|
11353
11445
|
"unit_price": {
|
|
11354
|
-
"type": "
|
|
11446
|
+
"type": "INTEGER",
|
|
11355
11447
|
"notNull": false,
|
|
11356
11448
|
"default": 0
|
|
11357
11449
|
},
|
|
11358
11450
|
"discount": {
|
|
11359
|
-
"type": "
|
|
11451
|
+
"type": "INTEGER",
|
|
11360
11452
|
"notNull": false,
|
|
11361
11453
|
"default": 0
|
|
11362
11454
|
},
|
|
@@ -11366,7 +11458,7 @@
|
|
|
11366
11458
|
"default": 0
|
|
11367
11459
|
},
|
|
11368
11460
|
"amount": {
|
|
11369
|
-
"type": "
|
|
11461
|
+
"type": "INTEGER",
|
|
11370
11462
|
"notNull": false,
|
|
11371
11463
|
"default": 0
|
|
11372
11464
|
},
|
|
@@ -11400,15 +11492,10 @@
|
|
|
11400
11492
|
}
|
|
11401
11493
|
},
|
|
11402
11494
|
"indexes": [
|
|
11403
|
-
{
|
|
11404
|
-
"name": "contract_line_items_id_idx",
|
|
11405
|
-
"columns": [
|
|
11406
|
-
"id"
|
|
11407
|
-
]
|
|
11408
|
-
},
|
|
11409
11495
|
{
|
|
11410
11496
|
"name": "contract_line_items_slug_context_meta_type_idx",
|
|
11411
11497
|
"columns": [
|
|
11498
|
+
"tenant_id",
|
|
11412
11499
|
"slug",
|
|
11413
11500
|
"context",
|
|
11414
11501
|
"_meta_type"
|
|
@@ -11422,13 +11509,26 @@
|
|
|
11422
11509
|
]
|
|
11423
11510
|
},
|
|
11424
11511
|
{
|
|
11425
|
-
"name": "
|
|
11512
|
+
"name": "contract_line_items_tenant_id_created_at_idx",
|
|
11426
11513
|
"columns": [
|
|
11427
|
-
"tenant_id"
|
|
11514
|
+
"tenant_id",
|
|
11515
|
+
"created_at"
|
|
11516
|
+
]
|
|
11517
|
+
},
|
|
11518
|
+
{
|
|
11519
|
+
"name": "contract_line_items_contract_id_idx",
|
|
11520
|
+
"columns": [
|
|
11521
|
+
"contract_id"
|
|
11522
|
+
]
|
|
11523
|
+
},
|
|
11524
|
+
{
|
|
11525
|
+
"name": "contract_line_items_product_id_idx",
|
|
11526
|
+
"columns": [
|
|
11527
|
+
"product_id"
|
|
11428
11528
|
]
|
|
11429
11529
|
}
|
|
11430
11530
|
],
|
|
11431
|
-
"version": "
|
|
11531
|
+
"version": "d0c5dd84"
|
|
11432
11532
|
}
|
|
11433
11533
|
},
|
|
11434
11534
|
"@happyvertical/smrt-commerce:Customer": {
|
|
@@ -11463,7 +11563,7 @@
|
|
|
11463
11563
|
"related": "@happyvertical/smrt-profiles:Profile"
|
|
11464
11564
|
},
|
|
11465
11565
|
"creditLimit": {
|
|
11466
|
-
"type": "
|
|
11566
|
+
"type": "integer",
|
|
11467
11567
|
"required": false,
|
|
11468
11568
|
"default": 0
|
|
11469
11569
|
},
|
|
@@ -11566,14 +11666,19 @@
|
|
|
11566
11666
|
"cli": true,
|
|
11567
11667
|
"tenantScoped": {
|
|
11568
11668
|
"mode": "optional"
|
|
11569
|
-
}
|
|
11669
|
+
},
|
|
11670
|
+
"conflictColumns": [
|
|
11671
|
+
"tenant_id",
|
|
11672
|
+
"slug",
|
|
11673
|
+
"context"
|
|
11674
|
+
]
|
|
11570
11675
|
},
|
|
11571
11676
|
"extends": "SmrtObject",
|
|
11572
11677
|
"exportName": "Customer",
|
|
11573
11678
|
"collectionExportName": "CustomerCollection",
|
|
11574
11679
|
"schema": {
|
|
11575
11680
|
"tableName": "customers",
|
|
11576
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"customers\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"profile_id\" UUID,\n \"credit_limit\"
|
|
11681
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"customers\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"profile_id\" UUID,\n \"credit_limit\" INTEGER DEFAULT 0,\n \"payment_terms\" TEXT DEFAULT '',\n \"tax_exempt\" BOOLEAN DEFAULT FALSE,\n \"tax_id\" TEXT DEFAULT '',\n \"default_shipping_address\" JSON,\n \"default_billing_address\" JSON,\n \"status\" TEXT,\n \"customer_type\" TEXT,\n \"notes\" TEXT DEFAULT ''\n);",
|
|
11577
11682
|
"columns": {
|
|
11578
11683
|
"id": {
|
|
11579
11684
|
"type": "UUID",
|
|
@@ -11613,7 +11718,7 @@
|
|
|
11613
11718
|
"unique": false
|
|
11614
11719
|
},
|
|
11615
11720
|
"credit_limit": {
|
|
11616
|
-
"type": "
|
|
11721
|
+
"type": "INTEGER",
|
|
11617
11722
|
"notNull": false,
|
|
11618
11723
|
"unique": false,
|
|
11619
11724
|
"default": 0
|
|
@@ -11664,28 +11769,30 @@
|
|
|
11664
11769
|
}
|
|
11665
11770
|
},
|
|
11666
11771
|
"indexes": [
|
|
11667
|
-
{
|
|
11668
|
-
"name": "customers_id_idx",
|
|
11669
|
-
"columns": [
|
|
11670
|
-
"id"
|
|
11671
|
-
]
|
|
11672
|
-
},
|
|
11673
11772
|
{
|
|
11674
11773
|
"name": "customers_slug_context_idx",
|
|
11675
11774
|
"columns": [
|
|
11775
|
+
"tenant_id",
|
|
11676
11776
|
"slug",
|
|
11677
11777
|
"context"
|
|
11678
11778
|
],
|
|
11679
11779
|
"unique": true
|
|
11680
11780
|
},
|
|
11681
11781
|
{
|
|
11682
|
-
"name": "
|
|
11782
|
+
"name": "customers_tenant_id_created_at_idx",
|
|
11683
11783
|
"columns": [
|
|
11684
|
-
"tenant_id"
|
|
11784
|
+
"tenant_id",
|
|
11785
|
+
"created_at"
|
|
11786
|
+
]
|
|
11787
|
+
},
|
|
11788
|
+
{
|
|
11789
|
+
"name": "customers_profile_id_idx",
|
|
11790
|
+
"columns": [
|
|
11791
|
+
"profile_id"
|
|
11685
11792
|
]
|
|
11686
11793
|
}
|
|
11687
11794
|
],
|
|
11688
|
-
"version": "
|
|
11795
|
+
"version": "ad1b9967"
|
|
11689
11796
|
}
|
|
11690
11797
|
},
|
|
11691
11798
|
"@happyvertical/smrt-commerce:Fulfillment": {
|
|
@@ -11854,7 +11961,12 @@
|
|
|
11854
11961
|
"cli": true,
|
|
11855
11962
|
"tenantScoped": {
|
|
11856
11963
|
"mode": "optional"
|
|
11857
|
-
}
|
|
11964
|
+
},
|
|
11965
|
+
"conflictColumns": [
|
|
11966
|
+
"tenant_id",
|
|
11967
|
+
"slug",
|
|
11968
|
+
"context"
|
|
11969
|
+
]
|
|
11858
11970
|
},
|
|
11859
11971
|
"extends": "SmrtObject",
|
|
11860
11972
|
"exportName": "Fulfillment",
|
|
@@ -11950,24 +12062,26 @@
|
|
|
11950
12062
|
}
|
|
11951
12063
|
},
|
|
11952
12064
|
"indexes": [
|
|
11953
|
-
{
|
|
11954
|
-
"name": "fulfillments_id_idx",
|
|
11955
|
-
"columns": [
|
|
11956
|
-
"id"
|
|
11957
|
-
]
|
|
11958
|
-
},
|
|
11959
12065
|
{
|
|
11960
12066
|
"name": "fulfillments_slug_context_idx",
|
|
11961
12067
|
"columns": [
|
|
12068
|
+
"tenant_id",
|
|
11962
12069
|
"slug",
|
|
11963
12070
|
"context"
|
|
11964
12071
|
],
|
|
11965
12072
|
"unique": true
|
|
11966
12073
|
},
|
|
11967
12074
|
{
|
|
11968
|
-
"name": "
|
|
12075
|
+
"name": "fulfillments_tenant_id_created_at_idx",
|
|
12076
|
+
"columns": [
|
|
12077
|
+
"tenant_id",
|
|
12078
|
+
"created_at"
|
|
12079
|
+
]
|
|
12080
|
+
},
|
|
12081
|
+
{
|
|
12082
|
+
"name": "fulfillments_contract_id_idx",
|
|
11969
12083
|
"columns": [
|
|
11970
|
-
"
|
|
12084
|
+
"contract_id"
|
|
11971
12085
|
]
|
|
11972
12086
|
}
|
|
11973
12087
|
],
|
|
@@ -12050,7 +12164,12 @@
|
|
|
12050
12164
|
"cli": true,
|
|
12051
12165
|
"tenantScoped": {
|
|
12052
12166
|
"mode": "optional"
|
|
12053
|
-
}
|
|
12167
|
+
},
|
|
12168
|
+
"conflictColumns": [
|
|
12169
|
+
"tenant_id",
|
|
12170
|
+
"slug",
|
|
12171
|
+
"context"
|
|
12172
|
+
]
|
|
12054
12173
|
},
|
|
12055
12174
|
"extends": "SmrtObject",
|
|
12056
12175
|
"exportName": "FulfillmentLineItem",
|
|
@@ -12116,24 +12235,32 @@
|
|
|
12116
12235
|
}
|
|
12117
12236
|
},
|
|
12118
12237
|
"indexes": [
|
|
12119
|
-
{
|
|
12120
|
-
"name": "fulfillment_line_items_id_idx",
|
|
12121
|
-
"columns": [
|
|
12122
|
-
"id"
|
|
12123
|
-
]
|
|
12124
|
-
},
|
|
12125
12238
|
{
|
|
12126
12239
|
"name": "fulfillment_line_items_slug_context_idx",
|
|
12127
12240
|
"columns": [
|
|
12241
|
+
"tenant_id",
|
|
12128
12242
|
"slug",
|
|
12129
12243
|
"context"
|
|
12130
12244
|
],
|
|
12131
12245
|
"unique": true
|
|
12132
12246
|
},
|
|
12133
12247
|
{
|
|
12134
|
-
"name": "
|
|
12248
|
+
"name": "fulfillment_line_items_tenant_id_created_at_idx",
|
|
12135
12249
|
"columns": [
|
|
12136
|
-
"tenant_id"
|
|
12250
|
+
"tenant_id",
|
|
12251
|
+
"created_at"
|
|
12252
|
+
]
|
|
12253
|
+
},
|
|
12254
|
+
{
|
|
12255
|
+
"name": "fulfillment_line_items_fulfillment_id_idx",
|
|
12256
|
+
"columns": [
|
|
12257
|
+
"fulfillment_id"
|
|
12258
|
+
]
|
|
12259
|
+
},
|
|
12260
|
+
{
|
|
12261
|
+
"name": "fulfillment_line_items_contract_line_item_id_idx",
|
|
12262
|
+
"columns": [
|
|
12263
|
+
"contract_line_item_id"
|
|
12137
12264
|
]
|
|
12138
12265
|
}
|
|
12139
12266
|
],
|
|
@@ -12464,7 +12591,12 @@
|
|
|
12464
12591
|
"cli": true,
|
|
12465
12592
|
"tenantScoped": {
|
|
12466
12593
|
"mode": "optional"
|
|
12467
|
-
}
|
|
12594
|
+
},
|
|
12595
|
+
"conflictColumns": [
|
|
12596
|
+
"tenant_id",
|
|
12597
|
+
"slug",
|
|
12598
|
+
"context"
|
|
12599
|
+
]
|
|
12468
12600
|
},
|
|
12469
12601
|
"extends": "SmrtObject",
|
|
12470
12602
|
"exportName": "Invoice",
|
|
@@ -12654,24 +12786,44 @@
|
|
|
12654
12786
|
}
|
|
12655
12787
|
},
|
|
12656
12788
|
"indexes": [
|
|
12657
|
-
{
|
|
12658
|
-
"name": "invoices_id_idx",
|
|
12659
|
-
"columns": [
|
|
12660
|
-
"id"
|
|
12661
|
-
]
|
|
12662
|
-
},
|
|
12663
12789
|
{
|
|
12664
12790
|
"name": "invoices_slug_context_idx",
|
|
12665
12791
|
"columns": [
|
|
12792
|
+
"tenant_id",
|
|
12666
12793
|
"slug",
|
|
12667
12794
|
"context"
|
|
12668
12795
|
],
|
|
12669
12796
|
"unique": true
|
|
12670
12797
|
},
|
|
12671
12798
|
{
|
|
12672
|
-
"name": "
|
|
12799
|
+
"name": "invoices_tenant_id_created_at_idx",
|
|
12800
|
+
"columns": [
|
|
12801
|
+
"tenant_id",
|
|
12802
|
+
"created_at"
|
|
12803
|
+
]
|
|
12804
|
+
},
|
|
12805
|
+
{
|
|
12806
|
+
"name": "invoices_customer_id_idx",
|
|
12807
|
+
"columns": [
|
|
12808
|
+
"customer_id"
|
|
12809
|
+
]
|
|
12810
|
+
},
|
|
12811
|
+
{
|
|
12812
|
+
"name": "invoices_contract_id_idx",
|
|
12673
12813
|
"columns": [
|
|
12674
|
-
"
|
|
12814
|
+
"contract_id"
|
|
12815
|
+
]
|
|
12816
|
+
},
|
|
12817
|
+
{
|
|
12818
|
+
"name": "invoices_ar_journal_id_idx",
|
|
12819
|
+
"columns": [
|
|
12820
|
+
"ar_journal_id"
|
|
12821
|
+
]
|
|
12822
|
+
},
|
|
12823
|
+
{
|
|
12824
|
+
"name": "invoices_revenue_journal_id_idx",
|
|
12825
|
+
"columns": [
|
|
12826
|
+
"revenue_journal_id"
|
|
12675
12827
|
]
|
|
12676
12828
|
}
|
|
12677
12829
|
],
|
|
@@ -12735,7 +12887,7 @@
|
|
|
12735
12887
|
"default": 0
|
|
12736
12888
|
},
|
|
12737
12889
|
"taxRate": {
|
|
12738
|
-
"type": "
|
|
12890
|
+
"type": "decimal",
|
|
12739
12891
|
"required": false,
|
|
12740
12892
|
"default": 0
|
|
12741
12893
|
},
|
|
@@ -12842,14 +12994,19 @@
|
|
|
12842
12994
|
"cli": true,
|
|
12843
12995
|
"tenantScoped": {
|
|
12844
12996
|
"mode": "optional"
|
|
12845
|
-
}
|
|
12997
|
+
},
|
|
12998
|
+
"conflictColumns": [
|
|
12999
|
+
"tenant_id",
|
|
13000
|
+
"slug",
|
|
13001
|
+
"context"
|
|
13002
|
+
]
|
|
12846
13003
|
},
|
|
12847
13004
|
"extends": "SmrtObject",
|
|
12848
13005
|
"exportName": "InvoiceLineItem",
|
|
12849
13006
|
"collectionExportName": "InvoiceLineItemCollection",
|
|
12850
13007
|
"schema": {
|
|
12851
13008
|
"tableName": "invoice_line_items",
|
|
12852
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"invoice_line_items\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"invoice_id\" UUID,\n \"description\" TEXT DEFAULT '',\n \"sku\" TEXT DEFAULT '',\n \"quantity\" INTEGER DEFAULT 1,\n \"unit_price\" INTEGER DEFAULT 0,\n \"discount\" INTEGER DEFAULT 0,\n \"tax_rate\"
|
|
13009
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"invoice_line_items\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"invoice_id\" UUID,\n \"description\" TEXT DEFAULT '',\n \"sku\" TEXT DEFAULT '',\n \"quantity\" INTEGER DEFAULT 1,\n \"unit_price\" INTEGER DEFAULT 0,\n \"discount\" INTEGER DEFAULT 0,\n \"tax_rate\" REAL DEFAULT 0,\n \"amount\" INTEGER DEFAULT 0,\n \"source_type\" TEXT DEFAULT '',\n \"source_id\" TEXT DEFAULT '',\n \"period_start\" TIMESTAMP,\n \"period_end\" TIMESTAMP,\n \"revenue_account_id\" UUID,\n \"sort_order\" INTEGER DEFAULT 0\n);",
|
|
12853
13010
|
"columns": {
|
|
12854
13011
|
"id": {
|
|
12855
13012
|
"type": "UUID",
|
|
@@ -12919,7 +13076,7 @@
|
|
|
12919
13076
|
"default": 0
|
|
12920
13077
|
},
|
|
12921
13078
|
"tax_rate": {
|
|
12922
|
-
"type": "
|
|
13079
|
+
"type": "REAL",
|
|
12923
13080
|
"notNull": false,
|
|
12924
13081
|
"unique": false,
|
|
12925
13082
|
"default": 0
|
|
@@ -12966,28 +13123,36 @@
|
|
|
12966
13123
|
}
|
|
12967
13124
|
},
|
|
12968
13125
|
"indexes": [
|
|
12969
|
-
{
|
|
12970
|
-
"name": "invoice_line_items_id_idx",
|
|
12971
|
-
"columns": [
|
|
12972
|
-
"id"
|
|
12973
|
-
]
|
|
12974
|
-
},
|
|
12975
13126
|
{
|
|
12976
13127
|
"name": "invoice_line_items_slug_context_idx",
|
|
12977
13128
|
"columns": [
|
|
13129
|
+
"tenant_id",
|
|
12978
13130
|
"slug",
|
|
12979
13131
|
"context"
|
|
12980
13132
|
],
|
|
12981
13133
|
"unique": true
|
|
12982
13134
|
},
|
|
12983
13135
|
{
|
|
12984
|
-
"name": "
|
|
13136
|
+
"name": "invoice_line_items_tenant_id_created_at_idx",
|
|
12985
13137
|
"columns": [
|
|
12986
|
-
"tenant_id"
|
|
13138
|
+
"tenant_id",
|
|
13139
|
+
"created_at"
|
|
13140
|
+
]
|
|
13141
|
+
},
|
|
13142
|
+
{
|
|
13143
|
+
"name": "invoice_line_items_invoice_id_idx",
|
|
13144
|
+
"columns": [
|
|
13145
|
+
"invoice_id"
|
|
13146
|
+
]
|
|
13147
|
+
},
|
|
13148
|
+
{
|
|
13149
|
+
"name": "invoice_line_items_revenue_account_id_idx",
|
|
13150
|
+
"columns": [
|
|
13151
|
+
"revenue_account_id"
|
|
12987
13152
|
]
|
|
12988
13153
|
}
|
|
12989
13154
|
],
|
|
12990
|
-
"version": "
|
|
13155
|
+
"version": "62d20746"
|
|
12991
13156
|
}
|
|
12992
13157
|
},
|
|
12993
13158
|
"@happyvertical/smrt-commerce:Payment": {
|
|
@@ -13027,7 +13192,7 @@
|
|
|
13027
13192
|
"related": "Customer"
|
|
13028
13193
|
},
|
|
13029
13194
|
"amount": {
|
|
13030
|
-
"type": "
|
|
13195
|
+
"type": "integer",
|
|
13031
13196
|
"required": false,
|
|
13032
13197
|
"default": 0
|
|
13033
13198
|
},
|
|
@@ -13093,7 +13258,7 @@
|
|
|
13093
13258
|
"default": ""
|
|
13094
13259
|
},
|
|
13095
13260
|
"nativeAmount": {
|
|
13096
|
-
"type": "
|
|
13261
|
+
"type": "integer",
|
|
13097
13262
|
"required": false,
|
|
13098
13263
|
"default": 0
|
|
13099
13264
|
},
|
|
@@ -13103,12 +13268,12 @@
|
|
|
13103
13268
|
"default": ""
|
|
13104
13269
|
},
|
|
13105
13270
|
"usdAtQuote": {
|
|
13106
|
-
"type": "
|
|
13271
|
+
"type": "integer",
|
|
13107
13272
|
"required": false,
|
|
13108
13273
|
"default": 0
|
|
13109
13274
|
},
|
|
13110
13275
|
"usdAtConfirmation": {
|
|
13111
|
-
"type": "
|
|
13276
|
+
"type": "integer",
|
|
13112
13277
|
"required": false,
|
|
13113
13278
|
"default": 0
|
|
13114
13279
|
}
|
|
@@ -13243,14 +13408,19 @@
|
|
|
13243
13408
|
"cli": true,
|
|
13244
13409
|
"tenantScoped": {
|
|
13245
13410
|
"mode": "optional"
|
|
13246
|
-
}
|
|
13411
|
+
},
|
|
13412
|
+
"conflictColumns": [
|
|
13413
|
+
"tenant_id",
|
|
13414
|
+
"slug",
|
|
13415
|
+
"context"
|
|
13416
|
+
]
|
|
13247
13417
|
},
|
|
13248
13418
|
"extends": "SmrtObject",
|
|
13249
13419
|
"exportName": "Payment",
|
|
13250
13420
|
"collectionExportName": "PaymentCollection",
|
|
13251
13421
|
"schema": {
|
|
13252
13422
|
"tableName": "payments",
|
|
13253
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"payments\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_id\" UUID,\n \"customer_id\" UUID,\n \"amount\"
|
|
13423
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"payments\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_id\" UUID,\n \"customer_id\" UUID,\n \"amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"method\" TEXT,\n \"status\" TEXT,\n \"transaction_id\" TEXT DEFAULT '',\n \"reference\" TEXT DEFAULT '',\n \"journal_id\" UUID,\n \"paid_at\" TIMESTAMP,\n \"notes\" TEXT DEFAULT '',\n \"external_id\" TEXT DEFAULT '',\n \"external_provider\" TEXT DEFAULT '',\n \"synced_at\" TIMESTAMP,\n \"backend_id\" TEXT DEFAULT '',\n \"backend_tx_ref\" TEXT DEFAULT '',\n \"native_amount\" INTEGER DEFAULT 0,\n \"native_currency\" TEXT DEFAULT '',\n \"usd_at_quote\" INTEGER DEFAULT 0,\n \"usd_at_confirmation\" INTEGER DEFAULT 0\n);",
|
|
13254
13424
|
"columns": {
|
|
13255
13425
|
"id": {
|
|
13256
13426
|
"type": "UUID",
|
|
@@ -13296,7 +13466,7 @@
|
|
|
13296
13466
|
"unique": false
|
|
13297
13467
|
},
|
|
13298
13468
|
"amount": {
|
|
13299
|
-
"type": "
|
|
13469
|
+
"type": "INTEGER",
|
|
13300
13470
|
"notNull": false,
|
|
13301
13471
|
"unique": false,
|
|
13302
13472
|
"default": 0
|
|
@@ -13376,7 +13546,7 @@
|
|
|
13376
13546
|
"default": ""
|
|
13377
13547
|
},
|
|
13378
13548
|
"native_amount": {
|
|
13379
|
-
"type": "
|
|
13549
|
+
"type": "INTEGER",
|
|
13380
13550
|
"notNull": false,
|
|
13381
13551
|
"unique": false,
|
|
13382
13552
|
"default": 0
|
|
@@ -13388,41 +13558,55 @@
|
|
|
13388
13558
|
"default": ""
|
|
13389
13559
|
},
|
|
13390
13560
|
"usd_at_quote": {
|
|
13391
|
-
"type": "
|
|
13561
|
+
"type": "INTEGER",
|
|
13392
13562
|
"notNull": false,
|
|
13393
13563
|
"unique": false,
|
|
13394
13564
|
"default": 0
|
|
13395
13565
|
},
|
|
13396
13566
|
"usd_at_confirmation": {
|
|
13397
|
-
"type": "
|
|
13567
|
+
"type": "INTEGER",
|
|
13398
13568
|
"notNull": false,
|
|
13399
13569
|
"unique": false,
|
|
13400
13570
|
"default": 0
|
|
13401
13571
|
}
|
|
13402
13572
|
},
|
|
13403
13573
|
"indexes": [
|
|
13404
|
-
{
|
|
13405
|
-
"name": "payments_id_idx",
|
|
13406
|
-
"columns": [
|
|
13407
|
-
"id"
|
|
13408
|
-
]
|
|
13409
|
-
},
|
|
13410
13574
|
{
|
|
13411
13575
|
"name": "payments_slug_context_idx",
|
|
13412
13576
|
"columns": [
|
|
13577
|
+
"tenant_id",
|
|
13413
13578
|
"slug",
|
|
13414
13579
|
"context"
|
|
13415
13580
|
],
|
|
13416
13581
|
"unique": true
|
|
13417
13582
|
},
|
|
13418
13583
|
{
|
|
13419
|
-
"name": "
|
|
13584
|
+
"name": "payments_tenant_id_created_at_idx",
|
|
13420
13585
|
"columns": [
|
|
13421
|
-
"tenant_id"
|
|
13586
|
+
"tenant_id",
|
|
13587
|
+
"created_at"
|
|
13588
|
+
]
|
|
13589
|
+
},
|
|
13590
|
+
{
|
|
13591
|
+
"name": "payments_contract_id_idx",
|
|
13592
|
+
"columns": [
|
|
13593
|
+
"contract_id"
|
|
13594
|
+
]
|
|
13595
|
+
},
|
|
13596
|
+
{
|
|
13597
|
+
"name": "payments_customer_id_idx",
|
|
13598
|
+
"columns": [
|
|
13599
|
+
"customer_id"
|
|
13600
|
+
]
|
|
13601
|
+
},
|
|
13602
|
+
{
|
|
13603
|
+
"name": "payments_journal_id_idx",
|
|
13604
|
+
"columns": [
|
|
13605
|
+
"journal_id"
|
|
13422
13606
|
]
|
|
13423
13607
|
}
|
|
13424
13608
|
],
|
|
13425
|
-
"version": "
|
|
13609
|
+
"version": "fccf2aeb"
|
|
13426
13610
|
}
|
|
13427
13611
|
},
|
|
13428
13612
|
"@happyvertical/smrt-commerce:PaymentAllocation": {
|
|
@@ -13512,7 +13696,12 @@
|
|
|
13512
13696
|
},
|
|
13513
13697
|
"tenantScoped": {
|
|
13514
13698
|
"mode": "optional"
|
|
13515
|
-
}
|
|
13699
|
+
},
|
|
13700
|
+
"conflictColumns": [
|
|
13701
|
+
"tenant_id",
|
|
13702
|
+
"slug",
|
|
13703
|
+
"context"
|
|
13704
|
+
]
|
|
13516
13705
|
},
|
|
13517
13706
|
"extends": "SmrtObject",
|
|
13518
13707
|
"exportName": "PaymentAllocation",
|
|
@@ -13589,24 +13778,32 @@
|
|
|
13589
13778
|
}
|
|
13590
13779
|
},
|
|
13591
13780
|
"indexes": [
|
|
13592
|
-
{
|
|
13593
|
-
"name": "payment_allocations_id_idx",
|
|
13594
|
-
"columns": [
|
|
13595
|
-
"id"
|
|
13596
|
-
]
|
|
13597
|
-
},
|
|
13598
13781
|
{
|
|
13599
13782
|
"name": "payment_allocations_slug_context_idx",
|
|
13600
13783
|
"columns": [
|
|
13784
|
+
"tenant_id",
|
|
13601
13785
|
"slug",
|
|
13602
13786
|
"context"
|
|
13603
13787
|
],
|
|
13604
13788
|
"unique": true
|
|
13605
13789
|
},
|
|
13606
13790
|
{
|
|
13607
|
-
"name": "
|
|
13791
|
+
"name": "payment_allocations_tenant_id_created_at_idx",
|
|
13792
|
+
"columns": [
|
|
13793
|
+
"tenant_id",
|
|
13794
|
+
"created_at"
|
|
13795
|
+
]
|
|
13796
|
+
},
|
|
13797
|
+
{
|
|
13798
|
+
"name": "payment_allocations_payment_id_idx",
|
|
13608
13799
|
"columns": [
|
|
13609
|
-
"
|
|
13800
|
+
"payment_id"
|
|
13801
|
+
]
|
|
13802
|
+
},
|
|
13803
|
+
{
|
|
13804
|
+
"name": "payment_allocations_invoice_id_idx",
|
|
13805
|
+
"columns": [
|
|
13806
|
+
"invoice_id"
|
|
13610
13807
|
]
|
|
13611
13808
|
}
|
|
13612
13809
|
],
|
|
@@ -13766,7 +13963,12 @@
|
|
|
13766
13963
|
"cli": true,
|
|
13767
13964
|
"tenantScoped": {
|
|
13768
13965
|
"mode": "optional"
|
|
13769
|
-
}
|
|
13966
|
+
},
|
|
13967
|
+
"conflictColumns": [
|
|
13968
|
+
"tenant_id",
|
|
13969
|
+
"slug",
|
|
13970
|
+
"context"
|
|
13971
|
+
]
|
|
13770
13972
|
},
|
|
13771
13973
|
"extends": "SmrtObject",
|
|
13772
13974
|
"exportName": "PaymentInstrument",
|
|
@@ -13873,24 +14075,26 @@
|
|
|
13873
14075
|
}
|
|
13874
14076
|
},
|
|
13875
14077
|
"indexes": [
|
|
13876
|
-
{
|
|
13877
|
-
"name": "payment_instruments_id_idx",
|
|
13878
|
-
"columns": [
|
|
13879
|
-
"id"
|
|
13880
|
-
]
|
|
13881
|
-
},
|
|
13882
14078
|
{
|
|
13883
14079
|
"name": "payment_instruments_slug_context_idx",
|
|
13884
14080
|
"columns": [
|
|
14081
|
+
"tenant_id",
|
|
13885
14082
|
"slug",
|
|
13886
14083
|
"context"
|
|
13887
14084
|
],
|
|
13888
14085
|
"unique": true
|
|
13889
14086
|
},
|
|
13890
14087
|
{
|
|
13891
|
-
"name": "
|
|
14088
|
+
"name": "payment_instruments_tenant_id_created_at_idx",
|
|
14089
|
+
"columns": [
|
|
14090
|
+
"tenant_id",
|
|
14091
|
+
"created_at"
|
|
14092
|
+
]
|
|
14093
|
+
},
|
|
14094
|
+
{
|
|
14095
|
+
"name": "payment_instruments_customer_id_idx",
|
|
13892
14096
|
"columns": [
|
|
13893
|
-
"
|
|
14097
|
+
"customer_id"
|
|
13894
14098
|
]
|
|
13895
14099
|
}
|
|
13896
14100
|
],
|
|
@@ -13949,7 +14153,7 @@
|
|
|
13949
14153
|
"default": []
|
|
13950
14154
|
},
|
|
13951
14155
|
"usdPriceLocked": {
|
|
13952
|
-
"type": "
|
|
14156
|
+
"type": "integer",
|
|
13953
14157
|
"required": false,
|
|
13954
14158
|
"default": 0
|
|
13955
14159
|
},
|
|
@@ -14230,7 +14434,7 @@
|
|
|
14230
14434
|
"collectionExportName": "PaymentIntentCollection",
|
|
14231
14435
|
"schema": {
|
|
14232
14436
|
"tableName": "payment_intents",
|
|
14233
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"payment_intents\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"sku_id\" TEXT DEFAULT '',\n \"offering_ref\" TEXT DEFAULT '',\n \"licensee_email\" TEXT DEFAULT '',\n \"customer_id\" TEXT DEFAULT '',\n \"payment_options\" JSON DEFAULT '[]',\n \"usd_price_locked\"
|
|
14437
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"payment_intents\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"sku_id\" TEXT DEFAULT '',\n \"offering_ref\" TEXT DEFAULT '',\n \"licensee_email\" TEXT DEFAULT '',\n \"customer_id\" TEXT DEFAULT '',\n \"payment_options\" JSON DEFAULT '[]',\n \"usd_price_locked\" INTEGER DEFAULT 0,\n \"price_lock_window_ms\" INTEGER,\n \"price_lock_expires_at\" TIMESTAMP,\n \"status\" TEXT,\n \"idempotency_key\" TEXT DEFAULT '',\n \"paid_option_backend_id\" TEXT DEFAULT '',\n \"payment_id\" TEXT DEFAULT '',\n \"paid_at\" TIMESTAMP,\n \"issued_at\" TIMESTAMP,\n \"expired_at\" TIMESTAMP,\n \"cancelled_at\" TIMESTAMP,\n \"retired_at\" TIMESTAMP,\n \"notes\" TEXT DEFAULT ''\n);",
|
|
14234
14438
|
"columns": {
|
|
14235
14439
|
"id": {
|
|
14236
14440
|
"type": "UUID",
|
|
@@ -14294,7 +14498,7 @@
|
|
|
14294
14498
|
"default": []
|
|
14295
14499
|
},
|
|
14296
14500
|
"usd_price_locked": {
|
|
14297
|
-
"type": "
|
|
14501
|
+
"type": "INTEGER",
|
|
14298
14502
|
"notNull": false,
|
|
14299
14503
|
"unique": false,
|
|
14300
14504
|
"default": 0
|
|
@@ -14365,12 +14569,6 @@
|
|
|
14365
14569
|
}
|
|
14366
14570
|
},
|
|
14367
14571
|
"indexes": [
|
|
14368
|
-
{
|
|
14369
|
-
"name": "payment_intents_id_idx",
|
|
14370
|
-
"columns": [
|
|
14371
|
-
"id"
|
|
14372
|
-
]
|
|
14373
|
-
},
|
|
14374
14572
|
{
|
|
14375
14573
|
"name": "payment_intents_tenant_id_offering_ref_idx",
|
|
14376
14574
|
"columns": [
|
|
@@ -14380,9 +14578,23 @@
|
|
|
14380
14578
|
"idempotency_key"
|
|
14381
14579
|
],
|
|
14382
14580
|
"unique": true
|
|
14581
|
+
},
|
|
14582
|
+
{
|
|
14583
|
+
"name": "payment_intents_slug_context_idx",
|
|
14584
|
+
"columns": [
|
|
14585
|
+
"slug",
|
|
14586
|
+
"context"
|
|
14587
|
+
]
|
|
14588
|
+
},
|
|
14589
|
+
{
|
|
14590
|
+
"name": "payment_intents_tenant_id_created_at_idx",
|
|
14591
|
+
"columns": [
|
|
14592
|
+
"tenant_id",
|
|
14593
|
+
"created_at"
|
|
14594
|
+
]
|
|
14383
14595
|
}
|
|
14384
14596
|
],
|
|
14385
|
-
"version": "
|
|
14597
|
+
"version": "c565aaef"
|
|
14386
14598
|
}
|
|
14387
14599
|
},
|
|
14388
14600
|
"@happyvertical/smrt-commerce:Payout": {
|
|
@@ -14422,17 +14634,17 @@
|
|
|
14422
14634
|
"related": "Vendor"
|
|
14423
14635
|
},
|
|
14424
14636
|
"grossAmount": {
|
|
14425
|
-
"type": "
|
|
14637
|
+
"type": "integer",
|
|
14426
14638
|
"required": false,
|
|
14427
14639
|
"default": 0
|
|
14428
14640
|
},
|
|
14429
14641
|
"operatorFee": {
|
|
14430
|
-
"type": "
|
|
14642
|
+
"type": "integer",
|
|
14431
14643
|
"required": false,
|
|
14432
14644
|
"default": 0
|
|
14433
14645
|
},
|
|
14434
14646
|
"supplierNet": {
|
|
14435
|
-
"type": "
|
|
14647
|
+
"type": "integer",
|
|
14436
14648
|
"required": false,
|
|
14437
14649
|
"default": 0
|
|
14438
14650
|
},
|
|
@@ -14601,14 +14813,19 @@
|
|
|
14601
14813
|
},
|
|
14602
14814
|
"tenantScoped": {
|
|
14603
14815
|
"mode": "optional"
|
|
14604
|
-
}
|
|
14816
|
+
},
|
|
14817
|
+
"conflictColumns": [
|
|
14818
|
+
"tenant_id",
|
|
14819
|
+
"slug",
|
|
14820
|
+
"context"
|
|
14821
|
+
]
|
|
14605
14822
|
},
|
|
14606
14823
|
"extends": "SmrtObject",
|
|
14607
14824
|
"exportName": "Payout",
|
|
14608
14825
|
"collectionExportName": "PayoutCollection",
|
|
14609
14826
|
"schema": {
|
|
14610
14827
|
"tableName": "payouts",
|
|
14611
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"payouts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"payment_id\" TEXT DEFAULT '',\n \"vendor_id\" UUID,\n \"gross_amount\"
|
|
14828
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"payouts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"payment_id\" TEXT DEFAULT '',\n \"vendor_id\" UUID,\n \"gross_amount\" INTEGER DEFAULT 0,\n \"operator_fee\" INTEGER DEFAULT 0,\n \"supplier_net\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT '',\n \"backend_id\" TEXT DEFAULT '',\n \"backend_tx_ref\" TEXT DEFAULT '',\n \"status\" TEXT,\n \"sent_at\" TIMESTAMP,\n \"confirmed_at\" TIMESTAMP,\n \"failed_at\" TIMESTAMP,\n \"failure_reason\" TEXT DEFAULT '',\n \"notes\" TEXT DEFAULT ''\n);",
|
|
14612
14829
|
"columns": {
|
|
14613
14830
|
"id": {
|
|
14614
14831
|
"type": "UUID",
|
|
@@ -14654,19 +14871,19 @@
|
|
|
14654
14871
|
"unique": false
|
|
14655
14872
|
},
|
|
14656
14873
|
"gross_amount": {
|
|
14657
|
-
"type": "
|
|
14874
|
+
"type": "INTEGER",
|
|
14658
14875
|
"notNull": false,
|
|
14659
14876
|
"unique": false,
|
|
14660
14877
|
"default": 0
|
|
14661
14878
|
},
|
|
14662
14879
|
"operator_fee": {
|
|
14663
|
-
"type": "
|
|
14880
|
+
"type": "INTEGER",
|
|
14664
14881
|
"notNull": false,
|
|
14665
14882
|
"unique": false,
|
|
14666
14883
|
"default": 0
|
|
14667
14884
|
},
|
|
14668
14885
|
"supplier_net": {
|
|
14669
|
-
"type": "
|
|
14886
|
+
"type": "INTEGER",
|
|
14670
14887
|
"notNull": false,
|
|
14671
14888
|
"unique": false,
|
|
14672
14889
|
"default": 0
|
|
@@ -14723,28 +14940,30 @@
|
|
|
14723
14940
|
}
|
|
14724
14941
|
},
|
|
14725
14942
|
"indexes": [
|
|
14726
|
-
{
|
|
14727
|
-
"name": "payouts_id_idx",
|
|
14728
|
-
"columns": [
|
|
14729
|
-
"id"
|
|
14730
|
-
]
|
|
14731
|
-
},
|
|
14732
14943
|
{
|
|
14733
14944
|
"name": "payouts_slug_context_idx",
|
|
14734
14945
|
"columns": [
|
|
14946
|
+
"tenant_id",
|
|
14735
14947
|
"slug",
|
|
14736
14948
|
"context"
|
|
14737
14949
|
],
|
|
14738
14950
|
"unique": true
|
|
14739
14951
|
},
|
|
14740
14952
|
{
|
|
14741
|
-
"name": "
|
|
14953
|
+
"name": "payouts_tenant_id_created_at_idx",
|
|
14742
14954
|
"columns": [
|
|
14743
|
-
"tenant_id"
|
|
14955
|
+
"tenant_id",
|
|
14956
|
+
"created_at"
|
|
14957
|
+
]
|
|
14958
|
+
},
|
|
14959
|
+
{
|
|
14960
|
+
"name": "payouts_vendor_id_idx",
|
|
14961
|
+
"columns": [
|
|
14962
|
+
"vendor_id"
|
|
14744
14963
|
]
|
|
14745
14964
|
}
|
|
14746
14965
|
],
|
|
14747
|
-
"version": "
|
|
14966
|
+
"version": "e73fa05b"
|
|
14748
14967
|
}
|
|
14749
14968
|
},
|
|
14750
14969
|
"@happyvertical/smrt-commerce:Vendor": {
|
|
@@ -14784,7 +15003,7 @@
|
|
|
14784
15003
|
"default": 0
|
|
14785
15004
|
},
|
|
14786
15005
|
"minimumOrderAmount": {
|
|
14787
|
-
"type": "
|
|
15006
|
+
"type": "integer",
|
|
14788
15007
|
"required": false,
|
|
14789
15008
|
"default": 0
|
|
14790
15009
|
},
|
|
@@ -14940,14 +15159,19 @@
|
|
|
14940
15159
|
"cli": true,
|
|
14941
15160
|
"tenantScoped": {
|
|
14942
15161
|
"mode": "optional"
|
|
14943
|
-
}
|
|
15162
|
+
},
|
|
15163
|
+
"conflictColumns": [
|
|
15164
|
+
"tenant_id",
|
|
15165
|
+
"slug",
|
|
15166
|
+
"context"
|
|
15167
|
+
]
|
|
14944
15168
|
},
|
|
14945
15169
|
"extends": "SmrtObject",
|
|
14946
15170
|
"exportName": "Vendor",
|
|
14947
15171
|
"collectionExportName": "VendorCollection",
|
|
14948
15172
|
"schema": {
|
|
14949
15173
|
"tableName": "vendors",
|
|
14950
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"vendors\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"profile_id\" UUID,\n \"lead_time_days\" INTEGER DEFAULT 0,\n \"minimum_order_amount\"
|
|
15174
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"vendors\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"profile_id\" UUID,\n \"lead_time_days\" INTEGER DEFAULT 0,\n \"minimum_order_amount\" INTEGER DEFAULT 0,\n \"payment_terms\" TEXT DEFAULT '',\n \"currency\" TEXT DEFAULT 'USD',\n \"default_contact_email\" TEXT DEFAULT '',\n \"default_contact_phone\" TEXT DEFAULT '',\n \"status\" TEXT,\n \"notes\" TEXT DEFAULT '',\n \"payout_addresses\" JSON DEFAULT '{}'\n);",
|
|
14951
15175
|
"columns": {
|
|
14952
15176
|
"id": {
|
|
14953
15177
|
"type": "UUID",
|
|
@@ -14993,7 +15217,7 @@
|
|
|
14993
15217
|
"default": 0
|
|
14994
15218
|
},
|
|
14995
15219
|
"minimum_order_amount": {
|
|
14996
|
-
"type": "
|
|
15220
|
+
"type": "INTEGER",
|
|
14997
15221
|
"notNull": false,
|
|
14998
15222
|
"unique": false,
|
|
14999
15223
|
"default": 0
|
|
@@ -15041,28 +15265,30 @@
|
|
|
15041
15265
|
}
|
|
15042
15266
|
},
|
|
15043
15267
|
"indexes": [
|
|
15044
|
-
{
|
|
15045
|
-
"name": "vendors_id_idx",
|
|
15046
|
-
"columns": [
|
|
15047
|
-
"id"
|
|
15048
|
-
]
|
|
15049
|
-
},
|
|
15050
15268
|
{
|
|
15051
15269
|
"name": "vendors_slug_context_idx",
|
|
15052
15270
|
"columns": [
|
|
15271
|
+
"tenant_id",
|
|
15053
15272
|
"slug",
|
|
15054
15273
|
"context"
|
|
15055
15274
|
],
|
|
15056
15275
|
"unique": true
|
|
15057
15276
|
},
|
|
15058
15277
|
{
|
|
15059
|
-
"name": "
|
|
15278
|
+
"name": "vendors_tenant_id_created_at_idx",
|
|
15279
|
+
"columns": [
|
|
15280
|
+
"tenant_id",
|
|
15281
|
+
"created_at"
|
|
15282
|
+
]
|
|
15283
|
+
},
|
|
15284
|
+
{
|
|
15285
|
+
"name": "vendors_profile_id_idx",
|
|
15060
15286
|
"columns": [
|
|
15061
|
-
"
|
|
15287
|
+
"profile_id"
|
|
15062
15288
|
]
|
|
15063
15289
|
}
|
|
15064
15290
|
],
|
|
15065
|
-
"version": "
|
|
15291
|
+
"version": "1dc2b65e"
|
|
15066
15292
|
}
|
|
15067
15293
|
}
|
|
15068
15294
|
},
|