The best way to control Claude Code, Codex and more from any computer or phone

main
json 1,626 lines 41.9 KB
Raw
1 {
2 "type": "base",
3 "version": "9",
4 "dialect": "postgres",
5 "id": "ad620f05-3fd1-43b8-a3ca-d4c02543d892",
6 "prevIds": ["00000000-0000-0000-0000-000000000000"],
7 "footprints": [
8 {
9 "statementType": "create_table",
10 "statementTarget": ["table", "public", "relay_agent_activity_rows"],
11 "writes": [
12 "s|tbl|public.relay_agent_activity_rows",
13 "n|tbl|public.relay_agent_activity_rows",
14 "e|tbl|public.relay_agent_activity_rows",
15 "n|rel|public.relay_agent_activity_rows",
16 "n|type|public.relay_agent_activity_rows",
17 "n|rel|public.relay_agent_activity_rows_pkey"
18 ],
19 "reads": ["n|sch|public"]
20 },
21 {
22 "statementType": "create_table",
23 "statementTarget": ["table", "public", "relay_delivery_attempts"],
24 "writes": [
25 "s|tbl|public.relay_delivery_attempts",
26 "n|tbl|public.relay_delivery_attempts",
27 "e|tbl|public.relay_delivery_attempts",
28 "n|rel|public.relay_delivery_attempts",
29 "n|type|public.relay_delivery_attempts",
30 "n|rel|public.relay_delivery_attempts_pkey"
31 ],
32 "reads": ["n|sch|public"]
33 },
34 {
35 "statementType": "create_table",
36 "statementTarget": ["table", "public", "relay_dpop_proofs"],
37 "writes": [
38 "s|tbl|public.relay_dpop_proofs",
39 "n|tbl|public.relay_dpop_proofs",
40 "e|tbl|public.relay_dpop_proofs",
41 "n|rel|public.relay_dpop_proofs",
42 "n|type|public.relay_dpop_proofs",
43 "n|rel|public.relay_dpop_proofs_pkey"
44 ],
45 "reads": ["n|sch|public"]
46 },
47 {
48 "statementType": "create_table",
49 "statementTarget": ["table", "public", "relay_environment_credentials"],
50 "writes": [
51 "s|tbl|public.relay_environment_credentials",
52 "n|tbl|public.relay_environment_credentials",
53 "e|tbl|public.relay_environment_credentials",
54 "n|rel|public.relay_environment_credentials",
55 "n|type|public.relay_environment_credentials",
56 "n|rel|public.relay_environment_credentials_pkey"
57 ],
58 "reads": ["n|sch|public"]
59 },
60 {
61 "statementType": "create_table",
62 "statementTarget": ["table", "public", "relay_environment_links"],
63 "writes": [
64 "s|tbl|public.relay_environment_links",
65 "n|tbl|public.relay_environment_links",
66 "e|tbl|public.relay_environment_links",
67 "n|rel|public.relay_environment_links",
68 "n|type|public.relay_environment_links",
69 "n|rel|public.relay_environment_links_pkey"
70 ],
71 "reads": ["n|sch|public"]
72 },
73 {
74 "statementType": "create_table",
75 "statementTarget": ["table", "public", "relay_live_activities"],
76 "writes": [
77 "s|tbl|public.relay_live_activities",
78 "n|tbl|public.relay_live_activities",
79 "e|tbl|public.relay_live_activities",
80 "n|rel|public.relay_live_activities",
81 "n|type|public.relay_live_activities",
82 "n|rel|public.relay_live_activities_pkey"
83 ],
84 "reads": ["n|sch|public"]
85 },
86 {
87 "statementType": "create_table",
88 "statementTarget": ["table", "public", "relay_mobile_devices"],
89 "writes": [
90 "s|tbl|public.relay_mobile_devices",
91 "n|tbl|public.relay_mobile_devices",
92 "e|tbl|public.relay_mobile_devices",
93 "n|rel|public.relay_mobile_devices",
94 "n|type|public.relay_mobile_devices",
95 "n|rel|public.relay_mobile_devices_pkey"
96 ],
97 "reads": ["n|sch|public"]
98 },
99 {
100 "statementType": "create_index",
101 "statementTarget": [
102 "index",
103 "public",
104 "relay_agent_activity_rows",
105 "idx_relay_agent_activity_rows_updated"
106 ],
107 "writes": [
108 "s|idx|public.idx_relay_agent_activity_rows_updated",
109 "n|idx|public.idx_relay_agent_activity_rows_updated",
110 "e|idx|public.idx_relay_agent_activity_rows_updated",
111 "n|rel|public.idx_relay_agent_activity_rows_updated"
112 ],
113 "reads": [
114 "n|tbl|public.relay_agent_activity_rows",
115 "n|sch|public",
116 "n|col|public.relay_agent_activity_rows.updated_at"
117 ]
118 },
119 {
120 "statementType": "create_index",
121 "statementTarget": [
122 "index",
123 "public",
124 "relay_delivery_attempts",
125 "idx_relay_delivery_attempts_environment"
126 ],
127 "writes": [
128 "s|idx|public.idx_relay_delivery_attempts_environment",
129 "n|idx|public.idx_relay_delivery_attempts_environment",
130 "e|idx|public.idx_relay_delivery_attempts_environment",
131 "n|rel|public.idx_relay_delivery_attempts_environment"
132 ],
133 "reads": [
134 "n|tbl|public.relay_delivery_attempts",
135 "n|sch|public",
136 "n|col|public.relay_delivery_attempts.environment_id",
137 "n|col|public.relay_delivery_attempts.thread_id",
138 "n|col|public.relay_delivery_attempts.created_at"
139 ]
140 },
141 {
142 "statementType": "create_index",
143 "statementTarget": [
144 "index",
145 "public",
146 "relay_delivery_attempts",
147 "idx_relay_delivery_attempts_source_job"
148 ],
149 "writes": [
150 "s|idx|public.idx_relay_delivery_attempts_source_job",
151 "n|idx|public.idx_relay_delivery_attempts_source_job",
152 "e|idx|public.idx_relay_delivery_attempts_source_job",
153 "n|rel|public.idx_relay_delivery_attempts_source_job"
154 ],
155 "reads": [
156 "n|tbl|public.relay_delivery_attempts",
157 "n|sch|public",
158 "n|col|public.relay_delivery_attempts.source_job_id"
159 ]
160 },
161 {
162 "statementType": "create_index",
163 "statementTarget": [
164 "index",
165 "public",
166 "relay_dpop_proofs",
167 "idx_relay_dpop_proofs_expires_at"
168 ],
169 "writes": [
170 "s|idx|public.idx_relay_dpop_proofs_expires_at",
171 "n|idx|public.idx_relay_dpop_proofs_expires_at",
172 "e|idx|public.idx_relay_dpop_proofs_expires_at",
173 "n|rel|public.idx_relay_dpop_proofs_expires_at"
174 ],
175 "reads": [
176 "n|tbl|public.relay_dpop_proofs",
177 "n|sch|public",
178 "n|col|public.relay_dpop_proofs.expires_at"
179 ]
180 },
181 {
182 "statementType": "create_index",
183 "statementTarget": [
184 "index",
185 "public",
186 "relay_environment_credentials",
187 "idx_relay_environment_credentials_hash"
188 ],
189 "writes": [
190 "s|idx|public.idx_relay_environment_credentials_hash",
191 "n|idx|public.idx_relay_environment_credentials_hash",
192 "e|idx|public.idx_relay_environment_credentials_hash",
193 "n|rel|public.idx_relay_environment_credentials_hash"
194 ],
195 "reads": [
196 "n|tbl|public.relay_environment_credentials",
197 "n|sch|public",
198 "n|col|public.relay_environment_credentials.credential_hash"
199 ]
200 },
201 {
202 "statementType": "create_index",
203 "statementTarget": [
204 "index",
205 "public",
206 "relay_environment_credentials",
207 "idx_relay_environment_credentials_environment"
208 ],
209 "writes": [
210 "s|idx|public.idx_relay_environment_credentials_environment",
211 "n|idx|public.idx_relay_environment_credentials_environment",
212 "e|idx|public.idx_relay_environment_credentials_environment",
213 "n|rel|public.idx_relay_environment_credentials_environment"
214 ],
215 "reads": [
216 "n|tbl|public.relay_environment_credentials",
217 "n|sch|public",
218 "n|col|public.relay_environment_credentials.environment_id",
219 "n|col|public.relay_environment_credentials.revoked_at"
220 ]
221 },
222 {
223 "statementType": "create_index",
224 "statementTarget": [
225 "index",
226 "public",
227 "relay_environment_credentials",
228 "idx_relay_environment_credentials_environment_key"
229 ],
230 "writes": [
231 "s|idx|public.idx_relay_environment_credentials_environment_key",
232 "n|idx|public.idx_relay_environment_credentials_environment_key",
233 "e|idx|public.idx_relay_environment_credentials_environment_key",
234 "n|rel|public.idx_relay_environment_credentials_environment_key"
235 ],
236 "reads": [
237 "n|tbl|public.relay_environment_credentials",
238 "n|sch|public",
239 "n|col|public.relay_environment_credentials.environment_id",
240 "n|col|public.relay_environment_credentials.environment_public_key",
241 "n|col|public.relay_environment_credentials.revoked_at"
242 ]
243 },
244 {
245 "statementType": "create_index",
246 "statementTarget": [
247 "index",
248 "public",
249 "relay_environment_links",
250 "idx_relay_environment_links_environment"
251 ],
252 "writes": [
253 "s|idx|public.idx_relay_environment_links_environment",
254 "n|idx|public.idx_relay_environment_links_environment",
255 "e|idx|public.idx_relay_environment_links_environment",
256 "n|rel|public.idx_relay_environment_links_environment"
257 ],
258 "reads": [
259 "n|tbl|public.relay_environment_links",
260 "n|sch|public",
261 "n|col|public.relay_environment_links.environment_id",
262 "n|col|public.relay_environment_links.revoked_at"
263 ]
264 },
265 {
266 "statementType": "create_index",
267 "statementTarget": [
268 "index",
269 "public",
270 "relay_live_activities",
271 "idx_relay_live_activities_user"
272 ],
273 "writes": [
274 "s|idx|public.idx_relay_live_activities_user",
275 "n|idx|public.idx_relay_live_activities_user",
276 "e|idx|public.idx_relay_live_activities_user",
277 "n|rel|public.idx_relay_live_activities_user"
278 ],
279 "reads": [
280 "n|tbl|public.relay_live_activities",
281 "n|sch|public",
282 "n|col|public.relay_live_activities.user_id"
283 ]
284 },
285 {
286 "statementType": "create_index",
287 "statementTarget": [
288 "index",
289 "public",
290 "relay_live_activities",
291 "idx_relay_live_activities_activity_push_token"
292 ],
293 "writes": [
294 "s|idx|public.idx_relay_live_activities_activity_push_token",
295 "n|idx|public.idx_relay_live_activities_activity_push_token",
296 "e|idx|public.idx_relay_live_activities_activity_push_token",
297 "n|rel|public.idx_relay_live_activities_activity_push_token"
298 ],
299 "reads": [
300 "n|tbl|public.relay_live_activities",
301 "n|sch|public",
302 "n|col|public.relay_live_activities.activity_push_token"
303 ]
304 },
305 {
306 "statementType": "create_index",
307 "statementTarget": [
308 "index",
309 "public",
310 "relay_mobile_devices",
311 "idx_relay_mobile_devices_user"
312 ],
313 "writes": [
314 "s|idx|public.idx_relay_mobile_devices_user",
315 "n|idx|public.idx_relay_mobile_devices_user",
316 "e|idx|public.idx_relay_mobile_devices_user",
317 "n|rel|public.idx_relay_mobile_devices_user"
318 ],
319 "reads": [
320 "n|tbl|public.relay_mobile_devices",
321 "n|sch|public",
322 "n|col|public.relay_mobile_devices.user_id"
323 ]
324 },
325 {
326 "statementType": "create_index",
327 "statementTarget": [
328 "index",
329 "public",
330 "relay_mobile_devices",
331 "idx_relay_mobile_devices_push_token"
332 ],
333 "writes": [
334 "s|idx|public.idx_relay_mobile_devices_push_token",
335 "n|idx|public.idx_relay_mobile_devices_push_token",
336 "e|idx|public.idx_relay_mobile_devices_push_token",
337 "n|rel|public.idx_relay_mobile_devices_push_token"
338 ],
339 "reads": [
340 "n|tbl|public.relay_mobile_devices",
341 "n|sch|public",
342 "n|col|public.relay_mobile_devices.push_token"
343 ]
344 },
345 {
346 "statementType": "create_index",
347 "statementTarget": [
348 "index",
349 "public",
350 "relay_mobile_devices",
351 "idx_relay_mobile_devices_push_to_start_token"
352 ],
353 "writes": [
354 "s|idx|public.idx_relay_mobile_devices_push_to_start_token",
355 "n|idx|public.idx_relay_mobile_devices_push_to_start_token",
356 "e|idx|public.idx_relay_mobile_devices_push_to_start_token",
357 "n|rel|public.idx_relay_mobile_devices_push_to_start_token"
358 ],
359 "reads": [
360 "n|tbl|public.relay_mobile_devices",
361 "n|sch|public",
362 "n|col|public.relay_mobile_devices.push_to_start_token"
363 ]
364 }
365 ],
366 "ddl": [
367 {
368 "schema": "public",
369 "name": "relay_agent_activity_rows",
370 "isRlsEnabled": false,
371 "entityType": "tables"
372 },
373 {
374 "schema": "public",
375 "name": "relay_delivery_attempts",
376 "isRlsEnabled": false,
377 "entityType": "tables"
378 },
379 {
380 "schema": "public",
381 "name": "relay_dpop_proofs",
382 "isRlsEnabled": false,
383 "entityType": "tables"
384 },
385 {
386 "schema": "public",
387 "name": "relay_environment_credentials",
388 "isRlsEnabled": false,
389 "entityType": "tables"
390 },
391 {
392 "schema": "public",
393 "name": "relay_environment_links",
394 "isRlsEnabled": false,
395 "entityType": "tables"
396 },
397 {
398 "schema": "public",
399 "name": "relay_live_activities",
400 "isRlsEnabled": false,
401 "entityType": "tables"
402 },
403 {
404 "schema": "public",
405 "name": "relay_mobile_devices",
406 "isRlsEnabled": false,
407 "entityType": "tables"
408 },
409 {
410 "schema": "public",
411 "table": "relay_agent_activity_rows",
412 "name": "environment_id",
413 "type": "varchar(191)",
414 "typeSchema": null,
415 "notNull": true,
416 "dimensions": 0,
417 "default": null,
418 "generated": null,
419 "identity": null,
420 "entityType": "columns"
421 },
422 {
423 "schema": "public",
424 "table": "relay_agent_activity_rows",
425 "name": "environment_public_key",
426 "type": "text",
427 "typeSchema": null,
428 "notNull": true,
429 "dimensions": 0,
430 "default": null,
431 "generated": null,
432 "identity": null,
433 "entityType": "columns"
434 },
435 {
436 "schema": "public",
437 "table": "relay_agent_activity_rows",
438 "name": "thread_id",
439 "type": "varchar(191)",
440 "typeSchema": null,
441 "notNull": true,
442 "dimensions": 0,
443 "default": null,
444 "generated": null,
445 "identity": null,
446 "entityType": "columns"
447 },
448 {
449 "schema": "public",
450 "table": "relay_agent_activity_rows",
451 "name": "state_json",
452 "type": "jsonb",
453 "typeSchema": null,
454 "notNull": true,
455 "dimensions": 0,
456 "default": null,
457 "generated": null,
458 "identity": null,
459 "entityType": "columns"
460 },
461 {
462 "schema": "public",
463 "table": "relay_agent_activity_rows",
464 "name": "updated_at",
465 "type": "varchar(64)",
466 "typeSchema": null,
467 "notNull": true,
468 "dimensions": 0,
469 "default": null,
470 "generated": null,
471 "identity": null,
472 "entityType": "columns"
473 },
474 {
475 "schema": "public",
476 "table": "relay_agent_activity_rows",
477 "name": "created_at",
478 "type": "varchar(64)",
479 "typeSchema": null,
480 "notNull": true,
481 "dimensions": 0,
482 "default": null,
483 "generated": null,
484 "identity": null,
485 "entityType": "columns"
486 },
487 {
488 "schema": "public",
489 "table": "relay_delivery_attempts",
490 "name": "id",
491 "type": "varchar(36)",
492 "typeSchema": null,
493 "notNull": true,
494 "dimensions": 0,
495 "default": null,
496 "generated": null,
497 "identity": null,
498 "entityType": "columns"
499 },
500 {
501 "schema": "public",
502 "table": "relay_delivery_attempts",
503 "name": "created_at",
504 "type": "varchar(64)",
505 "typeSchema": null,
506 "notNull": true,
507 "dimensions": 0,
508 "default": null,
509 "generated": null,
510 "identity": null,
511 "entityType": "columns"
512 },
513 {
514 "schema": "public",
515 "table": "relay_delivery_attempts",
516 "name": "user_id",
517 "type": "varchar(255)",
518 "typeSchema": null,
519 "notNull": false,
520 "dimensions": 0,
521 "default": null,
522 "generated": null,
523 "identity": null,
524 "entityType": "columns"
525 },
526 {
527 "schema": "public",
528 "table": "relay_delivery_attempts",
529 "name": "environment_id",
530 "type": "varchar(191)",
531 "typeSchema": null,
532 "notNull": false,
533 "dimensions": 0,
534 "default": null,
535 "generated": null,
536 "identity": null,
537 "entityType": "columns"
538 },
539 {
540 "schema": "public",
541 "table": "relay_delivery_attempts",
542 "name": "thread_id",
543 "type": "varchar(191)",
544 "typeSchema": null,
545 "notNull": false,
546 "dimensions": 0,
547 "default": null,
548 "generated": null,
549 "identity": null,
550 "entityType": "columns"
551 },
552 {
553 "schema": "public",
554 "table": "relay_delivery_attempts",
555 "name": "device_id",
556 "type": "varchar(255)",
557 "typeSchema": null,
558 "notNull": false,
559 "dimensions": 0,
560 "default": null,
561 "generated": null,
562 "identity": null,
563 "entityType": "columns"
564 },
565 {
566 "schema": "public",
567 "table": "relay_delivery_attempts",
568 "name": "kind",
569 "type": "varchar(64)",
570 "typeSchema": null,
571 "notNull": true,
572 "dimensions": 0,
573 "default": null,
574 "generated": null,
575 "identity": null,
576 "entityType": "columns"
577 },
578 {
579 "schema": "public",
580 "table": "relay_delivery_attempts",
581 "name": "source_job_id",
582 "type": "varchar(64)",
583 "typeSchema": null,
584 "notNull": false,
585 "dimensions": 0,
586 "default": null,
587 "generated": null,
588 "identity": null,
589 "entityType": "columns"
590 },
591 {
592 "schema": "public",
593 "table": "relay_delivery_attempts",
594 "name": "token_suffix",
595 "type": "varchar(16)",
596 "typeSchema": null,
597 "notNull": false,
598 "dimensions": 0,
599 "default": null,
600 "generated": null,
601 "identity": null,
602 "entityType": "columns"
603 },
604 {
605 "schema": "public",
606 "table": "relay_delivery_attempts",
607 "name": "apns_status",
608 "type": "integer",
609 "typeSchema": null,
610 "notNull": false,
611 "dimensions": 0,
612 "default": null,
613 "generated": null,
614 "identity": null,
615 "entityType": "columns"
616 },
617 {
618 "schema": "public",
619 "table": "relay_delivery_attempts",
620 "name": "apns_reason",
621 "type": "text",
622 "typeSchema": null,
623 "notNull": false,
624 "dimensions": 0,
625 "default": null,
626 "generated": null,
627 "identity": null,
628 "entityType": "columns"
629 },
630 {
631 "schema": "public",
632 "table": "relay_delivery_attempts",
633 "name": "apns_id",
634 "type": "varchar(128)",
635 "typeSchema": null,
636 "notNull": false,
637 "dimensions": 0,
638 "default": null,
639 "generated": null,
640 "identity": null,
641 "entityType": "columns"
642 },
643 {
644 "schema": "public",
645 "table": "relay_delivery_attempts",
646 "name": "transport_error",
647 "type": "text",
648 "typeSchema": null,
649 "notNull": false,
650 "dimensions": 0,
651 "default": null,
652 "generated": null,
653 "identity": null,
654 "entityType": "columns"
655 },
656 {
657 "schema": "public",
658 "table": "relay_dpop_proofs",
659 "name": "thumbprint",
660 "type": "varchar(128)",
661 "typeSchema": null,
662 "notNull": true,
663 "dimensions": 0,
664 "default": null,
665 "generated": null,
666 "identity": null,
667 "entityType": "columns"
668 },
669 {
670 "schema": "public",
671 "table": "relay_dpop_proofs",
672 "name": "jti",
673 "type": "varchar(255)",
674 "typeSchema": null,
675 "notNull": true,
676 "dimensions": 0,
677 "default": null,
678 "generated": null,
679 "identity": null,
680 "entityType": "columns"
681 },
682 {
683 "schema": "public",
684 "table": "relay_dpop_proofs",
685 "name": "iat",
686 "type": "integer",
687 "typeSchema": null,
688 "notNull": true,
689 "dimensions": 0,
690 "default": null,
691 "generated": null,
692 "identity": null,
693 "entityType": "columns"
694 },
695 {
696 "schema": "public",
697 "table": "relay_dpop_proofs",
698 "name": "expires_at",
699 "type": "varchar(64)",
700 "typeSchema": null,
701 "notNull": true,
702 "dimensions": 0,
703 "default": null,
704 "generated": null,
705 "identity": null,
706 "entityType": "columns"
707 },
708 {
709 "schema": "public",
710 "table": "relay_dpop_proofs",
711 "name": "created_at",
712 "type": "varchar(64)",
713 "typeSchema": null,
714 "notNull": true,
715 "dimensions": 0,
716 "default": null,
717 "generated": null,
718 "identity": null,
719 "entityType": "columns"
720 },
721 {
722 "schema": "public",
723 "table": "relay_environment_credentials",
724 "name": "credential_id",
725 "type": "varchar(64)",
726 "typeSchema": null,
727 "notNull": true,
728 "dimensions": 0,
729 "default": null,
730 "generated": null,
731 "identity": null,
732 "entityType": "columns"
733 },
734 {
735 "schema": "public",
736 "table": "relay_environment_credentials",
737 "name": "environment_id",
738 "type": "varchar(191)",
739 "typeSchema": null,
740 "notNull": true,
741 "dimensions": 0,
742 "default": null,
743 "generated": null,
744 "identity": null,
745 "entityType": "columns"
746 },
747 {
748 "schema": "public",
749 "table": "relay_environment_credentials",
750 "name": "environment_public_key",
751 "type": "text",
752 "typeSchema": null,
753 "notNull": true,
754 "dimensions": 0,
755 "default": null,
756 "generated": null,
757 "identity": null,
758 "entityType": "columns"
759 },
760 {
761 "schema": "public",
762 "table": "relay_environment_credentials",
763 "name": "credential_hash",
764 "type": "varchar(191)",
765 "typeSchema": null,
766 "notNull": true,
767 "dimensions": 0,
768 "default": null,
769 "generated": null,
770 "identity": null,
771 "entityType": "columns"
772 },
773 {
774 "schema": "public",
775 "table": "relay_environment_credentials",
776 "name": "revoked_at",
777 "type": "varchar(64)",
778 "typeSchema": null,
779 "notNull": false,
780 "dimensions": 0,
781 "default": null,
782 "generated": null,
783 "identity": null,
784 "entityType": "columns"
785 },
786 {
787 "schema": "public",
788 "table": "relay_environment_credentials",
789 "name": "created_at",
790 "type": "varchar(64)",
791 "typeSchema": null,
792 "notNull": true,
793 "dimensions": 0,
794 "default": null,
795 "generated": null,
796 "identity": null,
797 "entityType": "columns"
798 },
799 {
800 "schema": "public",
801 "table": "relay_environment_credentials",
802 "name": "updated_at",
803 "type": "varchar(64)",
804 "typeSchema": null,
805 "notNull": true,
806 "dimensions": 0,
807 "default": null,
808 "generated": null,
809 "identity": null,
810 "entityType": "columns"
811 },
812 {
813 "schema": "public",
814 "table": "relay_environment_links",
815 "name": "user_id",
816 "type": "varchar(191)",
817 "typeSchema": null,
818 "notNull": true,
819 "dimensions": 0,
820 "default": null,
821 "generated": null,
822 "identity": null,
823 "entityType": "columns"
824 },
825 {
826 "schema": "public",
827 "table": "relay_environment_links",
828 "name": "environment_id",
829 "type": "varchar(191)",
830 "typeSchema": null,
831 "notNull": true,
832 "dimensions": 0,
833 "default": null,
834 "generated": null,
835 "identity": null,
836 "entityType": "columns"
837 },
838 {
839 "schema": "public",
840 "table": "relay_environment_links",
841 "name": "environment_label",
842 "type": "text",
843 "typeSchema": null,
844 "notNull": true,
845 "dimensions": 0,
846 "default": "'T3 Environment'",
847 "generated": null,
848 "identity": null,
849 "entityType": "columns"
850 },
851 {
852 "schema": "public",
853 "table": "relay_environment_links",
854 "name": "environment_public_key",
855 "type": "text",
856 "typeSchema": null,
857 "notNull": true,
858 "dimensions": 0,
859 "default": null,
860 "generated": null,
861 "identity": null,
862 "entityType": "columns"
863 },
864 {
865 "schema": "public",
866 "table": "relay_environment_links",
867 "name": "endpoint_http_base_url",
868 "type": "text",
869 "typeSchema": null,
870 "notNull": true,
871 "dimensions": 0,
872 "default": null,
873 "generated": null,
874 "identity": null,
875 "entityType": "columns"
876 },
877 {
878 "schema": "public",
879 "table": "relay_environment_links",
880 "name": "endpoint_ws_base_url",
881 "type": "text",
882 "typeSchema": null,
883 "notNull": true,
884 "dimensions": 0,
885 "default": null,
886 "generated": null,
887 "identity": null,
888 "entityType": "columns"
889 },
890 {
891 "schema": "public",
892 "table": "relay_environment_links",
893 "name": "endpoint_provider_kind",
894 "type": "varchar(32)",
895 "typeSchema": null,
896 "notNull": true,
897 "dimensions": 0,
898 "default": null,
899 "generated": null,
900 "identity": null,
901 "entityType": "columns"
902 },
903 {
904 "schema": "public",
905 "table": "relay_environment_links",
906 "name": "notifications_enabled",
907 "type": "boolean",
908 "typeSchema": null,
909 "notNull": true,
910 "dimensions": 0,
911 "default": "true",
912 "generated": null,
913 "identity": null,
914 "entityType": "columns"
915 },
916 {
917 "schema": "public",
918 "table": "relay_environment_links",
919 "name": "live_activities_enabled",
920 "type": "boolean",
921 "typeSchema": null,
922 "notNull": true,
923 "dimensions": 0,
924 "default": "true",
925 "generated": null,
926 "identity": null,
927 "entityType": "columns"
928 },
929 {
930 "schema": "public",
931 "table": "relay_environment_links",
932 "name": "managed_tunnels_enabled",
933 "type": "boolean",
934 "typeSchema": null,
935 "notNull": true,
936 "dimensions": 0,
937 "default": "false",
938 "generated": null,
939 "identity": null,
940 "entityType": "columns"
941 },
942 {
943 "schema": "public",
944 "table": "relay_environment_links",
945 "name": "created_by_device_id",
946 "type": "varchar(191)",
947 "typeSchema": null,
948 "notNull": false,
949 "dimensions": 0,
950 "default": null,
951 "generated": null,
952 "identity": null,
953 "entityType": "columns"
954 },
955 {
956 "schema": "public",
957 "table": "relay_environment_links",
958 "name": "revoked_at",
959 "type": "varchar(64)",
960 "typeSchema": null,
961 "notNull": false,
962 "dimensions": 0,
963 "default": null,
964 "generated": null,
965 "identity": null,
966 "entityType": "columns"
967 },
968 {
969 "schema": "public",
970 "table": "relay_environment_links",
971 "name": "created_at",
972 "type": "varchar(64)",
973 "typeSchema": null,
974 "notNull": true,
975 "dimensions": 0,
976 "default": null,
977 "generated": null,
978 "identity": null,
979 "entityType": "columns"
980 },
981 {
982 "schema": "public",
983 "table": "relay_environment_links",
984 "name": "updated_at",
985 "type": "varchar(64)",
986 "typeSchema": null,
987 "notNull": true,
988 "dimensions": 0,
989 "default": null,
990 "generated": null,
991 "identity": null,
992 "entityType": "columns"
993 },
994 {
995 "schema": "public",
996 "table": "relay_live_activities",
997 "name": "user_id",
998 "type": "varchar(255)",
999 "typeSchema": null,
1000 "notNull": true,
1001 "dimensions": 0,
1002 "default": null,
1003 "generated": null,
1004 "identity": null,
1005 "entityType": "columns"
1006 },
1007 {
1008 "schema": "public",
1009 "table": "relay_live_activities",
1010 "name": "device_id",
1011 "type": "varchar(255)",
1012 "typeSchema": null,
1013 "notNull": true,
1014 "dimensions": 0,
1015 "default": null,
1016 "generated": null,
1017 "identity": null,
1018 "entityType": "columns"
1019 },
1020 {
1021 "schema": "public",
1022 "table": "relay_live_activities",
1023 "name": "activity_push_token",
1024 "type": "text",
1025 "typeSchema": null,
1026 "notNull": false,
1027 "dimensions": 0,
1028 "default": null,
1029 "generated": null,
1030 "identity": null,
1031 "entityType": "columns"
1032 },
1033 {
1034 "schema": "public",
1035 "table": "relay_live_activities",
1036 "name": "remote_start_queued_at",
1037 "type": "varchar(64)",
1038 "typeSchema": null,
1039 "notNull": false,
1040 "dimensions": 0,
1041 "default": null,
1042 "generated": null,
1043 "identity": null,
1044 "entityType": "columns"
1045 },
1046 {
1047 "schema": "public",
1048 "table": "relay_live_activities",
1049 "name": "remote_started_at",
1050 "type": "varchar(64)",
1051 "typeSchema": null,
1052 "notNull": false,
1053 "dimensions": 0,
1054 "default": null,
1055 "generated": null,
1056 "identity": null,
1057 "entityType": "columns"
1058 },
1059 {
1060 "schema": "public",
1061 "table": "relay_live_activities",
1062 "name": "ended_at",
1063 "type": "varchar(64)",
1064 "typeSchema": null,
1065 "notNull": false,
1066 "dimensions": 0,
1067 "default": null,
1068 "generated": null,
1069 "identity": null,
1070 "entityType": "columns"
1071 },
1072 {
1073 "schema": "public",
1074 "table": "relay_live_activities",
1075 "name": "last_aggregate_json",
1076 "type": "jsonb",
1077 "typeSchema": null,
1078 "notNull": false,
1079 "dimensions": 0,
1080 "default": null,
1081 "generated": null,
1082 "identity": null,
1083 "entityType": "columns"
1084 },
1085 {
1086 "schema": "public",
1087 "table": "relay_live_activities",
1088 "name": "last_live_activity_delivery_at",
1089 "type": "varchar(64)",
1090 "typeSchema": null,
1091 "notNull": false,
1092 "dimensions": 0,
1093 "default": null,
1094 "generated": null,
1095 "identity": null,
1096 "entityType": "columns"
1097 },
1098 {
1099 "schema": "public",
1100 "table": "relay_live_activities",
1101 "name": "created_at",
1102 "type": "varchar(64)",
1103 "typeSchema": null,
1104 "notNull": true,
1105 "dimensions": 0,
1106 "default": null,
1107 "generated": null,
1108 "identity": null,
1109 "entityType": "columns"
1110 },
1111 {
1112 "schema": "public",
1113 "table": "relay_live_activities",
1114 "name": "updated_at",
1115 "type": "varchar(64)",
1116 "typeSchema": null,
1117 "notNull": true,
1118 "dimensions": 0,
1119 "default": null,
1120 "generated": null,
1121 "identity": null,
1122 "entityType": "columns"
1123 },
1124 {
1125 "schema": "public",
1126 "table": "relay_mobile_devices",
1127 "name": "user_id",
1128 "type": "varchar(255)",
1129 "typeSchema": null,
1130 "notNull": true,
1131 "dimensions": 0,
1132 "default": null,
1133 "generated": null,
1134 "identity": null,
1135 "entityType": "columns"
1136 },
1137 {
1138 "schema": "public",
1139 "table": "relay_mobile_devices",
1140 "name": "device_id",
1141 "type": "varchar(255)",
1142 "typeSchema": null,
1143 "notNull": true,
1144 "dimensions": 0,
1145 "default": null,
1146 "generated": null,
1147 "identity": null,
1148 "entityType": "columns"
1149 },
1150 {
1151 "schema": "public",
1152 "table": "relay_mobile_devices",
1153 "name": "platform",
1154 "type": "varchar(16)",
1155 "typeSchema": null,
1156 "notNull": true,
1157 "dimensions": 0,
1158 "default": null,
1159 "generated": null,
1160 "identity": null,
1161 "entityType": "columns"
1162 },
1163 {
1164 "schema": "public",
1165 "table": "relay_mobile_devices",
1166 "name": "ios_major_version",
1167 "type": "integer",
1168 "typeSchema": null,
1169 "notNull": true,
1170 "dimensions": 0,
1171 "default": null,
1172 "generated": null,
1173 "identity": null,
1174 "entityType": "columns"
1175 },
1176 {
1177 "schema": "public",
1178 "table": "relay_mobile_devices",
1179 "name": "app_version",
1180 "type": "varchar(64)",
1181 "typeSchema": null,
1182 "notNull": false,
1183 "dimensions": 0,
1184 "default": null,
1185 "generated": null,
1186 "identity": null,
1187 "entityType": "columns"
1188 },
1189 {
1190 "schema": "public",
1191 "table": "relay_mobile_devices",
1192 "name": "push_token",
1193 "type": "text",
1194 "typeSchema": null,
1195 "notNull": false,
1196 "dimensions": 0,
1197 "default": null,
1198 "generated": null,
1199 "identity": null,
1200 "entityType": "columns"
1201 },
1202 {
1203 "schema": "public",
1204 "table": "relay_mobile_devices",
1205 "name": "push_to_start_token",
1206 "type": "text",
1207 "typeSchema": null,
1208 "notNull": false,
1209 "dimensions": 0,
1210 "default": null,
1211 "generated": null,
1212 "identity": null,
1213 "entityType": "columns"
1214 },
1215 {
1216 "schema": "public",
1217 "table": "relay_mobile_devices",
1218 "name": "preferences_json",
1219 "type": "jsonb",
1220 "typeSchema": null,
1221 "notNull": true,
1222 "dimensions": 0,
1223 "default": null,
1224 "generated": null,
1225 "identity": null,
1226 "entityType": "columns"
1227 },
1228 {
1229 "schema": "public",
1230 "table": "relay_mobile_devices",
1231 "name": "created_at",
1232 "type": "varchar(64)",
1233 "typeSchema": null,
1234 "notNull": true,
1235 "dimensions": 0,
1236 "default": null,
1237 "generated": null,
1238 "identity": null,
1239 "entityType": "columns"
1240 },
1241 {
1242 "schema": "public",
1243 "table": "relay_mobile_devices",
1244 "name": "updated_at",
1245 "type": "varchar(64)",
1246 "typeSchema": null,
1247 "notNull": true,
1248 "dimensions": 0,
1249 "default": null,
1250 "generated": null,
1251 "identity": null,
1252 "entityType": "columns"
1253 },
1254 {
1255 "schema": "public",
1256 "table": "relay_agent_activity_rows",
1257 "name": "idx_relay_agent_activity_rows_updated",
1258 "nameExplicit": true,
1259 "columns": [
1260 {
1261 "value": "updated_at",
1262 "isExpression": false,
1263 "asc": true,
1264 "nullsFirst": false,
1265 "opclass": null
1266 }
1267 ],
1268 "isUnique": false,
1269 "where": null,
1270 "with": "",
1271 "method": "btree",
1272 "concurrently": false,
1273 "entityType": "indexes"
1274 },
1275 {
1276 "schema": "public",
1277 "table": "relay_delivery_attempts",
1278 "name": "idx_relay_delivery_attempts_environment",
1279 "nameExplicit": true,
1280 "columns": [
1281 {
1282 "value": "environment_id",
1283 "isExpression": false,
1284 "asc": true,
1285 "nullsFirst": false,
1286 "opclass": null
1287 },
1288 {
1289 "value": "thread_id",
1290 "isExpression": false,
1291 "asc": true,
1292 "nullsFirst": false,
1293 "opclass": null
1294 },
1295 {
1296 "value": "created_at",
1297 "isExpression": false,
1298 "asc": true,
1299 "nullsFirst": false,
1300 "opclass": null
1301 }
1302 ],
1303 "isUnique": false,
1304 "where": null,
1305 "with": "",
1306 "method": "btree",
1307 "concurrently": false,
1308 "entityType": "indexes"
1309 },
1310 {
1311 "schema": "public",
1312 "table": "relay_delivery_attempts",
1313 "name": "idx_relay_delivery_attempts_source_job",
1314 "nameExplicit": true,
1315 "columns": [
1316 {
1317 "value": "source_job_id",
1318 "isExpression": false,
1319 "asc": true,
1320 "nullsFirst": false,
1321 "opclass": null
1322 }
1323 ],
1324 "isUnique": true,
1325 "where": null,
1326 "with": "",
1327 "method": "btree",
1328 "concurrently": false,
1329 "entityType": "indexes"
1330 },
1331 {
1332 "schema": "public",
1333 "table": "relay_dpop_proofs",
1334 "name": "idx_relay_dpop_proofs_expires_at",
1335 "nameExplicit": true,
1336 "columns": [
1337 {
1338 "value": "expires_at",
1339 "isExpression": false,
1340 "asc": true,
1341 "nullsFirst": false,
1342 "opclass": null
1343 }
1344 ],
1345 "isUnique": false,
1346 "where": null,
1347 "with": "",
1348 "method": "btree",
1349 "concurrently": false,
1350 "entityType": "indexes"
1351 },
1352 {
1353 "schema": "public",
1354 "table": "relay_environment_credentials",
1355 "name": "idx_relay_environment_credentials_hash",
1356 "nameExplicit": true,
1357 "columns": [
1358 {
1359 "value": "credential_hash",
1360 "isExpression": false,
1361 "asc": true,
1362 "nullsFirst": false,
1363 "opclass": null
1364 }
1365 ],
1366 "isUnique": true,
1367 "where": null,
1368 "with": "",
1369 "method": "btree",
1370 "concurrently": false,
1371 "entityType": "indexes"
1372 },
1373 {
1374 "schema": "public",
1375 "table": "relay_environment_credentials",
1376 "name": "idx_relay_environment_credentials_environment",
1377 "nameExplicit": true,
1378 "columns": [
1379 {
1380 "value": "environment_id",
1381 "isExpression": false,
1382 "asc": true,
1383 "nullsFirst": false,
1384 "opclass": null
1385 },
1386 {
1387 "value": "revoked_at",
1388 "isExpression": false,
1389 "asc": true,
1390 "nullsFirst": false,
1391 "opclass": null
1392 }
1393 ],
1394 "isUnique": false,
1395 "where": null,
1396 "with": "",
1397 "method": "btree",
1398 "concurrently": false,
1399 "entityType": "indexes"
1400 },
1401 {
1402 "schema": "public",
1403 "table": "relay_environment_credentials",
1404 "name": "idx_relay_environment_credentials_environment_key",
1405 "nameExplicit": true,
1406 "columns": [
1407 {
1408 "value": "environment_id",
1409 "isExpression": false,
1410 "asc": true,
1411 "nullsFirst": false,
1412 "opclass": null
1413 },
1414 {
1415 "value": "environment_public_key",
1416 "isExpression": false,
1417 "asc": true,
1418 "nullsFirst": false,
1419 "opclass": null
1420 },
1421 {
1422 "value": "revoked_at",
1423 "isExpression": false,
1424 "asc": true,
1425 "nullsFirst": false,
1426 "opclass": null
1427 }
1428 ],
1429 "isUnique": false,
1430 "where": null,
1431 "with": "",
1432 "method": "btree",
1433 "concurrently": false,
1434 "entityType": "indexes"
1435 },
1436 {
1437 "schema": "public",
1438 "table": "relay_environment_links",
1439 "name": "idx_relay_environment_links_environment",
1440 "nameExplicit": true,
1441 "columns": [
1442 {
1443 "value": "environment_id",
1444 "isExpression": false,
1445 "asc": true,
1446 "nullsFirst": false,
1447 "opclass": null
1448 },
1449 {
1450 "value": "revoked_at",
1451 "isExpression": false,
1452 "asc": true,
1453 "nullsFirst": false,
1454 "opclass": null
1455 }
1456 ],
1457 "isUnique": false,
1458 "where": null,
1459 "with": "",
1460 "method": "btree",
1461 "concurrently": false,
1462 "entityType": "indexes"
1463 },
1464 {
1465 "schema": "public",
1466 "table": "relay_live_activities",
1467 "name": "idx_relay_live_activities_user",
1468 "nameExplicit": true,
1469 "columns": [
1470 {
1471 "value": "user_id",
1472 "isExpression": false,
1473 "asc": true,
1474 "nullsFirst": false,
1475 "opclass": null
1476 }
1477 ],
1478 "isUnique": false,
1479 "where": null,
1480 "with": "",
1481 "method": "btree",
1482 "concurrently": false,
1483 "entityType": "indexes"
1484 },
1485 {
1486 "schema": "public",
1487 "table": "relay_live_activities",
1488 "name": "idx_relay_live_activities_activity_push_token",
1489 "nameExplicit": true,
1490 "columns": [
1491 {
1492 "value": "activity_push_token",
1493 "isExpression": false,
1494 "asc": true,
1495 "nullsFirst": false,
1496 "opclass": null
1497 }
1498 ],
1499 "isUnique": true,
1500 "where": null,
1501 "with": "",
1502 "method": "btree",
1503 "concurrently": false,
1504 "entityType": "indexes"
1505 },
1506 {
1507 "schema": "public",
1508 "table": "relay_mobile_devices",
1509 "name": "idx_relay_mobile_devices_user",
1510 "nameExplicit": true,
1511 "columns": [
1512 {
1513 "value": "user_id",
1514 "isExpression": false,
1515 "asc": true,
1516 "nullsFirst": false,
1517 "opclass": null
1518 }
1519 ],
1520 "isUnique": false,
1521 "where": null,
1522 "with": "",
1523 "method": "btree",
1524 "concurrently": false,
1525 "entityType": "indexes"
1526 },
1527 {
1528 "schema": "public",
1529 "table": "relay_mobile_devices",
1530 "name": "idx_relay_mobile_devices_push_token",
1531 "nameExplicit": true,
1532 "columns": [
1533 {
1534 "value": "push_token",
1535 "isExpression": false,
1536 "asc": true,
1537 "nullsFirst": false,
1538 "opclass": null
1539 }
1540 ],
1541 "isUnique": true,
1542 "where": null,
1543 "with": "",
1544 "method": "btree",
1545 "concurrently": false,
1546 "entityType": "indexes"
1547 },
1548 {
1549 "schema": "public",
1550 "table": "relay_mobile_devices",
1551 "name": "idx_relay_mobile_devices_push_to_start_token",
1552 "nameExplicit": true,
1553 "columns": [
1554 {
1555 "value": "push_to_start_token",
1556 "isExpression": false,
1557 "asc": true,
1558 "nullsFirst": false,
1559 "opclass": null
1560 }
1561 ],
1562 "isUnique": true,
1563 "where": null,
1564 "with": "",
1565 "method": "btree",
1566 "concurrently": false,
1567 "entityType": "indexes"
1568 },
1569 {
1570 "schema": "public",
1571 "table": "relay_agent_activity_rows",
1572 "name": "relay_agent_activity_rows_pkey",
1573 "columns": ["environment_id", "environment_public_key", "thread_id"],
1574 "nameExplicit": false,
1575 "entityType": "pks"
1576 },
1577 {
1578 "schema": "public",
1579 "table": "relay_dpop_proofs",
1580 "name": "relay_dpop_proofs_pkey",
1581 "columns": ["thumbprint", "jti"],
1582 "nameExplicit": false,
1583 "entityType": "pks"
1584 },
1585 {
1586 "schema": "public",
1587 "table": "relay_environment_links",
1588 "name": "relay_environment_links_pkey",
1589 "columns": ["user_id", "environment_id"],
1590 "nameExplicit": false,
1591 "entityType": "pks"
1592 },
1593 {
1594 "schema": "public",
1595 "table": "relay_live_activities",
1596 "name": "relay_live_activities_pkey",
1597 "columns": ["user_id", "device_id"],
1598 "nameExplicit": false,
1599 "entityType": "pks"
1600 },
1601 {
1602 "schema": "public",
1603 "table": "relay_mobile_devices",
1604 "name": "relay_mobile_devices_pkey",
1605 "columns": ["user_id", "device_id"],
1606 "nameExplicit": false,
1607 "entityType": "pks"
1608 },
1609 {
1610 "schema": "public",
1611 "table": "relay_delivery_attempts",
1612 "name": "relay_delivery_attempts_pkey",
1613 "columns": ["id"],
1614 "nameExplicit": false,
1615 "entityType": "pks"
1616 },
1617 {
1618 "schema": "public",
1619 "table": "relay_environment_credentials",
1620 "name": "relay_environment_credentials_pkey",
1621 "columns": ["credential_id"],
1622 "nameExplicit": false,
1623 "entityType": "pks"
1624 }
1625 ]
1626 }