1 {
2 "namespaces": [
3 "public"
4 ],
5 "name": "public",
6 "tables": [
7 {
8 "columns": {
9 "id": {
10 "name": "id",
11 "type": "text",
12 "unsigned": false,
13 "autoincrement": false,
14 "primary": false,
15 "nullable": false,
16 "mappedType": "text"
17 },
18 "customer_id": {
19 "name": "customer_id",
20 "type": "text",
21 "unsigned": false,
22 "autoincrement": false,
23 "primary": false,
24 "nullable": true,
25 "mappedType": "text"
26 },
27 "company": {
28 "name": "company",
29 "type": "text",
30 "unsigned": false,
31 "autoincrement": false,
32 "primary": false,
33 "nullable": true,
34 "mappedType": "text"
35 },
36 "first_name": {
37 "name": "first_name",
38 "type": "text",
39 "unsigned": false,
40 "autoincrement": false,
41 "primary": false,
42 "nullable": true,
43 "mappedType": "text"
44 },
45 "last_name": {
46 "name": "last_name",
47 "type": "text",
48 "unsigned": false,
49 "autoincrement": false,
50 "primary": false,
51 "nullable": true,
52 "mappedType": "text"
53 },
54 "address_1": {
55 "name": "address_1",
56 "type": "text",
57 "unsigned": false,
58 "autoincrement": false,
59 "primary": false,
60 "nullable": true,
61 "mappedType": "text"
62 },
63 "address_2": {
64 "name": "address_2",
65 "type": "text",
66 "unsigned": false,
67 "autoincrement": false,
68 "primary": false,
69 "nullable": true,
70 "mappedType": "text"
71 },
72 "city": {
73 "name": "city",
74 "type": "text",
75 "unsigned": false,
76 "autoincrement": false,
77 "primary": false,
78 "nullable": true,
79 "mappedType": "text"
80 },
81 "country_code": {
82 "name": "country_code",
83 "type": "text",
84 "unsigned": false,
85 "autoincrement": false,
86 "primary": false,
87 "nullable": true,
88 "mappedType": "text"
89 },
90 "province": {
91 "name": "province",
92 "type": "text",
93 "unsigned": false,
94 "autoincrement": false,
95 "primary": false,
96 "nullable": true,
97 "mappedType": "text"
98 },
99 "postal_code": {
100 "name": "postal_code",
101 "type": "text",
102 "unsigned": false,
103 "autoincrement": false,
104 "primary": false,
105 "nullable": true,
106 "mappedType": "text"
107 },
108 "phone": {
109 "name": "phone",
110 "type": "text",
111 "unsigned": false,
112 "autoincrement": false,
113 "primary": false,
114 "nullable": true,
115 "mappedType": "text"
116 },
117 "metadata": {
118 "name": "metadata",
119 "type": "jsonb",
120 "unsigned": false,
121 "autoincrement": false,
122 "primary": false,
123 "nullable": true,
124 "mappedType": "json"
125 },
126 "created_at": {
127 "name": "created_at",
128 "type": "timestamptz",
129 "unsigned": false,
130 "autoincrement": false,
131 "primary": false,
132 "nullable": false,
133 "length": 6,
134 "default": "now()",
135 "mappedType": "datetime"
136 },
137 "updated_at": {
138 "name": "updated_at",
139 "type": "timestamptz",
140 "unsigned": false,
141 "autoincrement": false,
142 "primary": false,
143 "nullable": false,
144 "length": 6,
145 "default": "now()",
146 "mappedType": "datetime"
147 },
148 "deleted_at": {
149 "name": "deleted_at",
150 "type": "timestamptz",
151 "unsigned": false,
152 "autoincrement": false,
153 "primary": false,
154 "nullable": true,
155 "length": 6,
156 "mappedType": "datetime"
157 }
158 },
159 "name": "cart_address",
160 "schema": "public",
161 "indexes": [
162 {
163 "keyName": "IDX_cart_address_deleted_at",
164 "columnNames": [],
165 "composite": false,
166 "constraint": false,
167 "primary": false,
168 "unique": false,
169 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_address_deleted_at\" ON \"cart_address\" (\"deleted_at\") WHERE deleted_at IS NULL"
170 },
171 {
172 "keyName": "cart_address_pkey",
173 "columnNames": [
174 "id"
175 ],
176 "composite": false,
177 "constraint": true,
178 "primary": true,
179 "unique": true
180 }
181 ],
182 "checks": [],
183 "foreignKeys": {},
184 "nativeEnums": {}
185 },
186 {
187 "columns": {
188 "id": {
189 "name": "id",
190 "type": "text",
191 "unsigned": false,
192 "autoincrement": false,
193 "primary": false,
194 "nullable": false,
195 "mappedType": "text"
196 },
197 "region_id": {
198 "name": "region_id",
199 "type": "text",
200 "unsigned": false,
201 "autoincrement": false,
202 "primary": false,
203 "nullable": true,
204 "mappedType": "text"
205 },
206 "customer_id": {
207 "name": "customer_id",
208 "type": "text",
209 "unsigned": false,
210 "autoincrement": false,
211 "primary": false,
212 "nullable": true,
213 "mappedType": "text"
214 },
215 "sales_channel_id": {
216 "name": "sales_channel_id",
217 "type": "text",
218 "unsigned": false,
219 "autoincrement": false,
220 "primary": false,
221 "nullable": true,
222 "mappedType": "text"
223 },
224 "email": {
225 "name": "email",
226 "type": "text",
227 "unsigned": false,
228 "autoincrement": false,
229 "primary": false,
230 "nullable": true,
231 "mappedType": "text"
232 },
233 "currency_code": {
234 "name": "currency_code",
235 "type": "text",
236 "unsigned": false,
237 "autoincrement": false,
238 "primary": false,
239 "nullable": false,
240 "mappedType": "text"
241 },
242 "locale": {
243 "name": "locale",
244 "type": "text",
245 "unsigned": false,
246 "autoincrement": false,
247 "primary": false,
248 "nullable": true,
249 "mappedType": "text"
250 },
251 "metadata": {
252 "name": "metadata",
253 "type": "jsonb",
254 "unsigned": false,
255 "autoincrement": false,
256 "primary": false,
257 "nullable": true,
258 "mappedType": "json"
259 },
260 "completed_at": {
261 "name": "completed_at",
262 "type": "timestamptz",
263 "unsigned": false,
264 "autoincrement": false,
265 "primary": false,
266 "nullable": true,
267 "length": 6,
268 "mappedType": "datetime"
269 },
270 "shipping_address_id": {
271 "name": "shipping_address_id",
272 "type": "text",
273 "unsigned": false,
274 "autoincrement": false,
275 "primary": false,
276 "nullable": true,
277 "mappedType": "text"
278 },
279 "billing_address_id": {
280 "name": "billing_address_id",
281 "type": "text",
282 "unsigned": false,
283 "autoincrement": false,
284 "primary": false,
285 "nullable": true,
286 "mappedType": "text"
287 },
288 "created_at": {
289 "name": "created_at",
290 "type": "timestamptz",
291 "unsigned": false,
292 "autoincrement": false,
293 "primary": false,
294 "nullable": false,
295 "length": 6,
296 "default": "now()",
297 "mappedType": "datetime"
298 },
299 "updated_at": {
300 "name": "updated_at",
301 "type": "timestamptz",
302 "unsigned": false,
303 "autoincrement": false,
304 "primary": false,
305 "nullable": false,
306 "length": 6,
307 "default": "now()",
308 "mappedType": "datetime"
309 },
310 "deleted_at": {
311 "name": "deleted_at",
312 "type": "timestamptz",
313 "unsigned": false,
314 "autoincrement": false,
315 "primary": false,
316 "nullable": true,
317 "length": 6,
318 "mappedType": "datetime"
319 }
320 },
321 "name": "cart",
322 "schema": "public",
323 "indexes": [
324 {
325 "keyName": "IDX_cart_deleted_at",
326 "columnNames": [],
327 "composite": false,
328 "constraint": false,
329 "primary": false,
330 "unique": false,
331 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_deleted_at\" ON \"cart\" (\"deleted_at\") WHERE deleted_at IS NULL"
332 },
333 {
334 "keyName": "IDX_cart_region_id",
335 "columnNames": [],
336 "composite": false,
337 "constraint": false,
338 "primary": false,
339 "unique": false,
340 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_region_id\" ON \"cart\" (\"region_id\") WHERE deleted_at IS NULL AND region_id IS NOT NULL"
341 },
342 {
343 "keyName": "IDX_cart_customer_id",
344 "columnNames": [],
345 "composite": false,
346 "constraint": false,
347 "primary": false,
348 "unique": false,
349 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_customer_id\" ON \"cart\" (\"customer_id\") WHERE deleted_at IS NULL AND customer_id IS NOT NULL"
350 },
351 {
352 "keyName": "IDX_cart_sales_channel_id",
353 "columnNames": [],
354 "composite": false,
355 "constraint": false,
356 "primary": false,
357 "unique": false,
358 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_sales_channel_id\" ON \"cart\" (\"sales_channel_id\") WHERE deleted_at IS NULL AND sales_channel_id IS NOT NULL"
359 },
360 {
361 "keyName": "IDX_cart_curency_code",
362 "columnNames": [],
363 "composite": false,
364 "constraint": false,
365 "primary": false,
366 "unique": false,
367 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_curency_code\" ON \"cart\" (\"currency_code\") WHERE deleted_at IS NULL"
368 },
369 {
370 "keyName": "IDX_cart_shipping_address_id",
371 "columnNames": [],
372 "composite": false,
373 "constraint": false,
374 "primary": false,
375 "unique": false,
376 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_shipping_address_id\" ON \"cart\" (\"shipping_address_id\") WHERE deleted_at IS NULL AND shipping_address_id IS NOT NULL"
377 },
378 {
379 "keyName": "IDX_cart_billing_address_id",
380 "columnNames": [],
381 "composite": false,
382 "constraint": false,
383 "primary": false,
384 "unique": false,
385 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_billing_address_id\" ON \"cart\" (\"billing_address_id\") WHERE deleted_at IS NULL AND billing_address_id IS NOT NULL"
386 },
387 {
388 "keyName": "cart_pkey",
389 "columnNames": [
390 "id"
391 ],
392 "composite": false,
393 "constraint": true,
394 "primary": true,
395 "unique": true
396 }
397 ],
398 "checks": [],
399 "foreignKeys": {
400 "cart_shipping_address_id_foreign": {
401 "constraintName": "cart_shipping_address_id_foreign",
402 "columnNames": [
403 "shipping_address_id"
404 ],
405 "localTableName": "public.cart",
406 "referencedColumnNames": [
407 "id"
408 ],
409 "referencedTableName": "public.cart_address",
410 "deleteRule": "set null",
411 "updateRule": "cascade"
412 },
413 "cart_billing_address_id_foreign": {
414 "constraintName": "cart_billing_address_id_foreign",
415 "columnNames": [
416 "billing_address_id"
417 ],
418 "localTableName": "public.cart",
419 "referencedColumnNames": [
420 "id"
421 ],
422 "referencedTableName": "public.cart_address",
423 "deleteRule": "set null",
424 "updateRule": "cascade"
425 }
426 },
427 "nativeEnums": {}
428 },
429 {
430 "columns": {
431 "id": {
432 "name": "id",
433 "type": "text",
434 "unsigned": false,
435 "autoincrement": false,
436 "primary": false,
437 "nullable": false,
438 "mappedType": "text"
439 },
440 "cart_id": {
441 "name": "cart_id",
442 "type": "text",
443 "unsigned": false,
444 "autoincrement": false,
445 "primary": false,
446 "nullable": false,
447 "mappedType": "text"
448 },
449 "reference": {
450 "name": "reference",
451 "type": "text",
452 "unsigned": false,
453 "autoincrement": false,
454 "primary": false,
455 "nullable": true,
456 "mappedType": "text"
457 },
458 "reference_id": {
459 "name": "reference_id",
460 "type": "text",
461 "unsigned": false,
462 "autoincrement": false,
463 "primary": false,
464 "nullable": true,
465 "mappedType": "text"
466 },
467 "amount": {
468 "name": "amount",
469 "type": "numeric",
470 "unsigned": false,
471 "autoincrement": false,
472 "primary": false,
473 "nullable": false,
474 "mappedType": "decimal"
475 },
476 "raw_amount": {
477 "name": "raw_amount",
478 "type": "jsonb",
479 "unsigned": false,
480 "autoincrement": false,
481 "primary": false,
482 "nullable": false,
483 "mappedType": "json"
484 },
485 "metadata": {
486 "name": "metadata",
487 "type": "jsonb",
488 "unsigned": false,
489 "autoincrement": false,
490 "primary": false,
491 "nullable": true,
492 "mappedType": "json"
493 },
494 "created_at": {
495 "name": "created_at",
496 "type": "timestamptz",
497 "unsigned": false,
498 "autoincrement": false,
499 "primary": false,
500 "nullable": false,
501 "length": 6,
502 "default": "now()",
503 "mappedType": "datetime"
504 },
505 "updated_at": {
506 "name": "updated_at",
507 "type": "timestamptz",
508 "unsigned": false,
509 "autoincrement": false,
510 "primary": false,
511 "nullable": false,
512 "length": 6,
513 "default": "now()",
514 "mappedType": "datetime"
515 },
516 "deleted_at": {
517 "name": "deleted_at",
518 "type": "timestamptz",
519 "unsigned": false,
520 "autoincrement": false,
521 "primary": false,
522 "nullable": true,
523 "length": 6,
524 "mappedType": "datetime"
525 }
526 },
527 "name": "credit_line",
528 "schema": "public",
529 "indexes": [
530 {
531 "keyName": "IDX_credit_line_cart_id",
532 "columnNames": [],
533 "composite": false,
534 "constraint": false,
535 "primary": false,
536 "unique": false,
537 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_credit_line_cart_id\" ON \"credit_line\" (\"cart_id\") WHERE deleted_at IS NULL"
538 },
539 {
540 "keyName": "IDX_credit_line_deleted_at",
541 "columnNames": [],
542 "composite": false,
543 "constraint": false,
544 "primary": false,
545 "unique": false,
546 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_credit_line_deleted_at\" ON \"credit_line\" (\"deleted_at\") WHERE deleted_at IS NULL"
547 },
548 {
549 "keyName": "IDX_cart_credit_line_reference_reference_id",
550 "columnNames": [],
551 "composite": false,
552 "constraint": false,
553 "primary": false,
554 "unique": false,
555 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_credit_line_reference_reference_id\" ON \"credit_line\" (\"reference\", \"reference_id\") WHERE deleted_at IS NOT NULL"
556 },
557 {
558 "keyName": "credit_line_pkey",
559 "columnNames": [
560 "id"
561 ],
562 "composite": false,
563 "constraint": true,
564 "primary": true,
565 "unique": true
566 }
567 ],
568 "checks": [],
569 "foreignKeys": {
570 "credit_line_cart_id_foreign": {
571 "constraintName": "credit_line_cart_id_foreign",
572 "columnNames": [
573 "cart_id"
574 ],
575 "localTableName": "public.credit_line",
576 "referencedColumnNames": [
577 "id"
578 ],
579 "referencedTableName": "public.cart",
580 "updateRule": "cascade"
581 }
582 },
583 "nativeEnums": {}
584 },
585 {
586 "columns": {
587 "id": {
588 "name": "id",
589 "type": "text",
590 "unsigned": false,
591 "autoincrement": false,
592 "primary": false,
593 "nullable": false,
594 "mappedType": "text"
595 },
596 "title": {
597 "name": "title",
598 "type": "text",
599 "unsigned": false,
600 "autoincrement": false,
601 "primary": false,
602 "nullable": false,
603 "mappedType": "text"
604 },
605 "subtitle": {
606 "name": "subtitle",
607 "type": "text",
608 "unsigned": false,
609 "autoincrement": false,
610 "primary": false,
611 "nullable": true,
612 "mappedType": "text"
613 },
614 "thumbnail": {
615 "name": "thumbnail",
616 "type": "text",
617 "unsigned": false,
618 "autoincrement": false,
619 "primary": false,
620 "nullable": true,
621 "mappedType": "text"
622 },
623 "quantity": {
624 "name": "quantity",
625 "type": "integer",
626 "unsigned": false,
627 "autoincrement": false,
628 "primary": false,
629 "nullable": false,
630 "mappedType": "integer"
631 },
632 "variant_id": {
633 "name": "variant_id",
634 "type": "text",
635 "unsigned": false,
636 "autoincrement": false,
637 "primary": false,
638 "nullable": true,
639 "mappedType": "text"
640 },
641 "product_id": {
642 "name": "product_id",
643 "type": "text",
644 "unsigned": false,
645 "autoincrement": false,
646 "primary": false,
647 "nullable": true,
648 "mappedType": "text"
649 },
650 "product_title": {
651 "name": "product_title",
652 "type": "text",
653 "unsigned": false,
654 "autoincrement": false,
655 "primary": false,
656 "nullable": true,
657 "mappedType": "text"
658 },
659 "product_description": {
660 "name": "product_description",
661 "type": "text",
662 "unsigned": false,
663 "autoincrement": false,
664 "primary": false,
665 "nullable": true,
666 "mappedType": "text"
667 },
668 "product_subtitle": {
669 "name": "product_subtitle",
670 "type": "text",
671 "unsigned": false,
672 "autoincrement": false,
673 "primary": false,
674 "nullable": true,
675 "mappedType": "text"
676 },
677 "product_type": {
678 "name": "product_type",
679 "type": "text",
680 "unsigned": false,
681 "autoincrement": false,
682 "primary": false,
683 "nullable": true,
684 "mappedType": "text"
685 },
686 "product_type_id": {
687 "name": "product_type_id",
688 "type": "text",
689 "unsigned": false,
690 "autoincrement": false,
691 "primary": false,
692 "nullable": true,
693 "mappedType": "text"
694 },
695 "product_collection": {
696 "name": "product_collection",
697 "type": "text",
698 "unsigned": false,
699 "autoincrement": false,
700 "primary": false,
701 "nullable": true,
702 "mappedType": "text"
703 },
704 "product_handle": {
705 "name": "product_handle",
706 "type": "text",
707 "unsigned": false,
708 "autoincrement": false,
709 "primary": false,
710 "nullable": true,
711 "mappedType": "text"
712 },
713 "variant_sku": {
714 "name": "variant_sku",
715 "type": "text",
716 "unsigned": false,
717 "autoincrement": false,
718 "primary": false,
719 "nullable": true,
720 "mappedType": "text"
721 },
722 "variant_barcode": {
723 "name": "variant_barcode",
724 "type": "text",
725 "unsigned": false,
726 "autoincrement": false,
727 "primary": false,
728 "nullable": true,
729 "mappedType": "text"
730 },
731 "variant_title": {
732 "name": "variant_title",
733 "type": "text",
734 "unsigned": false,
735 "autoincrement": false,
736 "primary": false,
737 "nullable": true,
738 "mappedType": "text"
739 },
740 "variant_option_values": {
741 "name": "variant_option_values",
742 "type": "jsonb",
743 "unsigned": false,
744 "autoincrement": false,
745 "primary": false,
746 "nullable": true,
747 "mappedType": "json"
748 },
749 "requires_shipping": {
750 "name": "requires_shipping",
751 "type": "boolean",
752 "unsigned": false,
753 "autoincrement": false,
754 "primary": false,
755 "nullable": false,
756 "default": "true",
757 "mappedType": "boolean"
758 },
759 "is_discountable": {
760 "name": "is_discountable",
761 "type": "boolean",
762 "unsigned": false,
763 "autoincrement": false,
764 "primary": false,
765 "nullable": false,
766 "default": "true",
767 "mappedType": "boolean"
768 },
769 "is_giftcard": {
770 "name": "is_giftcard",
771 "type": "boolean",
772 "unsigned": false,
773 "autoincrement": false,
774 "primary": false,
775 "nullable": false,
776 "default": "false",
777 "mappedType": "boolean"
778 },
779 "is_tax_inclusive": {
780 "name": "is_tax_inclusive",
781 "type": "boolean",
782 "unsigned": false,
783 "autoincrement": false,
784 "primary": false,
785 "nullable": false,
786 "default": "false",
787 "mappedType": "boolean"
788 },
789 "is_custom_price": {
790 "name": "is_custom_price",
791 "type": "boolean",
792 "unsigned": false,
793 "autoincrement": false,
794 "primary": false,
795 "nullable": false,
796 "default": "false",
797 "mappedType": "boolean"
798 },
799 "compare_at_unit_price": {
800 "name": "compare_at_unit_price",
801 "type": "numeric",
802 "unsigned": false,
803 "autoincrement": false,
804 "primary": false,
805 "nullable": true,
806 "mappedType": "decimal"
807 },
808 "unit_price": {
809 "name": "unit_price",
810 "type": "numeric",
811 "unsigned": false,
812 "autoincrement": false,
813 "primary": false,
814 "nullable": false,
815 "mappedType": "decimal"
816 },
817 "metadata": {
818 "name": "metadata",
819 "type": "jsonb",
820 "unsigned": false,
821 "autoincrement": false,
822 "primary": false,
823 "nullable": true,
824 "mappedType": "json"
825 },
826 "cart_id": {
827 "name": "cart_id",
828 "type": "text",
829 "unsigned": false,
830 "autoincrement": false,
831 "primary": false,
832 "nullable": false,
833 "mappedType": "text"
834 },
835 "raw_compare_at_unit_price": {
836 "name": "raw_compare_at_unit_price",
837 "type": "jsonb",
838 "unsigned": false,
839 "autoincrement": false,
840 "primary": false,
841 "nullable": true,
842 "mappedType": "json"
843 },
844 "raw_unit_price": {
845 "name": "raw_unit_price",
846 "type": "jsonb",
847 "unsigned": false,
848 "autoincrement": false,
849 "primary": false,
850 "nullable": false,
851 "mappedType": "json"
852 },
853 "created_at": {
854 "name": "created_at",
855 "type": "timestamptz",
856 "unsigned": false,
857 "autoincrement": false,
858 "primary": false,
859 "nullable": false,
860 "length": 6,
861 "default": "now()",
862 "mappedType": "datetime"
863 },
864 "updated_at": {
865 "name": "updated_at",
866 "type": "timestamptz",
867 "unsigned": false,
868 "autoincrement": false,
869 "primary": false,
870 "nullable": false,
871 "length": 6,
872 "default": "now()",
873 "mappedType": "datetime"
874 },
875 "deleted_at": {
876 "name": "deleted_at",
877 "type": "timestamptz",
878 "unsigned": false,
879 "autoincrement": false,
880 "primary": false,
881 "nullable": true,
882 "length": 6,
883 "mappedType": "datetime"
884 }
885 },
886 "name": "cart_line_item",
887 "schema": "public",
888 "indexes": [
889 {
890 "keyName": "IDX_cart_line_item_cart_id",
891 "columnNames": [],
892 "composite": false,
893 "constraint": false,
894 "primary": false,
895 "unique": false,
896 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_line_item_cart_id\" ON \"cart_line_item\" (\"cart_id\") WHERE deleted_at IS NULL"
897 },
898 {
899 "keyName": "IDX_cart_line_item_deleted_at",
900 "columnNames": [],
901 "composite": false,
902 "constraint": false,
903 "primary": false,
904 "unique": false,
905 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_line_item_deleted_at\" ON \"cart_line_item\" (\"deleted_at\") WHERE deleted_at IS NULL"
906 },
907 {
908 "keyName": "IDX_line_item_variant_id",
909 "columnNames": [],
910 "composite": false,
911 "constraint": false,
912 "primary": false,
913 "unique": false,
914 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_line_item_variant_id\" ON \"cart_line_item\" (\"variant_id\") WHERE deleted_at IS NULL AND variant_id IS NOT NULL"
915 },
916 {
917 "keyName": "IDX_line_item_product_id",
918 "columnNames": [],
919 "composite": false,
920 "constraint": false,
921 "primary": false,
922 "unique": false,
923 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_line_item_product_id\" ON \"cart_line_item\" (\"product_id\") WHERE deleted_at IS NULL AND product_id IS NOT NULL"
924 },
925 {
926 "keyName": "IDX_line_item_product_type_id",
927 "columnNames": [],
928 "composite": false,
929 "constraint": false,
930 "primary": false,
931 "unique": false,
932 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_line_item_product_type_id\" ON \"cart_line_item\" (\"product_type_id\") WHERE deleted_at IS NULL AND product_type_id IS NOT NULL"
933 },
934 {
935 "keyName": "cart_line_item_pkey",
936 "columnNames": [
937 "id"
938 ],
939 "composite": false,
940 "constraint": true,
941 "primary": true,
942 "unique": true
943 }
944 ],
945 "checks": [],
946 "foreignKeys": {
947 "cart_line_item_cart_id_foreign": {
948 "constraintName": "cart_line_item_cart_id_foreign",
949 "columnNames": [
950 "cart_id"
951 ],
952 "localTableName": "public.cart_line_item",
953 "referencedColumnNames": [
954 "id"
955 ],
956 "referencedTableName": "public.cart",
957 "deleteRule": "cascade",
958 "updateRule": "cascade"
959 }
960 },
961 "nativeEnums": {}
962 },
963 {
964 "columns": {
965 "id": {
966 "name": "id",
967 "type": "text",
968 "unsigned": false,
969 "autoincrement": false,
970 "primary": false,
971 "nullable": false,
972 "mappedType": "text"
973 },
974 "description": {
975 "name": "description",
976 "type": "text",
977 "unsigned": false,
978 "autoincrement": false,
979 "primary": false,
980 "nullable": true,
981 "mappedType": "text"
982 },
983 "code": {
984 "name": "code",
985 "type": "text",
986 "unsigned": false,
987 "autoincrement": false,
988 "primary": false,
989 "nullable": true,
990 "mappedType": "text"
991 },
992 "amount": {
993 "name": "amount",
994 "type": "numeric",
995 "unsigned": false,
996 "autoincrement": false,
997 "primary": false,
998 "nullable": false,
999 "mappedType": "decimal"
1000 },
1001 "is_tax_inclusive": {
1002 "name": "is_tax_inclusive",
1003 "type": "boolean",
1004 "unsigned": false,
1005 "autoincrement": false,
1006 "primary": false,
1007 "nullable": false,
1008 "default": "false",
1009 "mappedType": "boolean"
1010 },
1011 "provider_id": {
1012 "name": "provider_id",
1013 "type": "text",
1014 "unsigned": false,
1015 "autoincrement": false,
1016 "primary": false,
1017 "nullable": true,
1018 "mappedType": "text"
1019 },
1020 "promotion_id": {
1021 "name": "promotion_id",
1022 "type": "text",
1023 "unsigned": false,
1024 "autoincrement": false,
1025 "primary": false,
1026 "nullable": true,
1027 "mappedType": "text"
1028 },
1029 "metadata": {
1030 "name": "metadata",
1031 "type": "jsonb",
1032 "unsigned": false,
1033 "autoincrement": false,
1034 "primary": false,
1035 "nullable": true,
1036 "mappedType": "json"
1037 },
1038 "item_id": {
1039 "name": "item_id",
1040 "type": "text",
1041 "unsigned": false,
1042 "autoincrement": false,
1043 "primary": false,
1044 "nullable": false,
1045 "mappedType": "text"
1046 },
1047 "raw_amount": {
1048 "name": "raw_amount",
1049 "type": "jsonb",
1050 "unsigned": false,
1051 "autoincrement": false,
1052 "primary": false,
1053 "nullable": false,
1054 "mappedType": "json"
1055 },
1056 "created_at": {
1057 "name": "created_at",
1058 "type": "timestamptz",
1059 "unsigned": false,
1060 "autoincrement": false,
1061 "primary": false,
1062 "nullable": false,
1063 "length": 6,
1064 "default": "now()",
1065 "mappedType": "datetime"
1066 },
1067 "updated_at": {
1068 "name": "updated_at",
1069 "type": "timestamptz",
1070 "unsigned": false,
1071 "autoincrement": false,
1072 "primary": false,
1073 "nullable": false,
1074 "length": 6,
1075 "default": "now()",
1076 "mappedType": "datetime"
1077 },
1078 "deleted_at": {
1079 "name": "deleted_at",
1080 "type": "timestamptz",
1081 "unsigned": false,
1082 "autoincrement": false,
1083 "primary": false,
1084 "nullable": true,
1085 "length": 6,
1086 "mappedType": "datetime"
1087 }
1088 },
1089 "name": "cart_line_item_adjustment",
1090 "schema": "public",
1091 "indexes": [
1092 {
1093 "keyName": "IDX_cart_line_item_adjustment_item_id",
1094 "columnNames": [],
1095 "composite": false,
1096 "constraint": false,
1097 "primary": false,
1098 "unique": false,
1099 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_line_item_adjustment_item_id\" ON \"cart_line_item_adjustment\" (\"item_id\") WHERE deleted_at IS NULL"
1100 },
1101 {
1102 "keyName": "IDX_cart_line_item_adjustment_deleted_at",
1103 "columnNames": [],
1104 "composite": false,
1105 "constraint": false,
1106 "primary": false,
1107 "unique": false,
1108 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_line_item_adjustment_deleted_at\" ON \"cart_line_item_adjustment\" (\"deleted_at\") WHERE deleted_at IS NULL"
1109 },
1110 {
1111 "keyName": "IDX_line_item_adjustment_promotion_id",
1112 "columnNames": [],
1113 "composite": false,
1114 "constraint": false,
1115 "primary": false,
1116 "unique": false,
1117 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_line_item_adjustment_promotion_id\" ON \"cart_line_item_adjustment\" (\"promotion_id\") WHERE deleted_at IS NULL AND promotion_id IS NOT NULL"
1118 },
1119 {
1120 "keyName": "cart_line_item_adjustment_pkey",
1121 "columnNames": [
1122 "id"
1123 ],
1124 "composite": false,
1125 "constraint": true,
1126 "primary": true,
1127 "unique": true
1128 }
1129 ],
1130 "checks": [
1131 {
1132 "name": "cart_line_item_adjustment_check",
1133 "expression": "amount >= 0",
1134 "definition": "check ((amount >= 0))"
1135 }
1136 ],
1137 "foreignKeys": {
1138 "cart_line_item_adjustment_item_id_foreign": {
1139 "constraintName": "cart_line_item_adjustment_item_id_foreign",
1140 "columnNames": [
1141 "item_id"
1142 ],
1143 "localTableName": "public.cart_line_item_adjustment",
1144 "referencedColumnNames": [
1145 "id"
1146 ],
1147 "referencedTableName": "public.cart_line_item",
1148 "deleteRule": "cascade",
1149 "updateRule": "cascade"
1150 }
1151 },
1152 "nativeEnums": {}
1153 },
1154 {
1155 "columns": {
1156 "id": {
1157 "name": "id",
1158 "type": "text",
1159 "unsigned": false,
1160 "autoincrement": false,
1161 "primary": false,
1162 "nullable": false,
1163 "mappedType": "text"
1164 },
1165 "description": {
1166 "name": "description",
1167 "type": "text",
1168 "unsigned": false,
1169 "autoincrement": false,
1170 "primary": false,
1171 "nullable": true,
1172 "mappedType": "text"
1173 },
1174 "code": {
1175 "name": "code",
1176 "type": "text",
1177 "unsigned": false,
1178 "autoincrement": false,
1179 "primary": false,
1180 "nullable": false,
1181 "mappedType": "text"
1182 },
1183 "rate": {
1184 "name": "rate",
1185 "type": "real",
1186 "unsigned": false,
1187 "autoincrement": false,
1188 "primary": false,
1189 "nullable": false,
1190 "mappedType": "float"
1191 },
1192 "provider_id": {
1193 "name": "provider_id",
1194 "type": "text",
1195 "unsigned": false,
1196 "autoincrement": false,
1197 "primary": false,
1198 "nullable": true,
1199 "mappedType": "text"
1200 },
1201 "metadata": {
1202 "name": "metadata",
1203 "type": "jsonb",
1204 "unsigned": false,
1205 "autoincrement": false,
1206 "primary": false,
1207 "nullable": true,
1208 "mappedType": "json"
1209 },
1210 "tax_rate_id": {
1211 "name": "tax_rate_id",
1212 "type": "text",
1213 "unsigned": false,
1214 "autoincrement": false,
1215 "primary": false,
1216 "nullable": true,
1217 "mappedType": "text"
1218 },
1219 "item_id": {
1220 "name": "item_id",
1221 "type": "text",
1222 "unsigned": false,
1223 "autoincrement": false,
1224 "primary": false,
1225 "nullable": false,
1226 "mappedType": "text"
1227 },
1228 "created_at": {
1229 "name": "created_at",
1230 "type": "timestamptz",
1231 "unsigned": false,
1232 "autoincrement": false,
1233 "primary": false,
1234 "nullable": false,
1235 "length": 6,
1236 "default": "now()",
1237 "mappedType": "datetime"
1238 },
1239 "updated_at": {
1240 "name": "updated_at",
1241 "type": "timestamptz",
1242 "unsigned": false,
1243 "autoincrement": false,
1244 "primary": false,
1245 "nullable": false,
1246 "length": 6,
1247 "default": "now()",
1248 "mappedType": "datetime"
1249 },
1250 "deleted_at": {
1251 "name": "deleted_at",
1252 "type": "timestamptz",
1253 "unsigned": false,
1254 "autoincrement": false,
1255 "primary": false,
1256 "nullable": true,
1257 "length": 6,
1258 "mappedType": "datetime"
1259 }
1260 },
1261 "name": "cart_line_item_tax_line",
1262 "schema": "public",
1263 "indexes": [
1264 {
1265 "keyName": "IDX_cart_line_item_tax_line_item_id",
1266 "columnNames": [],
1267 "composite": false,
1268 "constraint": false,
1269 "primary": false,
1270 "unique": false,
1271 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_line_item_tax_line_item_id\" ON \"cart_line_item_tax_line\" (\"item_id\") WHERE deleted_at IS NULL"
1272 },
1273 {
1274 "keyName": "IDX_cart_line_item_tax_line_deleted_at",
1275 "columnNames": [],
1276 "composite": false,
1277 "constraint": false,
1278 "primary": false,
1279 "unique": false,
1280 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_line_item_tax_line_deleted_at\" ON \"cart_line_item_tax_line\" (\"deleted_at\") WHERE deleted_at IS NULL"
1281 },
1282 {
1283 "keyName": "IDX_line_item_tax_line_tax_rate_id",
1284 "columnNames": [],
1285 "composite": false,
1286 "constraint": false,
1287 "primary": false,
1288 "unique": false,
1289 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_line_item_tax_line_tax_rate_id\" ON \"cart_line_item_tax_line\" (\"tax_rate_id\") WHERE deleted_at IS NULL AND tax_rate_id IS NOT NULL"
1290 },
1291 {
1292 "keyName": "cart_line_item_tax_line_pkey",
1293 "columnNames": [
1294 "id"
1295 ],
1296 "composite": false,
1297 "constraint": true,
1298 "primary": true,
1299 "unique": true
1300 }
1301 ],
1302 "checks": [],
1303 "foreignKeys": {
1304 "cart_line_item_tax_line_item_id_foreign": {
1305 "constraintName": "cart_line_item_tax_line_item_id_foreign",
1306 "columnNames": [
1307 "item_id"
1308 ],
1309 "localTableName": "public.cart_line_item_tax_line",
1310 "referencedColumnNames": [
1311 "id"
1312 ],
1313 "referencedTableName": "public.cart_line_item",
1314 "deleteRule": "cascade",
1315 "updateRule": "cascade"
1316 }
1317 },
1318 "nativeEnums": {}
1319 },
1320 {
1321 "columns": {
1322 "id": {
1323 "name": "id",
1324 "type": "text",
1325 "unsigned": false,
1326 "autoincrement": false,
1327 "primary": false,
1328 "nullable": false,
1329 "mappedType": "text"
1330 },
1331 "name": {
1332 "name": "name",
1333 "type": "text",
1334 "unsigned": false,
1335 "autoincrement": false,
1336 "primary": false,
1337 "nullable": false,
1338 "mappedType": "text"
1339 },
1340 "description": {
1341 "name": "description",
1342 "type": "jsonb",
1343 "unsigned": false,
1344 "autoincrement": false,
1345 "primary": false,
1346 "nullable": true,
1347 "mappedType": "json"
1348 },
1349 "amount": {
1350 "name": "amount",
1351 "type": "numeric",
1352 "unsigned": false,
1353 "autoincrement": false,
1354 "primary": false,
1355 "nullable": false,
1356 "mappedType": "decimal"
1357 },
1358 "is_tax_inclusive": {
1359 "name": "is_tax_inclusive",
1360 "type": "boolean",
1361 "unsigned": false,
1362 "autoincrement": false,
1363 "primary": false,
1364 "nullable": false,
1365 "default": "false",
1366 "mappedType": "boolean"
1367 },
1368 "shipping_option_id": {
1369 "name": "shipping_option_id",
1370 "type": "text",
1371 "unsigned": false,
1372 "autoincrement": false,
1373 "primary": false,
1374 "nullable": true,
1375 "mappedType": "text"
1376 },
1377 "data": {
1378 "name": "data",
1379 "type": "jsonb",
1380 "unsigned": false,
1381 "autoincrement": false,
1382 "primary": false,
1383 "nullable": true,
1384 "mappedType": "json"
1385 },
1386 "metadata": {
1387 "name": "metadata",
1388 "type": "jsonb",
1389 "unsigned": false,
1390 "autoincrement": false,
1391 "primary": false,
1392 "nullable": true,
1393 "mappedType": "json"
1394 },
1395 "cart_id": {
1396 "name": "cart_id",
1397 "type": "text",
1398 "unsigned": false,
1399 "autoincrement": false,
1400 "primary": false,
1401 "nullable": false,
1402 "mappedType": "text"
1403 },
1404 "raw_amount": {
1405 "name": "raw_amount",
1406 "type": "jsonb",
1407 "unsigned": false,
1408 "autoincrement": false,
1409 "primary": false,
1410 "nullable": false,
1411 "mappedType": "json"
1412 },
1413 "created_at": {
1414 "name": "created_at",
1415 "type": "timestamptz",
1416 "unsigned": false,
1417 "autoincrement": false,
1418 "primary": false,
1419 "nullable": false,
1420 "length": 6,
1421 "default": "now()",
1422 "mappedType": "datetime"
1423 },
1424 "updated_at": {
1425 "name": "updated_at",
1426 "type": "timestamptz",
1427 "unsigned": false,
1428 "autoincrement": false,
1429 "primary": false,
1430 "nullable": false,
1431 "length": 6,
1432 "default": "now()",
1433 "mappedType": "datetime"
1434 },
1435 "deleted_at": {
1436 "name": "deleted_at",
1437 "type": "timestamptz",
1438 "unsigned": false,
1439 "autoincrement": false,
1440 "primary": false,
1441 "nullable": true,
1442 "length": 6,
1443 "mappedType": "datetime"
1444 }
1445 },
1446 "name": "cart_shipping_method",
1447 "schema": "public",
1448 "indexes": [
1449 {
1450 "keyName": "IDX_cart_shipping_method_cart_id",
1451 "columnNames": [],
1452 "composite": false,
1453 "constraint": false,
1454 "primary": false,
1455 "unique": false,
1456 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_shipping_method_cart_id\" ON \"cart_shipping_method\" (\"cart_id\") WHERE deleted_at IS NULL"
1457 },
1458 {
1459 "keyName": "IDX_cart_shipping_method_deleted_at",
1460 "columnNames": [],
1461 "composite": false,
1462 "constraint": false,
1463 "primary": false,
1464 "unique": false,
1465 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_shipping_method_deleted_at\" ON \"cart_shipping_method\" (\"deleted_at\") WHERE deleted_at IS NULL"
1466 },
1467 {
1468 "keyName": "IDX_shipping_method_option_id",
1469 "columnNames": [],
1470 "composite": false,
1471 "constraint": false,
1472 "primary": false,
1473 "unique": false,
1474 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_shipping_method_option_id\" ON \"cart_shipping_method\" (\"shipping_option_id\") WHERE deleted_at IS NULL AND shipping_option_id IS NOT NULL"
1475 },
1476 {
1477 "keyName": "cart_shipping_method_pkey",
1478 "columnNames": [
1479 "id"
1480 ],
1481 "composite": false,
1482 "constraint": true,
1483 "primary": true,
1484 "unique": true
1485 }
1486 ],
1487 "checks": [
1488 {
1489 "name": "cart_shipping_method_check",
1490 "expression": "amount >= 0",
1491 "definition": "check ((amount >= 0))"
1492 }
1493 ],
1494 "foreignKeys": {
1495 "cart_shipping_method_cart_id_foreign": {
1496 "constraintName": "cart_shipping_method_cart_id_foreign",
1497 "columnNames": [
1498 "cart_id"
1499 ],
1500 "localTableName": "public.cart_shipping_method",
1501 "referencedColumnNames": [
1502 "id"
1503 ],
1504 "referencedTableName": "public.cart",
1505 "deleteRule": "cascade",
1506 "updateRule": "cascade"
1507 }
1508 },
1509 "nativeEnums": {}
1510 },
1511 {
1512 "columns": {
1513 "id": {
1514 "name": "id",
1515 "type": "text",
1516 "unsigned": false,
1517 "autoincrement": false,
1518 "primary": false,
1519 "nullable": false,
1520 "mappedType": "text"
1521 },
1522 "description": {
1523 "name": "description",
1524 "type": "text",
1525 "unsigned": false,
1526 "autoincrement": false,
1527 "primary": false,
1528 "nullable": true,
1529 "mappedType": "text"
1530 },
1531 "code": {
1532 "name": "code",
1533 "type": "text",
1534 "unsigned": false,
1535 "autoincrement": false,
1536 "primary": false,
1537 "nullable": true,
1538 "mappedType": "text"
1539 },
1540 "amount": {
1541 "name": "amount",
1542 "type": "numeric",
1543 "unsigned": false,
1544 "autoincrement": false,
1545 "primary": false,
1546 "nullable": false,
1547 "mappedType": "decimal"
1548 },
1549 "provider_id": {
1550 "name": "provider_id",
1551 "type": "text",
1552 "unsigned": false,
1553 "autoincrement": false,
1554 "primary": false,
1555 "nullable": true,
1556 "mappedType": "text"
1557 },
1558 "metadata": {
1559 "name": "metadata",
1560 "type": "jsonb",
1561 "unsigned": false,
1562 "autoincrement": false,
1563 "primary": false,
1564 "nullable": true,
1565 "mappedType": "json"
1566 },
1567 "promotion_id": {
1568 "name": "promotion_id",
1569 "type": "text",
1570 "unsigned": false,
1571 "autoincrement": false,
1572 "primary": false,
1573 "nullable": true,
1574 "mappedType": "text"
1575 },
1576 "shipping_method_id": {
1577 "name": "shipping_method_id",
1578 "type": "text",
1579 "unsigned": false,
1580 "autoincrement": false,
1581 "primary": false,
1582 "nullable": false,
1583 "mappedType": "text"
1584 },
1585 "raw_amount": {
1586 "name": "raw_amount",
1587 "type": "jsonb",
1588 "unsigned": false,
1589 "autoincrement": false,
1590 "primary": false,
1591 "nullable": false,
1592 "mappedType": "json"
1593 },
1594 "created_at": {
1595 "name": "created_at",
1596 "type": "timestamptz",
1597 "unsigned": false,
1598 "autoincrement": false,
1599 "primary": false,
1600 "nullable": false,
1601 "length": 6,
1602 "default": "now()",
1603 "mappedType": "datetime"
1604 },
1605 "updated_at": {
1606 "name": "updated_at",
1607 "type": "timestamptz",
1608 "unsigned": false,
1609 "autoincrement": false,
1610 "primary": false,
1611 "nullable": false,
1612 "length": 6,
1613 "default": "now()",
1614 "mappedType": "datetime"
1615 },
1616 "deleted_at": {
1617 "name": "deleted_at",
1618 "type": "timestamptz",
1619 "unsigned": false,
1620 "autoincrement": false,
1621 "primary": false,
1622 "nullable": true,
1623 "length": 6,
1624 "mappedType": "datetime"
1625 }
1626 },
1627 "name": "cart_shipping_method_adjustment",
1628 "schema": "public",
1629 "indexes": [
1630 {
1631 "keyName": "IDX_cart_shipping_method_adjustment_shipping_method_id",
1632 "columnNames": [],
1633 "composite": false,
1634 "constraint": false,
1635 "primary": false,
1636 "unique": false,
1637 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_shipping_method_adjustment_shipping_method_id\" ON \"cart_shipping_method_adjustment\" (\"shipping_method_id\") WHERE deleted_at IS NULL"
1638 },
1639 {
1640 "keyName": "IDX_cart_shipping_method_adjustment_deleted_at",
1641 "columnNames": [],
1642 "composite": false,
1643 "constraint": false,
1644 "primary": false,
1645 "unique": false,
1646 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_shipping_method_adjustment_deleted_at\" ON \"cart_shipping_method_adjustment\" (\"deleted_at\") WHERE deleted_at IS NULL"
1647 },
1648 {
1649 "keyName": "IDX_shipping_method_adjustment_promotion_id",
1650 "columnNames": [],
1651 "composite": false,
1652 "constraint": false,
1653 "primary": false,
1654 "unique": false,
1655 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_shipping_method_adjustment_promotion_id\" ON \"cart_shipping_method_adjustment\" (\"promotion_id\") WHERE deleted_at IS NULL AND promotion_id IS NOT NULL"
1656 },
1657 {
1658 "keyName": "cart_shipping_method_adjustment_pkey",
1659 "columnNames": [
1660 "id"
1661 ],
1662 "composite": false,
1663 "constraint": true,
1664 "primary": true,
1665 "unique": true
1666 }
1667 ],
1668 "checks": [],
1669 "foreignKeys": {
1670 "cart_shipping_method_adjustment_shipping_method_id_foreign": {
1671 "constraintName": "cart_shipping_method_adjustment_shipping_method_id_foreign",
1672 "columnNames": [
1673 "shipping_method_id"
1674 ],
1675 "localTableName": "public.cart_shipping_method_adjustment",
1676 "referencedColumnNames": [
1677 "id"
1678 ],
1679 "referencedTableName": "public.cart_shipping_method",
1680 "updateRule": "cascade"
1681 }
1682 },
1683 "nativeEnums": {}
1684 },
1685 {
1686 "columns": {
1687 "id": {
1688 "name": "id",
1689 "type": "text",
1690 "unsigned": false,
1691 "autoincrement": false,
1692 "primary": false,
1693 "nullable": false,
1694 "mappedType": "text"
1695 },
1696 "description": {
1697 "name": "description",
1698 "type": "text",
1699 "unsigned": false,
1700 "autoincrement": false,
1701 "primary": false,
1702 "nullable": true,
1703 "mappedType": "text"
1704 },
1705 "code": {
1706 "name": "code",
1707 "type": "text",
1708 "unsigned": false,
1709 "autoincrement": false,
1710 "primary": false,
1711 "nullable": false,
1712 "mappedType": "text"
1713 },
1714 "rate": {
1715 "name": "rate",
1716 "type": "real",
1717 "unsigned": false,
1718 "autoincrement": false,
1719 "primary": false,
1720 "nullable": false,
1721 "mappedType": "float"
1722 },
1723 "provider_id": {
1724 "name": "provider_id",
1725 "type": "text",
1726 "unsigned": false,
1727 "autoincrement": false,
1728 "primary": false,
1729 "nullable": true,
1730 "mappedType": "text"
1731 },
1732 "tax_rate_id": {
1733 "name": "tax_rate_id",
1734 "type": "text",
1735 "unsigned": false,
1736 "autoincrement": false,
1737 "primary": false,
1738 "nullable": true,
1739 "mappedType": "text"
1740 },
1741 "metadata": {
1742 "name": "metadata",
1743 "type": "jsonb",
1744 "unsigned": false,
1745 "autoincrement": false,
1746 "primary": false,
1747 "nullable": true,
1748 "mappedType": "json"
1749 },
1750 "shipping_method_id": {
1751 "name": "shipping_method_id",
1752 "type": "text",
1753 "unsigned": false,
1754 "autoincrement": false,
1755 "primary": false,
1756 "nullable": false,
1757 "mappedType": "text"
1758 },
1759 "created_at": {
1760 "name": "created_at",
1761 "type": "timestamptz",
1762 "unsigned": false,
1763 "autoincrement": false,
1764 "primary": false,
1765 "nullable": false,
1766 "length": 6,
1767 "default": "now()",
1768 "mappedType": "datetime"
1769 },
1770 "updated_at": {
1771 "name": "updated_at",
1772 "type": "timestamptz",
1773 "unsigned": false,
1774 "autoincrement": false,
1775 "primary": false,
1776 "nullable": false,
1777 "length": 6,
1778 "default": "now()",
1779 "mappedType": "datetime"
1780 },
1781 "deleted_at": {
1782 "name": "deleted_at",
1783 "type": "timestamptz",
1784 "unsigned": false,
1785 "autoincrement": false,
1786 "primary": false,
1787 "nullable": true,
1788 "length": 6,
1789 "mappedType": "datetime"
1790 }
1791 },
1792 "name": "cart_shipping_method_tax_line",
1793 "schema": "public",
1794 "indexes": [
1795 {
1796 "keyName": "IDX_cart_shipping_method_tax_line_shipping_method_id",
1797 "columnNames": [],
1798 "composite": false,
1799 "constraint": false,
1800 "primary": false,
1801 "unique": false,
1802 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_shipping_method_tax_line_shipping_method_id\" ON \"cart_shipping_method_tax_line\" (\"shipping_method_id\") WHERE deleted_at IS NULL"
1803 },
1804 {
1805 "keyName": "IDX_cart_shipping_method_tax_line_deleted_at",
1806 "columnNames": [],
1807 "composite": false,
1808 "constraint": false,
1809 "primary": false,
1810 "unique": false,
1811 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_cart_shipping_method_tax_line_deleted_at\" ON \"cart_shipping_method_tax_line\" (\"deleted_at\") WHERE deleted_at IS NULL"
1812 },
1813 {
1814 "keyName": "IDX_shipping_method_tax_line_tax_rate_id",
1815 "columnNames": [],
1816 "composite": false,
1817 "constraint": false,
1818 "primary": false,
1819 "unique": false,
1820 "expression": "CREATE INDEX IF NOT EXISTS \"IDX_shipping_method_tax_line_tax_rate_id\" ON \"cart_shipping_method_tax_line\" (\"tax_rate_id\") WHERE deleted_at IS NULL AND tax_rate_id IS NOT NULL"
1821 },
1822 {
1823 "keyName": "cart_shipping_method_tax_line_pkey",
1824 "columnNames": [
1825 "id"
1826 ],
1827 "composite": false,
1828 "constraint": true,
1829 "primary": true,
1830 "unique": true
1831 }
1832 ],
1833 "checks": [],
1834 "foreignKeys": {
1835 "cart_shipping_method_tax_line_shipping_method_id_foreign": {
1836 "constraintName": "cart_shipping_method_tax_line_shipping_method_id_foreign",
1837 "columnNames": [
1838 "shipping_method_id"
1839 ],
1840 "localTableName": "public.cart_shipping_method_tax_line",
1841 "referencedColumnNames": [
1842 "id"
1843 ],
1844 "referencedTableName": "public.cart_shipping_method",
1845 "updateRule": "cascade"
1846 }
1847 },
1848 "nativeEnums": {}
1849 }
1850 ],
1851 "nativeEnums": {}
1852 }