1{
2 "dialect": "postgres",
3 "id": "e189638b-4700-4656-b86e-d8baa63f5fe4",
4 "prevIds": ["ad620f05-3fd1-43b8-a3ca-d4c02543d892"],
5 "version": "8",
6 "ddl": [
7 {
8 "isRlsEnabled": false,
9 "name": "relay_agent_activity_rows",
10 "entityType": "tables",
11 "schema": "public"
12 },
13 {
14 "isRlsEnabled": false,
15 "name": "relay_delivery_attempts",
16 "entityType": "tables",
17 "schema": "public"
18 },
19 {
20 "isRlsEnabled": false,
21 "name": "relay_dpop_proofs",
22 "entityType": "tables",
23 "schema": "public"
24 },
25 {
26 "isRlsEnabled": false,
27 "name": "relay_environment_credentials",
28 "entityType": "tables",
29 "schema": "public"
30 },
31 {
32 "isRlsEnabled": false,
33 "name": "relay_environment_links",
34 "entityType": "tables",
35 "schema": "public"
36 },
37 {
38 "isRlsEnabled": false,
39 "name": "relay_live_activities",
40 "entityType": "tables",
41 "schema": "public"
42 },
43 {
44 "isRlsEnabled": false,
45 "name": "relay_mobile_devices",
46 "entityType": "tables",
47 "schema": "public"
48 },
49 {
50 "type": "varchar(191)",
51 "typeSchema": null,
52 "notNull": true,
53 "dimensions": 0,
54 "default": null,
55 "generated": null,
56 "identity": null,
57 "name": "environment_id",
58 "entityType": "columns",
59 "schema": "public",
60 "table": "relay_agent_activity_rows"
61 },
62 {
63 "type": "text",
64 "typeSchema": null,
65 "notNull": true,
66 "dimensions": 0,
67 "default": null,
68 "generated": null,
69 "identity": null,
70 "name": "environment_public_key",
71 "entityType": "columns",
72 "schema": "public",
73 "table": "relay_agent_activity_rows"
74 },
75 {
76 "type": "varchar(191)",
77 "typeSchema": null,
78 "notNull": true,
79 "dimensions": 0,
80 "default": null,
81 "generated": null,
82 "identity": null,
83 "name": "thread_id",
84 "entityType": "columns",
85 "schema": "public",
86 "table": "relay_agent_activity_rows"
87 },
88 {
89 "type": "jsonb",
90 "typeSchema": null,
91 "notNull": true,
92 "dimensions": 0,
93 "default": null,
94 "generated": null,
95 "identity": null,
96 "name": "state_json",
97 "entityType": "columns",
98 "schema": "public",
99 "table": "relay_agent_activity_rows"
100 },
101 {
102 "type": "varchar(64)",
103 "typeSchema": null,
104 "notNull": true,
105 "dimensions": 0,
106 "default": null,
107 "generated": null,
108 "identity": null,
109 "name": "updated_at",
110 "entityType": "columns",
111 "schema": "public",
112 "table": "relay_agent_activity_rows"
113 },
114 {
115 "type": "varchar(64)",
116 "typeSchema": null,
117 "notNull": true,
118 "dimensions": 0,
119 "default": null,
120 "generated": null,
121 "identity": null,
122 "name": "created_at",
123 "entityType": "columns",
124 "schema": "public",
125 "table": "relay_agent_activity_rows"
126 },
127 {
128 "type": "varchar(36)",
129 "typeSchema": null,
130 "notNull": true,
131 "dimensions": 0,
132 "default": null,
133 "generated": null,
134 "identity": null,
135 "name": "id",
136 "entityType": "columns",
137 "schema": "public",
138 "table": "relay_delivery_attempts"
139 },
140 {
141 "type": "varchar(64)",
142 "typeSchema": null,
143 "notNull": true,
144 "dimensions": 0,
145 "default": null,
146 "generated": null,
147 "identity": null,
148 "name": "created_at",
149 "entityType": "columns",
150 "schema": "public",
151 "table": "relay_delivery_attempts"
152 },
153 {
154 "type": "varchar(255)",
155 "typeSchema": null,
156 "notNull": false,
157 "dimensions": 0,
158 "default": null,
159 "generated": null,
160 "identity": null,
161 "name": "user_id",
162 "entityType": "columns",
163 "schema": "public",
164 "table": "relay_delivery_attempts"
165 },
166 {
167 "type": "varchar(191)",
168 "typeSchema": null,
169 "notNull": false,
170 "dimensions": 0,
171 "default": null,
172 "generated": null,
173 "identity": null,
174 "name": "environment_id",
175 "entityType": "columns",
176 "schema": "public",
177 "table": "relay_delivery_attempts"
178 },
179 {
180 "type": "varchar(191)",
181 "typeSchema": null,
182 "notNull": false,
183 "dimensions": 0,
184 "default": null,
185 "generated": null,
186 "identity": null,
187 "name": "thread_id",
188 "entityType": "columns",
189 "schema": "public",
190 "table": "relay_delivery_attempts"
191 },
192 {
193 "type": "varchar(255)",
194 "typeSchema": null,
195 "notNull": false,
196 "dimensions": 0,
197 "default": null,
198 "generated": null,
199 "identity": null,
200 "name": "device_id",
201 "entityType": "columns",
202 "schema": "public",
203 "table": "relay_delivery_attempts"
204 },
205 {
206 "type": "varchar(64)",
207 "typeSchema": null,
208 "notNull": true,
209 "dimensions": 0,
210 "default": null,
211 "generated": null,
212 "identity": null,
213 "name": "kind",
214 "entityType": "columns",
215 "schema": "public",
216 "table": "relay_delivery_attempts"
217 },
218 {
219 "type": "varchar(64)",
220 "typeSchema": null,
221 "notNull": false,
222 "dimensions": 0,
223 "default": null,
224 "generated": null,
225 "identity": null,
226 "name": "source_job_id",
227 "entityType": "columns",
228 "schema": "public",
229 "table": "relay_delivery_attempts"
230 },
231 {
232 "type": "varchar(16)",
233 "typeSchema": null,
234 "notNull": false,
235 "dimensions": 0,
236 "default": null,
237 "generated": null,
238 "identity": null,
239 "name": "token_suffix",
240 "entityType": "columns",
241 "schema": "public",
242 "table": "relay_delivery_attempts"
243 },
244 {
245 "type": "integer",
246 "typeSchema": null,
247 "notNull": false,
248 "dimensions": 0,
249 "default": null,
250 "generated": null,
251 "identity": null,
252 "name": "apns_status",
253 "entityType": "columns",
254 "schema": "public",
255 "table": "relay_delivery_attempts"
256 },
257 {
258 "type": "text",
259 "typeSchema": null,
260 "notNull": false,
261 "dimensions": 0,
262 "default": null,
263 "generated": null,
264 "identity": null,
265 "name": "apns_reason",
266 "entityType": "columns",
267 "schema": "public",
268 "table": "relay_delivery_attempts"
269 },
270 {
271 "type": "varchar(128)",
272 "typeSchema": null,
273 "notNull": false,
274 "dimensions": 0,
275 "default": null,
276 "generated": null,
277 "identity": null,
278 "name": "apns_id",
279 "entityType": "columns",
280 "schema": "public",
281 "table": "relay_delivery_attempts"
282 },
283 {
284 "type": "text",
285 "typeSchema": null,
286 "notNull": false,
287 "dimensions": 0,
288 "default": null,
289 "generated": null,
290 "identity": null,
291 "name": "transport_error",
292 "entityType": "columns",
293 "schema": "public",
294 "table": "relay_delivery_attempts"
295 },
296 {
297 "type": "varchar(128)",
298 "typeSchema": null,
299 "notNull": true,
300 "dimensions": 0,
301 "default": null,
302 "generated": null,
303 "identity": null,
304 "name": "thumbprint",
305 "entityType": "columns",
306 "schema": "public",
307 "table": "relay_dpop_proofs"
308 },
309 {
310 "type": "varchar(255)",
311 "typeSchema": null,
312 "notNull": true,
313 "dimensions": 0,
314 "default": null,
315 "generated": null,
316 "identity": null,
317 "name": "jti",
318 "entityType": "columns",
319 "schema": "public",
320 "table": "relay_dpop_proofs"
321 },
322 {
323 "type": "integer",
324 "typeSchema": null,
325 "notNull": true,
326 "dimensions": 0,
327 "default": null,
328 "generated": null,
329 "identity": null,
330 "name": "iat",
331 "entityType": "columns",
332 "schema": "public",
333 "table": "relay_dpop_proofs"
334 },
335 {
336 "type": "varchar(64)",
337 "typeSchema": null,
338 "notNull": true,
339 "dimensions": 0,
340 "default": null,
341 "generated": null,
342 "identity": null,
343 "name": "expires_at",
344 "entityType": "columns",
345 "schema": "public",
346 "table": "relay_dpop_proofs"
347 },
348 {
349 "type": "varchar(64)",
350 "typeSchema": null,
351 "notNull": true,
352 "dimensions": 0,
353 "default": null,
354 "generated": null,
355 "identity": null,
356 "name": "created_at",
357 "entityType": "columns",
358 "schema": "public",
359 "table": "relay_dpop_proofs"
360 },
361 {
362 "type": "varchar(64)",
363 "typeSchema": null,
364 "notNull": true,
365 "dimensions": 0,
366 "default": null,
367 "generated": null,
368 "identity": null,
369 "name": "credential_id",
370 "entityType": "columns",
371 "schema": "public",
372 "table": "relay_environment_credentials"
373 },
374 {
375 "type": "varchar(191)",
376 "typeSchema": null,
377 "notNull": true,
378 "dimensions": 0,
379 "default": null,
380 "generated": null,
381 "identity": null,
382 "name": "environment_id",
383 "entityType": "columns",
384 "schema": "public",
385 "table": "relay_environment_credentials"
386 },
387 {
388 "type": "text",
389 "typeSchema": null,
390 "notNull": true,
391 "dimensions": 0,
392 "default": null,
393 "generated": null,
394 "identity": null,
395 "name": "environment_public_key",
396 "entityType": "columns",
397 "schema": "public",
398 "table": "relay_environment_credentials"
399 },
400 {
401 "type": "varchar(191)",
402 "typeSchema": null,
403 "notNull": true,
404 "dimensions": 0,
405 "default": null,
406 "generated": null,
407 "identity": null,
408 "name": "credential_hash",
409 "entityType": "columns",
410 "schema": "public",
411 "table": "relay_environment_credentials"
412 },
413 {
414 "type": "varchar(64)",
415 "typeSchema": null,
416 "notNull": false,
417 "dimensions": 0,
418 "default": null,
419 "generated": null,
420 "identity": null,
421 "name": "revoked_at",
422 "entityType": "columns",
423 "schema": "public",
424 "table": "relay_environment_credentials"
425 },
426 {
427 "type": "varchar(64)",
428 "typeSchema": null,
429 "notNull": true,
430 "dimensions": 0,
431 "default": null,
432 "generated": null,
433 "identity": null,
434 "name": "created_at",
435 "entityType": "columns",
436 "schema": "public",
437 "table": "relay_environment_credentials"
438 },
439 {
440 "type": "varchar(64)",
441 "typeSchema": null,
442 "notNull": true,
443 "dimensions": 0,
444 "default": null,
445 "generated": null,
446 "identity": null,
447 "name": "updated_at",
448 "entityType": "columns",
449 "schema": "public",
450 "table": "relay_environment_credentials"
451 },
452 {
453 "type": "varchar(191)",
454 "typeSchema": null,
455 "notNull": true,
456 "dimensions": 0,
457 "default": null,
458 "generated": null,
459 "identity": null,
460 "name": "user_id",
461 "entityType": "columns",
462 "schema": "public",
463 "table": "relay_environment_links"
464 },
465 {
466 "type": "varchar(191)",
467 "typeSchema": null,
468 "notNull": true,
469 "dimensions": 0,
470 "default": null,
471 "generated": null,
472 "identity": null,
473 "name": "environment_id",
474 "entityType": "columns",
475 "schema": "public",
476 "table": "relay_environment_links"
477 },
478 {
479 "type": "text",
480 "typeSchema": null,
481 "notNull": true,
482 "dimensions": 0,
483 "default": "'T3 Environment'",
484 "generated": null,
485 "identity": null,
486 "name": "environment_label",
487 "entityType": "columns",
488 "schema": "public",
489 "table": "relay_environment_links"
490 },
491 {
492 "type": "text",
493 "typeSchema": null,
494 "notNull": true,
495 "dimensions": 0,
496 "default": null,
497 "generated": null,
498 "identity": null,
499 "name": "environment_public_key",
500 "entityType": "columns",
501 "schema": "public",
502 "table": "relay_environment_links"
503 },
504 {
505 "type": "text",
506 "typeSchema": null,
507 "notNull": true,
508 "dimensions": 0,
509 "default": null,
510 "generated": null,
511 "identity": null,
512 "name": "endpoint_http_base_url",
513 "entityType": "columns",
514 "schema": "public",
515 "table": "relay_environment_links"
516 },
517 {
518 "type": "text",
519 "typeSchema": null,
520 "notNull": true,
521 "dimensions": 0,
522 "default": null,
523 "generated": null,
524 "identity": null,
525 "name": "endpoint_ws_base_url",
526 "entityType": "columns",
527 "schema": "public",
528 "table": "relay_environment_links"
529 },
530 {
531 "type": "varchar(32)",
532 "typeSchema": null,
533 "notNull": true,
534 "dimensions": 0,
535 "default": null,
536 "generated": null,
537 "identity": null,
538 "name": "endpoint_provider_kind",
539 "entityType": "columns",
540 "schema": "public",
541 "table": "relay_environment_links"
542 },
543 {
544 "type": "boolean",
545 "typeSchema": null,
546 "notNull": true,
547 "dimensions": 0,
548 "default": "true",
549 "generated": null,
550 "identity": null,
551 "name": "notifications_enabled",
552 "entityType": "columns",
553 "schema": "public",
554 "table": "relay_environment_links"
555 },
556 {
557 "type": "boolean",
558 "typeSchema": null,
559 "notNull": true,
560 "dimensions": 0,
561 "default": "true",
562 "generated": null,
563 "identity": null,
564 "name": "live_activities_enabled",
565 "entityType": "columns",
566 "schema": "public",
567 "table": "relay_environment_links"
568 },
569 {
570 "type": "boolean",
571 "typeSchema": null,
572 "notNull": true,
573 "dimensions": 0,
574 "default": "false",
575 "generated": null,
576 "identity": null,
577 "name": "managed_tunnels_enabled",
578 "entityType": "columns",
579 "schema": "public",
580 "table": "relay_environment_links"
581 },
582 {
583 "type": "varchar(191)",
584 "typeSchema": null,
585 "notNull": false,
586 "dimensions": 0,
587 "default": null,
588 "generated": null,
589 "identity": null,
590 "name": "created_by_device_id",
591 "entityType": "columns",
592 "schema": "public",
593 "table": "relay_environment_links"
594 },
595 {
596 "type": "varchar(64)",
597 "typeSchema": null,
598 "notNull": false,
599 "dimensions": 0,
600 "default": null,
601 "generated": null,
602 "identity": null,
603 "name": "revoked_at",
604 "entityType": "columns",
605 "schema": "public",
606 "table": "relay_environment_links"
607 },
608 {
609 "type": "varchar(64)",
610 "typeSchema": null,
611 "notNull": true,
612 "dimensions": 0,
613 "default": null,
614 "generated": null,
615 "identity": null,
616 "name": "created_at",
617 "entityType": "columns",
618 "schema": "public",
619 "table": "relay_environment_links"
620 },
621 {
622 "type": "varchar(64)",
623 "typeSchema": null,
624 "notNull": true,
625 "dimensions": 0,
626 "default": null,
627 "generated": null,
628 "identity": null,
629 "name": "updated_at",
630 "entityType": "columns",
631 "schema": "public",
632 "table": "relay_environment_links"
633 },
634 {
635 "type": "varchar(255)",
636 "typeSchema": null,
637 "notNull": true,
638 "dimensions": 0,
639 "default": null,
640 "generated": null,
641 "identity": null,
642 "name": "user_id",
643 "entityType": "columns",
644 "schema": "public",
645 "table": "relay_live_activities"
646 },
647 {
648 "type": "varchar(255)",
649 "typeSchema": null,
650 "notNull": true,
651 "dimensions": 0,
652 "default": null,
653 "generated": null,
654 "identity": null,
655 "name": "device_id",
656 "entityType": "columns",
657 "schema": "public",
658 "table": "relay_live_activities"
659 },
660 {
661 "type": "text",
662 "typeSchema": null,
663 "notNull": false,
664 "dimensions": 0,
665 "default": null,
666 "generated": null,
667 "identity": null,
668 "name": "activity_push_token",
669 "entityType": "columns",
670 "schema": "public",
671 "table": "relay_live_activities"
672 },
673 {
674 "type": "varchar(64)",
675 "typeSchema": null,
676 "notNull": false,
677 "dimensions": 0,
678 "default": null,
679 "generated": null,
680 "identity": null,
681 "name": "remote_start_queued_at",
682 "entityType": "columns",
683 "schema": "public",
684 "table": "relay_live_activities"
685 },
686 {
687 "type": "varchar(64)",
688 "typeSchema": null,
689 "notNull": false,
690 "dimensions": 0,
691 "default": null,
692 "generated": null,
693 "identity": null,
694 "name": "remote_started_at",
695 "entityType": "columns",
696 "schema": "public",
697 "table": "relay_live_activities"
698 },
699 {
700 "type": "varchar(64)",
701 "typeSchema": null,
702 "notNull": false,
703 "dimensions": 0,
704 "default": null,
705 "generated": null,
706 "identity": null,
707 "name": "ended_at",
708 "entityType": "columns",
709 "schema": "public",
710 "table": "relay_live_activities"
711 },
712 {
713 "type": "jsonb",
714 "typeSchema": null,
715 "notNull": false,
716 "dimensions": 0,
717 "default": null,
718 "generated": null,
719 "identity": null,
720 "name": "last_aggregate_json",
721 "entityType": "columns",
722 "schema": "public",
723 "table": "relay_live_activities"
724 },
725 {
726 "type": "varchar(64)",
727 "typeSchema": null,
728 "notNull": false,
729 "dimensions": 0,
730 "default": null,
731 "generated": null,
732 "identity": null,
733 "name": "last_live_activity_delivery_at",
734 "entityType": "columns",
735 "schema": "public",
736 "table": "relay_live_activities"
737 },
738 {
739 "type": "varchar(64)",
740 "typeSchema": null,
741 "notNull": true,
742 "dimensions": 0,
743 "default": null,
744 "generated": null,
745 "identity": null,
746 "name": "created_at",
747 "entityType": "columns",
748 "schema": "public",
749 "table": "relay_live_activities"
750 },
751 {
752 "type": "varchar(64)",
753 "typeSchema": null,
754 "notNull": true,
755 "dimensions": 0,
756 "default": null,
757 "generated": null,
758 "identity": null,
759 "name": "updated_at",
760 "entityType": "columns",
761 "schema": "public",
762 "table": "relay_live_activities"
763 },
764 {
765 "type": "varchar(255)",
766 "typeSchema": null,
767 "notNull": true,
768 "dimensions": 0,
769 "default": null,
770 "generated": null,
771 "identity": null,
772 "name": "user_id",
773 "entityType": "columns",
774 "schema": "public",
775 "table": "relay_mobile_devices"
776 },
777 {
778 "type": "varchar(255)",
779 "typeSchema": null,
780 "notNull": true,
781 "dimensions": 0,
782 "default": null,
783 "generated": null,
784 "identity": null,
785 "name": "device_id",
786 "entityType": "columns",
787 "schema": "public",
788 "table": "relay_mobile_devices"
789 },
790 {
791 "type": "text",
792 "typeSchema": null,
793 "notNull": true,
794 "dimensions": 0,
795 "default": "'iOS device'",
796 "generated": null,
797 "identity": null,
798 "name": "label",
799 "entityType": "columns",
800 "schema": "public",
801 "table": "relay_mobile_devices"
802 },
803 {
804 "type": "varchar(16)",
805 "typeSchema": null,
806 "notNull": true,
807 "dimensions": 0,
808 "default": null,
809 "generated": null,
810 "identity": null,
811 "name": "platform",
812 "entityType": "columns",
813 "schema": "public",
814 "table": "relay_mobile_devices"
815 },
816 {
817 "type": "integer",
818 "typeSchema": null,
819 "notNull": true,
820 "dimensions": 0,
821 "default": null,
822 "generated": null,
823 "identity": null,
824 "name": "ios_major_version",
825 "entityType": "columns",
826 "schema": "public",
827 "table": "relay_mobile_devices"
828 },
829 {
830 "type": "varchar(64)",
831 "typeSchema": null,
832 "notNull": false,
833 "dimensions": 0,
834 "default": null,
835 "generated": null,
836 "identity": null,
837 "name": "app_version",
838 "entityType": "columns",
839 "schema": "public",
840 "table": "relay_mobile_devices"
841 },
842 {
843 "type": "text",
844 "typeSchema": null,
845 "notNull": false,
846 "dimensions": 0,
847 "default": null,
848 "generated": null,
849 "identity": null,
850 "name": "push_token",
851 "entityType": "columns",
852 "schema": "public",
853 "table": "relay_mobile_devices"
854 },
855 {
856 "type": "text",
857 "typeSchema": null,
858 "notNull": false,
859 "dimensions": 0,
860 "default": null,
861 "generated": null,
862 "identity": null,
863 "name": "push_to_start_token",
864 "entityType": "columns",
865 "schema": "public",
866 "table": "relay_mobile_devices"
867 },
868 {
869 "type": "jsonb",
870 "typeSchema": null,
871 "notNull": true,
872 "dimensions": 0,
873 "default": null,
874 "generated": null,
875 "identity": null,
876 "name": "preferences_json",
877 "entityType": "columns",
878 "schema": "public",
879 "table": "relay_mobile_devices"
880 },
881 {
882 "type": "varchar(64)",
883 "typeSchema": null,
884 "notNull": true,
885 "dimensions": 0,
886 "default": null,
887 "generated": null,
888 "identity": null,
889 "name": "created_at",
890 "entityType": "columns",
891 "schema": "public",
892 "table": "relay_mobile_devices"
893 },
894 {
895 "type": "varchar(64)",
896 "typeSchema": null,
897 "notNull": true,
898 "dimensions": 0,
899 "default": null,
900 "generated": null,
901 "identity": null,
902 "name": "updated_at",
903 "entityType": "columns",
904 "schema": "public",
905 "table": "relay_mobile_devices"
906 },
907 {
908 "nameExplicit": true,
909 "columns": [
910 {
911 "value": "updated_at",
912 "isExpression": false,
913 "asc": true,
914 "nullsFirst": false,
915 "opclass": null
916 }
917 ],
918 "isUnique": false,
919 "where": null,
920 "with": "",
921 "method": "btree",
922 "concurrently": false,
923 "name": "idx_relay_agent_activity_rows_updated",
924 "entityType": "indexes",
925 "schema": "public",
926 "table": "relay_agent_activity_rows"
927 },
928 {
929 "nameExplicit": true,
930 "columns": [
931 {
932 "value": "environment_id",
933 "isExpression": false,
934 "asc": true,
935 "nullsFirst": false,
936 "opclass": null
937 },
938 {
939 "value": "thread_id",
940 "isExpression": false,
941 "asc": true,
942 "nullsFirst": false,
943 "opclass": null
944 },
945 {
946 "value": "created_at",
947 "isExpression": false,
948 "asc": true,
949 "nullsFirst": false,
950 "opclass": null
951 }
952 ],
953 "isUnique": false,
954 "where": null,
955 "with": "",
956 "method": "btree",
957 "concurrently": false,
958 "name": "idx_relay_delivery_attempts_environment",
959 "entityType": "indexes",
960 "schema": "public",
961 "table": "relay_delivery_attempts"
962 },
963 {
964 "nameExplicit": true,
965 "columns": [
966 {
967 "value": "source_job_id",
968 "isExpression": false,
969 "asc": true,
970 "nullsFirst": false,
971 "opclass": null
972 }
973 ],
974 "isUnique": true,
975 "where": null,
976 "with": "",
977 "method": "btree",
978 "concurrently": false,
979 "name": "idx_relay_delivery_attempts_source_job",
980 "entityType": "indexes",
981 "schema": "public",
982 "table": "relay_delivery_attempts"
983 },
984 {
985 "nameExplicit": true,
986 "columns": [
987 {
988 "value": "expires_at",
989 "isExpression": false,
990 "asc": true,
991 "nullsFirst": false,
992 "opclass": null
993 }
994 ],
995 "isUnique": false,
996 "where": null,
997 "with": "",
998 "method": "btree",
999 "concurrently": false,
1000 "name": "idx_relay_dpop_proofs_expires_at",
1001 "entityType": "indexes",
1002 "schema": "public",
1003 "table": "relay_dpop_proofs"
1004 },
1005 {
1006 "nameExplicit": true,
1007 "columns": [
1008 {
1009 "value": "credential_hash",
1010 "isExpression": false,
1011 "asc": true,
1012 "nullsFirst": false,
1013 "opclass": null
1014 }
1015 ],
1016 "isUnique": true,
1017 "where": null,
1018 "with": "",
1019 "method": "btree",
1020 "concurrently": false,
1021 "name": "idx_relay_environment_credentials_hash",
1022 "entityType": "indexes",
1023 "schema": "public",
1024 "table": "relay_environment_credentials"
1025 },
1026 {
1027 "nameExplicit": true,
1028 "columns": [
1029 {
1030 "value": "environment_id",
1031 "isExpression": false,
1032 "asc": true,
1033 "nullsFirst": false,
1034 "opclass": null
1035 },
1036 {
1037 "value": "revoked_at",
1038 "isExpression": false,
1039 "asc": true,
1040 "nullsFirst": false,
1041 "opclass": null
1042 }
1043 ],
1044 "isUnique": false,
1045 "where": null,
1046 "with": "",
1047 "method": "btree",
1048 "concurrently": false,
1049 "name": "idx_relay_environment_credentials_environment",
1050 "entityType": "indexes",
1051 "schema": "public",
1052 "table": "relay_environment_credentials"
1053 },
1054 {
1055 "nameExplicit": true,
1056 "columns": [
1057 {
1058 "value": "environment_id",
1059 "isExpression": false,
1060 "asc": true,
1061 "nullsFirst": false,
1062 "opclass": null
1063 },
1064 {
1065 "value": "environment_public_key",
1066 "isExpression": false,
1067 "asc": true,
1068 "nullsFirst": false,
1069 "opclass": null
1070 },
1071 {
1072 "value": "revoked_at",
1073 "isExpression": false,
1074 "asc": true,
1075 "nullsFirst": false,
1076 "opclass": null
1077 }
1078 ],
1079 "isUnique": false,
1080 "where": null,
1081 "with": "",
1082 "method": "btree",
1083 "concurrently": false,
1084 "name": "idx_relay_environment_credentials_environment_key",
1085 "entityType": "indexes",
1086 "schema": "public",
1087 "table": "relay_environment_credentials"
1088 },
1089 {
1090 "nameExplicit": true,
1091 "columns": [
1092 {
1093 "value": "environment_id",
1094 "isExpression": false,
1095 "asc": true,
1096 "nullsFirst": false,
1097 "opclass": null
1098 },
1099 {
1100 "value": "revoked_at",
1101 "isExpression": false,
1102 "asc": true,
1103 "nullsFirst": false,
1104 "opclass": null
1105 }
1106 ],
1107 "isUnique": false,
1108 "where": null,
1109 "with": "",
1110 "method": "btree",
1111 "concurrently": false,
1112 "name": "idx_relay_environment_links_environment",
1113 "entityType": "indexes",
1114 "schema": "public",
1115 "table": "relay_environment_links"
1116 },
1117 {
1118 "nameExplicit": true,
1119 "columns": [
1120 {
1121 "value": "user_id",
1122 "isExpression": false,
1123 "asc": true,
1124 "nullsFirst": false,
1125 "opclass": null
1126 }
1127 ],
1128 "isUnique": false,
1129 "where": null,
1130 "with": "",
1131 "method": "btree",
1132 "concurrently": false,
1133 "name": "idx_relay_live_activities_user",
1134 "entityType": "indexes",
1135 "schema": "public",
1136 "table": "relay_live_activities"
1137 },
1138 {
1139 "nameExplicit": true,
1140 "columns": [
1141 {
1142 "value": "activity_push_token",
1143 "isExpression": false,
1144 "asc": true,
1145 "nullsFirst": false,
1146 "opclass": null
1147 }
1148 ],
1149 "isUnique": true,
1150 "where": null,
1151 "with": "",
1152 "method": "btree",
1153 "concurrently": false,
1154 "name": "idx_relay_live_activities_activity_push_token",
1155 "entityType": "indexes",
1156 "schema": "public",
1157 "table": "relay_live_activities"
1158 },
1159 {
1160 "nameExplicit": true,
1161 "columns": [
1162 {
1163 "value": "user_id",
1164 "isExpression": false,
1165 "asc": true,
1166 "nullsFirst": false,
1167 "opclass": null
1168 }
1169 ],
1170 "isUnique": false,
1171 "where": null,
1172 "with": "",
1173 "method": "btree",
1174 "concurrently": false,
1175 "name": "idx_relay_mobile_devices_user",
1176 "entityType": "indexes",
1177 "schema": "public",
1178 "table": "relay_mobile_devices"
1179 },
1180 {
1181 "nameExplicit": true,
1182 "columns": [
1183 {
1184 "value": "push_token",
1185 "isExpression": false,
1186 "asc": true,
1187 "nullsFirst": false,
1188 "opclass": null
1189 }
1190 ],
1191 "isUnique": true,
1192 "where": null,
1193 "with": "",
1194 "method": "btree",
1195 "concurrently": false,
1196 "name": "idx_relay_mobile_devices_push_token",
1197 "entityType": "indexes",
1198 "schema": "public",
1199 "table": "relay_mobile_devices"
1200 },
1201 {
1202 "nameExplicit": true,
1203 "columns": [
1204 {
1205 "value": "push_to_start_token",
1206 "isExpression": false,
1207 "asc": true,
1208 "nullsFirst": false,
1209 "opclass": null
1210 }
1211 ],
1212 "isUnique": true,
1213 "where": null,
1214 "with": "",
1215 "method": "btree",
1216 "concurrently": false,
1217 "name": "idx_relay_mobile_devices_push_to_start_token",
1218 "entityType": "indexes",
1219 "schema": "public",
1220 "table": "relay_mobile_devices"
1221 },
1222 {
1223 "columns": ["environment_id", "environment_public_key", "thread_id"],
1224 "nameExplicit": false,
1225 "name": "relay_agent_activity_rows_pkey",
1226 "entityType": "pks",
1227 "schema": "public",
1228 "table": "relay_agent_activity_rows"
1229 },
1230 {
1231 "columns": ["thumbprint", "jti"],
1232 "nameExplicit": false,
1233 "name": "relay_dpop_proofs_pkey",
1234 "entityType": "pks",
1235 "schema": "public",
1236 "table": "relay_dpop_proofs"
1237 },
1238 {
1239 "columns": ["user_id", "environment_id"],
1240 "nameExplicit": false,
1241 "name": "relay_environment_links_pkey",
1242 "entityType": "pks",
1243 "schema": "public",
1244 "table": "relay_environment_links"
1245 },
1246 {
1247 "columns": ["user_id", "device_id"],
1248 "nameExplicit": false,
1249 "name": "relay_live_activities_pkey",
1250 "entityType": "pks",
1251 "schema": "public",
1252 "table": "relay_live_activities"
1253 },
1254 {
1255 "columns": ["user_id", "device_id"],
1256 "nameExplicit": false,
1257 "name": "relay_mobile_devices_pkey",
1258 "entityType": "pks",
1259 "schema": "public",
1260 "table": "relay_mobile_devices"
1261 },
1262 {
1263 "columns": ["id"],
1264 "nameExplicit": false,
1265 "name": "relay_delivery_attempts_pkey",
1266 "schema": "public",
1267 "table": "relay_delivery_attempts",
1268 "entityType": "pks"
1269 },
1270 {
1271 "columns": ["credential_id"],
1272 "nameExplicit": false,
1273 "name": "relay_environment_credentials_pkey",
1274 "schema": "public",
1275 "table": "relay_environment_credentials",
1276 "entityType": "pks"
1277 }
1278 ],
1279 "renames": []
1280}