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