@devries-cameron20 / t3code-1 / commits / dd5f98eeec
Fork 0

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

fix(relay): use released drizzle rc.5 and fail installs on unmet peers (#31016)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Nov 4, 2026 at 09:28 UTC dd5f98eeecad5db5b10314296221df115f130fbd
18 files changed +1706 -20556
infra/relay/migrations/postgres/20260527044716_baseline/snapshot.json
+721 -362
@@ -1,52 +1,415 @@
1 {
2 - "version": "8",
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 {
8 - "isRlsEnabled": false,
368 + "schema": "public",
369 "name": "relay_agent_activity_rows",
10 - "entityType": "tables",
11 - "schema": "public"
370 + "isRlsEnabled": false,
371 + "entityType": "tables"
372 },
373 {
14 - "isRlsEnabled": false,
374 + "schema": "public",
375 "name": "relay_delivery_attempts",
16 - "entityType": "tables",
17 - "schema": "public"
376 + "isRlsEnabled": false,
377 + "entityType": "tables"
378 },
379 {
20 - "isRlsEnabled": false,
380 + "schema": "public",
381 "name": "relay_dpop_proofs",
22 - "entityType": "tables",
23 - "schema": "public"
382 + "isRlsEnabled": false,
383 + "entityType": "tables"
384 },
385 {
26 - "isRlsEnabled": false,
386 + "schema": "public",
387 "name": "relay_environment_credentials",
28 - "entityType": "tables",
29 - "schema": "public"
388 + "isRlsEnabled": false,
389 + "entityType": "tables"
390 },
391 {
32 - "isRlsEnabled": false,
392 + "schema": "public",
393 "name": "relay_environment_links",
34 - "entityType": "tables",
35 - "schema": "public"
394 + "isRlsEnabled": false,
395 + "entityType": "tables"
396 },
397 {
38 - "isRlsEnabled": false,
398 + "schema": "public",
399 "name": "relay_live_activities",
40 - "entityType": "tables",
41 - "schema": "public"
400 + "isRlsEnabled": false,
401 + "entityType": "tables"
402 },
403 {
44 - "isRlsEnabled": false,
404 + "schema": "public",
405 "name": "relay_mobile_devices",
46 - "entityType": "tables",
47 - "schema": "public"
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,
@@ -54,12 +417,12 @@
417 "default": null,
418 "generated": null,
419 "identity": null,
57 - "name": "environment_id",
58 - "entityType": "columns",
59 - "schema": "public",
60 - "table": "relay_agent_activity_rows"
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,
@@ -67,12 +430,12 @@
430 "default": null,
431 "generated": null,
432 "identity": null,
70 - "name": "environment_public_key",
71 - "entityType": "columns",
72 - "schema": "public",
73 - "table": "relay_agent_activity_rows"
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,
@@ -80,12 +443,12 @@
443 "default": null,
444 "generated": null,
445 "identity": null,
83 - "name": "thread_id",
84 - "entityType": "columns",
85 - "schema": "public",
86 - "table": "relay_agent_activity_rows"
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,
@@ -93,12 +456,12 @@
456 "default": null,
457 "generated": null,
458 "identity": null,
96 - "name": "state_json",
97 - "entityType": "columns",
98 - "schema": "public",
99 - "table": "relay_agent_activity_rows"
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,
@@ -106,12 +469,12 @@
469 "default": null,
470 "generated": null,
471 "identity": null,
109 - "name": "updated_at",
110 - "entityType": "columns",
111 - "schema": "public",
112 - "table": "relay_agent_activity_rows"
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,
@@ -119,12 +482,12 @@
482 "default": null,
483 "generated": null,
484 "identity": null,
122 - "name": "created_at",
123 - "entityType": "columns",
124 - "schema": "public",
125 - "table": "relay_agent_activity_rows"
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,
@@ -132,12 +495,12 @@
495 "default": null,
496 "generated": null,
497 "identity": null,
135 - "name": "id",
136 - "entityType": "columns",
137 - "schema": "public",
138 - "table": "relay_delivery_attempts"
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,
@@ -145,12 +508,12 @@
508 "default": null,
509 "generated": null,
510 "identity": null,
148 - "name": "created_at",
149 - "entityType": "columns",
150 - "schema": "public",
151 - "table": "relay_delivery_attempts"
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,
@@ -158,12 +521,12 @@
521 "default": null,
522 "generated": null,
523 "identity": null,
161 - "name": "user_id",
162 - "entityType": "columns",
163 - "schema": "public",
164 - "table": "relay_delivery_attempts"
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,
@@ -171,12 +534,12 @@
534 "default": null,
535 "generated": null,
536 "identity": null,
174 - "name": "environment_id",
175 - "entityType": "columns",
176 - "schema": "public",
177 - "table": "relay_delivery_attempts"
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,
@@ -184,12 +547,12 @@
547 "default": null,
548 "generated": null,
549 "identity": null,
187 - "name": "thread_id",
188 - "entityType": "columns",
189 - "schema": "public",
190 - "table": "relay_delivery_attempts"
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,
@@ -197,12 +560,12 @@
560 "default": null,
561 "generated": null,
562 "identity": null,
200 - "name": "device_id",
201 - "entityType": "columns",
202 - "schema": "public",
203 - "table": "relay_delivery_attempts"
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,
@@ -210,12 +573,12 @@
573 "default": null,
574 "generated": null,
575 "identity": null,
213 - "name": "kind",
214 - "entityType": "columns",
215 - "schema": "public",
216 - "table": "relay_delivery_attempts"
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,
@@ -223,12 +586,12 @@
586 "default": null,
587 "generated": null,
588 "identity": null,
226 - "name": "source_job_id",
227 - "entityType": "columns",
228 - "schema": "public",
229 - "table": "relay_delivery_attempts"
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,
@@ -236,12 +599,12 @@
599 "default": null,
600 "generated": null,
601 "identity": null,
239 - "name": "token_suffix",
240 - "entityType": "columns",
241 - "schema": "public",
242 - "table": "relay_delivery_attempts"
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,
@@ -249,12 +612,12 @@
612 "default": null,
613 "generated": null,
614 "identity": null,
252 - "name": "apns_status",
253 - "entityType": "columns",
254 - "schema": "public",
255 - "table": "relay_delivery_attempts"
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,
@@ -262,12 +625,12 @@
625 "default": null,
626 "generated": null,
627 "identity": null,
265 - "name": "apns_reason",
266 - "entityType": "columns",
267 - "schema": "public",
268 - "table": "relay_delivery_attempts"
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,
@@ -275,12 +638,12 @@
638 "default": null,
639 "generated": null,
640 "identity": null,
278 - "name": "apns_id",
279 - "entityType": "columns",
280 - "schema": "public",
281 - "table": "relay_delivery_attempts"
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,
@@ -288,12 +651,12 @@
651 "default": null,
652 "generated": null,
653 "identity": null,
291 - "name": "transport_error",
292 - "entityType": "columns",
293 - "schema": "public",
294 - "table": "relay_delivery_attempts"
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,
@@ -301,12 +664,12 @@
664 "default": null,
665 "generated": null,
666 "identity": null,
304 - "name": "thumbprint",
305 - "entityType": "columns",
306 - "schema": "public",
307 - "table": "relay_dpop_proofs"
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,
@@ -314,12 +677,12 @@
677 "default": null,
678 "generated": null,
679 "identity": null,
317 - "name": "jti",
318 - "entityType": "columns",
319 - "schema": "public",
320 - "table": "relay_dpop_proofs"
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,
@@ -327,12 +690,12 @@
690 "default": null,
691 "generated": null,
692 "identity": null,
330 - "name": "iat",
331 - "entityType": "columns",
332 - "schema": "public",
333 - "table": "relay_dpop_proofs"
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,
@@ -340,12 +703,12 @@
703 "default": null,
704 "generated": null,
705 "identity": null,
343 - "name": "expires_at",
344 - "entityType": "columns",
345 - "schema": "public",
346 - "table": "relay_dpop_proofs"
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,
@@ -353,12 +716,12 @@
716 "default": null,
717 "generated": null,
718 "identity": null,
356 - "name": "created_at",
357 - "entityType": "columns",
358 - "schema": "public",
359 - "table": "relay_dpop_proofs"
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,
@@ -366,12 +729,12 @@
729 "default": null,
730 "generated": null,
731 "identity": null,
369 - "name": "credential_id",
370 - "entityType": "columns",
371 - "schema": "public",
372 - "table": "relay_environment_credentials"
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,
@@ -379,12 +742,12 @@
742 "default": null,
743 "generated": null,
744 "identity": null,
382 - "name": "environment_id",
383 - "entityType": "columns",
384 - "schema": "public",
385 - "table": "relay_environment_credentials"
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,
@@ -392,12 +755,12 @@
755 "default": null,
756 "generated": null,
757 "identity": null,
395 - "name": "environment_public_key",
396 - "entityType": "columns",
397 - "schema": "public",
398 - "table": "relay_environment_credentials"
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,
@@ -405,12 +768,12 @@
768 "default": null,
769 "generated": null,
770 "identity": null,
408 - "name": "credential_hash",
409 - "entityType": "columns",
410 - "schema": "public",
411 - "table": "relay_environment_credentials"
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,
@@ -418,12 +781,12 @@
781 "default": null,
782 "generated": null,
783 "identity": null,
421 - "name": "revoked_at",
422 - "entityType": "columns",
423 - "schema": "public",
424 - "table": "relay_environment_credentials"
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,
@@ -431,12 +794,12 @@
794 "default": null,
795 "generated": null,
796 "identity": null,
434 - "name": "created_at",
435 - "entityType": "columns",
436 - "schema": "public",
437 - "table": "relay_environment_credentials"
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,
@@ -444,12 +807,12 @@
807 "default": null,
808 "generated": null,
809 "identity": null,
447 - "name": "updated_at",
448 - "entityType": "columns",
449 - "schema": "public",
450 - "table": "relay_environment_credentials"
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,
@@ -457,12 +820,12 @@
820 "default": null,
821 "generated": null,
822 "identity": null,
460 - "name": "user_id",
461 - "entityType": "columns",
462 - "schema": "public",
463 - "table": "relay_environment_links"
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,
@@ -470,12 +833,12 @@
833 "default": null,
834 "generated": null,
835 "identity": null,
473 - "name": "environment_id",
474 - "entityType": "columns",
475 - "schema": "public",
476 - "table": "relay_environment_links"
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,
@@ -483,12 +846,12 @@
846 "default": "'T3 Environment'",
847 "generated": null,
848 "identity": null,
486 - "name": "environment_label",
487 - "entityType": "columns",
488 - "schema": "public",
489 - "table": "relay_environment_links"
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,
@@ -496,12 +859,12 @@
859 "default": null,
860 "generated": null,
861 "identity": null,
499 - "name": "environment_public_key",
500 - "entityType": "columns",
501 - "schema": "public",
502 - "table": "relay_environment_links"
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,
@@ -509,12 +872,12 @@
872 "default": null,
873 "generated": null,
874 "identity": null,
512 - "name": "endpoint_http_base_url",
513 - "entityType": "columns",
514 - "schema": "public",
515 - "table": "relay_environment_links"
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,
@@ -522,12 +885,12 @@
885 "default": null,
886 "generated": null,
887 "identity": null,
525 - "name": "endpoint_ws_base_url",
526 - "entityType": "columns",
527 - "schema": "public",
528 - "table": "relay_environment_links"
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,
@@ -535,12 +898,12 @@
898 "default": null,
899 "generated": null,
900 "identity": null,
538 - "name": "endpoint_provider_kind",
539 - "entityType": "columns",
540 - "schema": "public",
541 - "table": "relay_environment_links"
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,
@@ -548,12 +911,12 @@
911 "default": "true",
912 "generated": null,
913 "identity": null,
551 - "name": "notifications_enabled",
552 - "entityType": "columns",
553 - "schema": "public",
554 - "table": "relay_environment_links"
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,
@@ -561,12 +924,12 @@
924 "default": "true",
925 "generated": null,
926 "identity": null,
564 - "name": "live_activities_enabled",
565 - "entityType": "columns",
566 - "schema": "public",
567 - "table": "relay_environment_links"
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,
@@ -574,12 +937,12 @@
937 "default": "false",
938 "generated": null,
939 "identity": null,
577 - "name": "managed_tunnels_enabled",
578 - "entityType": "columns",
579 - "schema": "public",
580 - "table": "relay_environment_links"
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,
@@ -587,12 +950,12 @@
950 "default": null,
951 "generated": null,
952 "identity": null,
590 - "name": "created_by_device_id",
591 - "entityType": "columns",
592 - "schema": "public",
593 - "table": "relay_environment_links"
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,
@@ -600,12 +963,12 @@
963 "default": null,
964 "generated": null,
965 "identity": null,
603 - "name": "revoked_at",
604 - "entityType": "columns",
605 - "schema": "public",
606 - "table": "relay_environment_links"
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,
@@ -613,12 +976,12 @@
976 "default": null,
977 "generated": null,
978 "identity": null,
616 - "name": "created_at",
617 - "entityType": "columns",
618 - "schema": "public",
619 - "table": "relay_environment_links"
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,
@@ -626,12 +989,12 @@
989 "default": null,
990 "generated": null,
991 "identity": null,
629 - "name": "updated_at",
630 - "entityType": "columns",
631 - "schema": "public",
632 - "table": "relay_environment_links"
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,
@@ -639,12 +1002,12 @@
1002 "default": null,
1003 "generated": null,
1004 "identity": null,
642 - "name": "user_id",
643 - "entityType": "columns",
644 - "schema": "public",
645 - "table": "relay_live_activities"
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,
@@ -652,12 +1015,12 @@
1015 "default": null,
1016 "generated": null,
1017 "identity": null,
655 - "name": "device_id",
656 - "entityType": "columns",
657 - "schema": "public",
658 - "table": "relay_live_activities"
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,
@@ -665,12 +1028,12 @@
1028 "default": null,
1029 "generated": null,
1030 "identity": null,
668 - "name": "activity_push_token",
669 - "entityType": "columns",
670 - "schema": "public",
671 - "table": "relay_live_activities"
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,
@@ -678,12 +1041,12 @@
1041 "default": null,
1042 "generated": null,
1043 "identity": null,
681 - "name": "remote_start_queued_at",
682 - "entityType": "columns",
683 - "schema": "public",
684 - "table": "relay_live_activities"
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,
@@ -691,12 +1054,12 @@
1054 "default": null,
1055 "generated": null,
1056 "identity": null,
694 - "name": "remote_started_at",
695 - "entityType": "columns",
696 - "schema": "public",
697 - "table": "relay_live_activities"
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,
@@ -704,12 +1067,12 @@
1067 "default": null,
1068 "generated": null,
1069 "identity": null,
707 - "name": "ended_at",
708 - "entityType": "columns",
709 - "schema": "public",
710 - "table": "relay_live_activities"
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,
@@ -717,12 +1080,12 @@
1080 "default": null,
1081 "generated": null,
1082 "identity": null,
720 - "name": "last_aggregate_json",
721 - "entityType": "columns",
722 - "schema": "public",
723 - "table": "relay_live_activities"
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,
@@ -730,12 +1093,12 @@
1093 "default": null,
1094 "generated": null,
1095 "identity": null,
733 - "name": "last_live_activity_delivery_at",
734 - "entityType": "columns",
735 - "schema": "public",
736 - "table": "relay_live_activities"
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,
@@ -743,12 +1106,12 @@
1106 "default": null,
1107 "generated": null,
1108 "identity": null,
746 - "name": "created_at",
747 - "entityType": "columns",
748 - "schema": "public",
749 - "table": "relay_live_activities"
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,
@@ -756,12 +1119,12 @@
1119 "default": null,
1120 "generated": null,
1121 "identity": null,
759 - "name": "updated_at",
760 - "entityType": "columns",
761 - "schema": "public",
762 - "table": "relay_live_activities"
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,
@@ -769,12 +1132,12 @@
1132 "default": null,
1133 "generated": null,
1134 "identity": null,
772 - "name": "user_id",
773 - "entityType": "columns",
774 - "schema": "public",
775 - "table": "relay_mobile_devices"
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,
@@ -782,12 +1145,12 @@
1145 "default": null,
1146 "generated": null,
1147 "identity": null,
785 - "name": "device_id",
786 - "entityType": "columns",
787 - "schema": "public",
788 - "table": "relay_mobile_devices"
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,
@@ -795,12 +1158,12 @@
1158 "default": null,
1159 "generated": null,
1160 "identity": null,
798 - "name": "platform",
799 - "entityType": "columns",
800 - "schema": "public",
801 - "table": "relay_mobile_devices"
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,
@@ -808,12 +1171,12 @@
1171 "default": null,
1172 "generated": null,
1173 "identity": null,
811 - "name": "ios_major_version",
812 - "entityType": "columns",
813 - "schema": "public",
814 - "table": "relay_mobile_devices"
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,
@@ -821,12 +1184,12 @@
1184 "default": null,
1185 "generated": null,
1186 "identity": null,
824 - "name": "app_version",
825 - "entityType": "columns",
826 - "schema": "public",
827 - "table": "relay_mobile_devices"
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,
@@ -834,12 +1197,12 @@
1197 "default": null,
1198 "generated": null,
1199 "identity": null,
837 - "name": "push_token",
838 - "entityType": "columns",
839 - "schema": "public",
840 - "table": "relay_mobile_devices"
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,
@@ -847,12 +1210,12 @@
1210 "default": null,
1211 "generated": null,
1212 "identity": null,
850 - "name": "push_to_start_token",
851 - "entityType": "columns",
852 - "schema": "public",
853 - "table": "relay_mobile_devices"
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,
@@ -860,12 +1223,12 @@
1223 "default": null,
1224 "generated": null,
1225 "identity": null,
863 - "name": "preferences_json",
864 - "entityType": "columns",
865 - "schema": "public",
866 - "table": "relay_mobile_devices"
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,
@@ -873,12 +1236,12 @@
1236 "default": null,
1237 "generated": null,
1238 "identity": null,
876 - "name": "created_at",
877 - "entityType": "columns",
878 - "schema": "public",
879 - "table": "relay_mobile_devices"
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,
@@ -886,12 +1249,12 @@
1249 "default": null,
1250 "generated": null,
1251 "identity": null,
889 - "name": "updated_at",
890 - "entityType": "columns",
891 - "schema": "public",
892 - "table": "relay_mobile_devices"
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 {
@@ -907,12 +1270,12 @@
1270 "with": "",
1271 "method": "btree",
1272 "concurrently": false,
910 - "name": "idx_relay_agent_activity_rows_updated",
911 - "entityType": "indexes",
912 - "schema": "public",
913 - "table": "relay_agent_activity_rows"
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 {
@@ -942,12 +1305,12 @@
1305 "with": "",
1306 "method": "btree",
1307 "concurrently": false,
945 - "name": "idx_relay_delivery_attempts_environment",
946 - "entityType": "indexes",
947 - "schema": "public",
948 - "table": "relay_delivery_attempts"
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 {
@@ -963,12 +1326,12 @@
1326 "with": "",
1327 "method": "btree",
1328 "concurrently": false,
966 - "name": "idx_relay_delivery_attempts_source_job",
967 - "entityType": "indexes",
968 - "schema": "public",
969 - "table": "relay_delivery_attempts"
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 {
@@ -984,12 +1347,12 @@
1347 "with": "",
1348 "method": "btree",
1349 "concurrently": false,
987 - "name": "idx_relay_dpop_proofs_expires_at",
988 - "entityType": "indexes",
989 - "schema": "public",
990 - "table": "relay_dpop_proofs"
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 {
@@ -1005,12 +1368,12 @@
1368 "with": "",
1369 "method": "btree",
1370 "concurrently": false,
1008 - "name": "idx_relay_environment_credentials_hash",
1009 - "entityType": "indexes",
1010 - "schema": "public",
1011 - "table": "relay_environment_credentials"
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 {
@@ -1033,12 +1396,12 @@
1396 "with": "",
1397 "method": "btree",
1398 "concurrently": false,
1036 - "name": "idx_relay_environment_credentials_environment",
1037 - "entityType": "indexes",
1038 - "schema": "public",
1039 - "table": "relay_environment_credentials"
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 {
@@ -1068,12 +1431,12 @@
1431 "with": "",
1432 "method": "btree",
1433 "concurrently": false,
1071 - "name": "idx_relay_environment_credentials_environment_key",
1072 - "entityType": "indexes",
1073 - "schema": "public",
1074 - "table": "relay_environment_credentials"
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 {
@@ -1096,12 +1459,12 @@
1459 "with": "",
1460 "method": "btree",
1461 "concurrently": false,
1099 - "name": "idx_relay_environment_links_environment",
1100 - "entityType": "indexes",
1101 - "schema": "public",
1102 - "table": "relay_environment_links"
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 {
@@ -1117,12 +1480,12 @@
1480 "with": "",
1481 "method": "btree",
1482 "concurrently": false,
1120 - "name": "idx_relay_live_activities_user",
1121 - "entityType": "indexes",
1122 - "schema": "public",
1123 - "table": "relay_live_activities"
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 {
@@ -1138,12 +1501,12 @@
1501 "with": "",
1502 "method": "btree",
1503 "concurrently": false,
1141 - "name": "idx_relay_live_activities_activity_push_token",
1142 - "entityType": "indexes",
1143 - "schema": "public",
1144 - "table": "relay_live_activities"
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 {
@@ -1159,12 +1522,12 @@
1522 "with": "",
1523 "method": "btree",
1524 "concurrently": false,
1162 - "name": "idx_relay_mobile_devices_user",
1163 - "entityType": "indexes",
1164 - "schema": "public",
1165 - "table": "relay_mobile_devices"
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 {
@@ -1180,12 +1543,12 @@
1543 "with": "",
1544 "method": "btree",
1545 "concurrently": false,
1183 - "name": "idx_relay_mobile_devices_push_token",
1184 - "entityType": "indexes",
1185 - "schema": "public",
1186 - "table": "relay_mobile_devices"
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 {
@@ -1201,67 +1564,63 @@
1564 "with": "",
1565 "method": "btree",
1566 "concurrently": false,
1204 - "name": "idx_relay_mobile_devices_push_to_start_token",
1205 - "entityType": "indexes",
1206 - "schema": "public",
1207 - "table": "relay_mobile_devices"
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,
1212 - "name": "relay_agent_activity_rows_pkey",
1213 - "entityType": "pks",
1214 - "schema": "public",
1215 - "table": "relay_agent_activity_rows"
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,
1220 - "name": "relay_dpop_proofs_pkey",
1221 - "entityType": "pks",
1222 - "schema": "public",
1223 - "table": "relay_dpop_proofs"
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,
1228 - "name": "relay_environment_links_pkey",
1229 - "entityType": "pks",
1230 - "schema": "public",
1231 - "table": "relay_environment_links"
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,
1236 - "name": "relay_live_activities_pkey",
1237 - "entityType": "pks",
1238 - "schema": "public",
1239 - "table": "relay_live_activities"
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,
1244 - "name": "relay_mobile_devices_pkey",
1245 - "entityType": "pks",
1246 - "schema": "public",
1247 - "table": "relay_mobile_devices"
1607 + "entityType": "pks"
1608 },
1609 {
1250 - "columns": ["id"],
1251 - "nameExplicit": false,
1252 - "name": "relay_delivery_attempts_pkey",
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 {
1258 - "columns": ["credential_id"],
1259 - "nameExplicit": false,
1260 - "name": "relay_environment_credentials_pkey",
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 }
1265 - ],
1266 - "renames": []
1625 + ]
1626 }
infra/relay/migrations/postgres/20260601225421_add_mobile_device_label/snapshot.json
+28 -1271
@@ -1,1280 +1,37 @@
1 {
2 + "type": "diff",
3 + "version": "9",
4 "dialect": "postgres",
5 "id": "e189638b-4700-4656-b86e-d8baa63f5fe4",
6 "prevIds": ["ad620f05-3fd1-43b8-a3ca-d4c02543d892"],
5 - "version": "8",
6 - "ddl": [
7 + "footprints": [
8 {
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 - }
9 + "statementType": "add_column",
10 + "statementTarget": ["column", "public", "relay_mobile_devices", "label"],
11 + "writes": [
12 + "s|col|public.relay_mobile_devices.label",
13 + "n|col|public.relay_mobile_devices.label",
14 + "e|col|public.relay_mobile_devices.label"
15 ],
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"
16 + "reads": ["n|tbl|public.relay_mobile_devices", "n|sch|public"]
17 }
18 ],
1279 - "renames": []
19 + "deltas": [
20 + {
21 + "op": "create",
22 + "row": {
23 + "schema": "public",
24 + "table": "relay_mobile_devices",
25 + "name": "label",
26 + "type": "text",
27 + "typeSchema": null,
28 + "notNull": true,
29 + "dimensions": 0,
30 + "default": "'iOS device'",
31 + "generated": null,
32 + "identity": null,
33 + "entityType": "columns"
34 + }
35 + }
36 + ]
37 }
infra/relay/migrations/postgres/20260603035812_managed_endpoint_allocations/snapshot.json
+262 -1439
@@ -1,1453 +1,276 @@
1 {
2 - "version": "8",
2 + "type": "diff",
3 + "version": "9",
4 "dialect": "postgres",
5 "id": "385d476b-d4f6-48a3-99e6-0a95af4ee4e4",
6 "prevIds": ["e189638b-4700-4656-b86e-d8baa63f5fe4"],
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_managed_endpoint_allocations",
46 - "entityType": "tables",
47 - "schema": "public"
48 - },
49 - {
50 - "isRlsEnabled": false,
51 - "name": "relay_mobile_devices",
52 - "entityType": "tables",
53 - "schema": "public"
54 - },
55 - {
56 - "type": "varchar(191)",
57 - "typeSchema": null,
58 - "notNull": true,
59 - "dimensions": 0,
60 - "default": null,
61 - "generated": null,
62 - "identity": null,
63 - "name": "environment_id",
64 - "entityType": "columns",
65 - "schema": "public",
66 - "table": "relay_agent_activity_rows"
67 - },
68 - {
69 - "type": "text",
70 - "typeSchema": null,
71 - "notNull": true,
72 - "dimensions": 0,
73 - "default": null,
74 - "generated": null,
75 - "identity": null,
76 - "name": "environment_public_key",
77 - "entityType": "columns",
78 - "schema": "public",
79 - "table": "relay_agent_activity_rows"
80 - },
81 - {
82 - "type": "varchar(191)",
83 - "typeSchema": null,
84 - "notNull": true,
85 - "dimensions": 0,
86 - "default": null,
87 - "generated": null,
88 - "identity": null,
89 - "name": "thread_id",
90 - "entityType": "columns",
91 - "schema": "public",
92 - "table": "relay_agent_activity_rows"
93 - },
94 - {
95 - "type": "jsonb",
96 - "typeSchema": null,
97 - "notNull": true,
98 - "dimensions": 0,
99 - "default": null,
100 - "generated": null,
101 - "identity": null,
102 - "name": "state_json",
103 - "entityType": "columns",
104 - "schema": "public",
105 - "table": "relay_agent_activity_rows"
106 - },
107 - {
108 - "type": "varchar(64)",
109 - "typeSchema": null,
110 - "notNull": true,
111 - "dimensions": 0,
112 - "default": null,
113 - "generated": null,
114 - "identity": null,
115 - "name": "updated_at",
116 - "entityType": "columns",
117 - "schema": "public",
118 - "table": "relay_agent_activity_rows"
119 - },
120 - {
121 - "type": "varchar(64)",
122 - "typeSchema": null,
123 - "notNull": true,
124 - "dimensions": 0,
125 - "default": null,
126 - "generated": null,
127 - "identity": null,
128 - "name": "created_at",
129 - "entityType": "columns",
130 - "schema": "public",
131 - "table": "relay_agent_activity_rows"
132 - },
133 - {
134 - "type": "varchar(36)",
135 - "typeSchema": null,
136 - "notNull": true,
137 - "dimensions": 0,
138 - "default": null,
139 - "generated": null,
140 - "identity": null,
141 - "name": "id",
142 - "entityType": "columns",
143 - "schema": "public",
144 - "table": "relay_delivery_attempts"
145 - },
146 - {
147 - "type": "varchar(64)",
148 - "typeSchema": null,
149 - "notNull": true,
150 - "dimensions": 0,
151 - "default": null,
152 - "generated": null,
153 - "identity": null,
154 - "name": "created_at",
155 - "entityType": "columns",
156 - "schema": "public",
157 - "table": "relay_delivery_attempts"
158 - },
159 - {
160 - "type": "varchar(255)",
161 - "typeSchema": null,
162 - "notNull": false,
163 - "dimensions": 0,
164 - "default": null,
165 - "generated": null,
166 - "identity": null,
167 - "name": "user_id",
168 - "entityType": "columns",
169 - "schema": "public",
170 - "table": "relay_delivery_attempts"
171 - },
172 - {
173 - "type": "varchar(191)",
174 - "typeSchema": null,
175 - "notNull": false,
176 - "dimensions": 0,
177 - "default": null,
178 - "generated": null,
179 - "identity": null,
180 - "name": "environment_id",
181 - "entityType": "columns",
182 - "schema": "public",
183 - "table": "relay_delivery_attempts"
184 - },
185 - {
186 - "type": "varchar(191)",
187 - "typeSchema": null,
188 - "notNull": false,
189 - "dimensions": 0,
190 - "default": null,
191 - "generated": null,
192 - "identity": null,
193 - "name": "thread_id",
194 - "entityType": "columns",
195 - "schema": "public",
196 - "table": "relay_delivery_attempts"
197 - },
198 - {
199 - "type": "varchar(255)",
200 - "typeSchema": null,
201 - "notNull": false,
202 - "dimensions": 0,
203 - "default": null,
204 - "generated": null,
205 - "identity": null,
206 - "name": "device_id",
207 - "entityType": "columns",
208 - "schema": "public",
209 - "table": "relay_delivery_attempts"
210 - },
211 - {
212 - "type": "varchar(64)",
213 - "typeSchema": null,
214 - "notNull": true,
215 - "dimensions": 0,
216 - "default": null,
217 - "generated": null,
218 - "identity": null,
219 - "name": "kind",
220 - "entityType": "columns",
221 - "schema": "public",
222 - "table": "relay_delivery_attempts"
223 - },
224 - {
225 - "type": "varchar(64)",
226 - "typeSchema": null,
227 - "notNull": false,
228 - "dimensions": 0,
229 - "default": null,
230 - "generated": null,
231 - "identity": null,
232 - "name": "source_job_id",
233 - "entityType": "columns",
234 - "schema": "public",
235 - "table": "relay_delivery_attempts"
236 - },
237 - {
238 - "type": "varchar(16)",
239 - "typeSchema": null,
240 - "notNull": false,
241 - "dimensions": 0,
242 - "default": null,
243 - "generated": null,
244 - "identity": null,
245 - "name": "token_suffix",
246 - "entityType": "columns",
247 - "schema": "public",
248 - "table": "relay_delivery_attempts"
249 - },
250 - {
251 - "type": "integer",
252 - "typeSchema": null,
253 - "notNull": false,
254 - "dimensions": 0,
255 - "default": null,
256 - "generated": null,
257 - "identity": null,
258 - "name": "apns_status",
259 - "entityType": "columns",
260 - "schema": "public",
261 - "table": "relay_delivery_attempts"
262 - },
263 - {
264 - "type": "text",
265 - "typeSchema": null,
266 - "notNull": false,
267 - "dimensions": 0,
268 - "default": null,
269 - "generated": null,
270 - "identity": null,
271 - "name": "apns_reason",
272 - "entityType": "columns",
273 - "schema": "public",
274 - "table": "relay_delivery_attempts"
275 - },
276 - {
277 - "type": "varchar(128)",
278 - "typeSchema": null,
279 - "notNull": false,
280 - "dimensions": 0,
281 - "default": null,
282 - "generated": null,
283 - "identity": null,
284 - "name": "apns_id",
285 - "entityType": "columns",
286 - "schema": "public",
287 - "table": "relay_delivery_attempts"
288 - },
289 - {
290 - "type": "text",
291 - "typeSchema": null,
292 - "notNull": false,
293 - "dimensions": 0,
294 - "default": null,
295 - "generated": null,
296 - "identity": null,
297 - "name": "transport_error",
298 - "entityType": "columns",
299 - "schema": "public",
300 - "table": "relay_delivery_attempts"
301 - },
302 - {
303 - "type": "varchar(128)",
304 - "typeSchema": null,
305 - "notNull": true,
306 - "dimensions": 0,
307 - "default": null,
308 - "generated": null,
309 - "identity": null,
310 - "name": "thumbprint",
311 - "entityType": "columns",
312 - "schema": "public",
313 - "table": "relay_dpop_proofs"
314 - },
315 - {
316 - "type": "varchar(255)",
317 - "typeSchema": null,
318 - "notNull": true,
319 - "dimensions": 0,
320 - "default": null,
321 - "generated": null,
322 - "identity": null,
323 - "name": "jti",
324 - "entityType": "columns",
325 - "schema": "public",
326 - "table": "relay_dpop_proofs"
327 - },
328 - {
329 - "type": "integer",
330 - "typeSchema": null,
331 - "notNull": true,
332 - "dimensions": 0,
333 - "default": null,
334 - "generated": null,
335 - "identity": null,
336 - "name": "iat",
337 - "entityType": "columns",
338 - "schema": "public",
339 - "table": "relay_dpop_proofs"
340 - },
341 - {
342 - "type": "varchar(64)",
343 - "typeSchema": null,
344 - "notNull": true,
345 - "dimensions": 0,
346 - "default": null,
347 - "generated": null,
348 - "identity": null,
349 - "name": "expires_at",
350 - "entityType": "columns",
351 - "schema": "public",
352 - "table": "relay_dpop_proofs"
353 - },
354 - {
355 - "type": "varchar(64)",
356 - "typeSchema": null,
357 - "notNull": true,
358 - "dimensions": 0,
359 - "default": null,
360 - "generated": null,
361 - "identity": null,
362 - "name": "created_at",
363 - "entityType": "columns",
364 - "schema": "public",
365 - "table": "relay_dpop_proofs"
366 - },
367 - {
368 - "type": "varchar(64)",
369 - "typeSchema": null,
370 - "notNull": true,
371 - "dimensions": 0,
372 - "default": null,
373 - "generated": null,
374 - "identity": null,
375 - "name": "credential_id",
376 - "entityType": "columns",
377 - "schema": "public",
378 - "table": "relay_environment_credentials"
379 - },
380 - {
381 - "type": "varchar(191)",
382 - "typeSchema": null,
383 - "notNull": true,
384 - "dimensions": 0,
385 - "default": null,
386 - "generated": null,
387 - "identity": null,
388 - "name": "environment_id",
389 - "entityType": "columns",
390 - "schema": "public",
391 - "table": "relay_environment_credentials"
392 - },
393 - {
394 - "type": "text",
395 - "typeSchema": null,
396 - "notNull": true,
397 - "dimensions": 0,
398 - "default": null,
399 - "generated": null,
400 - "identity": null,
401 - "name": "environment_public_key",
402 - "entityType": "columns",
403 - "schema": "public",
404 - "table": "relay_environment_credentials"
405 - },
406 - {
407 - "type": "varchar(191)",
408 - "typeSchema": null,
409 - "notNull": true,
410 - "dimensions": 0,
411 - "default": null,
412 - "generated": null,
413 - "identity": null,
414 - "name": "credential_hash",
415 - "entityType": "columns",
416 - "schema": "public",
417 - "table": "relay_environment_credentials"
418 - },
419 - {
420 - "type": "varchar(64)",
421 - "typeSchema": null,
422 - "notNull": false,
423 - "dimensions": 0,
424 - "default": null,
425 - "generated": null,
426 - "identity": null,
427 - "name": "revoked_at",
428 - "entityType": "columns",
429 - "schema": "public",
430 - "table": "relay_environment_credentials"
431 - },
432 - {
433 - "type": "varchar(64)",
434 - "typeSchema": null,
435 - "notNull": true,
436 - "dimensions": 0,
437 - "default": null,
438 - "generated": null,
439 - "identity": null,
440 - "name": "created_at",
441 - "entityType": "columns",
442 - "schema": "public",
443 - "table": "relay_environment_credentials"
444 - },
445 - {
446 - "type": "varchar(64)",
447 - "typeSchema": null,
448 - "notNull": true,
449 - "dimensions": 0,
450 - "default": null,
451 - "generated": null,
452 - "identity": null,
453 - "name": "updated_at",
454 - "entityType": "columns",
455 - "schema": "public",
456 - "table": "relay_environment_credentials"
457 - },
458 - {
459 - "type": "varchar(191)",
460 - "typeSchema": null,
461 - "notNull": true,
462 - "dimensions": 0,
463 - "default": null,
464 - "generated": null,
465 - "identity": null,
466 - "name": "user_id",
467 - "entityType": "columns",
468 - "schema": "public",
469 - "table": "relay_environment_links"
470 - },
471 - {
472 - "type": "varchar(191)",
473 - "typeSchema": null,
474 - "notNull": true,
475 - "dimensions": 0,
476 - "default": null,
477 - "generated": null,
478 - "identity": null,
479 - "name": "environment_id",
480 - "entityType": "columns",
481 - "schema": "public",
482 - "table": "relay_environment_links"
483 - },
484 - {
485 - "type": "text",
486 - "typeSchema": null,
487 - "notNull": true,
488 - "dimensions": 0,
489 - "default": "'T3 Environment'",
490 - "generated": null,
491 - "identity": null,
492 - "name": "environment_label",
493 - "entityType": "columns",
494 - "schema": "public",
495 - "table": "relay_environment_links"
496 - },
497 - {
498 - "type": "text",
499 - "typeSchema": null,
500 - "notNull": true,
501 - "dimensions": 0,
502 - "default": null,
503 - "generated": null,
504 - "identity": null,
505 - "name": "environment_public_key",
506 - "entityType": "columns",
507 - "schema": "public",
508 - "table": "relay_environment_links"
509 - },
510 - {
511 - "type": "text",
512 - "typeSchema": null,
513 - "notNull": true,
514 - "dimensions": 0,
515 - "default": null,
516 - "generated": null,
517 - "identity": null,
518 - "name": "endpoint_http_base_url",
519 - "entityType": "columns",
520 - "schema": "public",
521 - "table": "relay_environment_links"
522 - },
523 - {
524 - "type": "text",
525 - "typeSchema": null,
526 - "notNull": true,
527 - "dimensions": 0,
528 - "default": null,
529 - "generated": null,
530 - "identity": null,
531 - "name": "endpoint_ws_base_url",
532 - "entityType": "columns",
533 - "schema": "public",
534 - "table": "relay_environment_links"
535 - },
536 - {
537 - "type": "varchar(32)",
538 - "typeSchema": null,
539 - "notNull": true,
540 - "dimensions": 0,
541 - "default": null,
542 - "generated": null,
543 - "identity": null,
544 - "name": "endpoint_provider_kind",
545 - "entityType": "columns",
546 - "schema": "public",
547 - "table": "relay_environment_links"
548 - },
549 - {
550 - "type": "boolean",
551 - "typeSchema": null,
552 - "notNull": true,
553 - "dimensions": 0,
554 - "default": "true",
555 - "generated": null,
556 - "identity": null,
557 - "name": "notifications_enabled",
558 - "entityType": "columns",
559 - "schema": "public",
560 - "table": "relay_environment_links"
561 - },
562 - {
563 - "type": "boolean",
564 - "typeSchema": null,
565 - "notNull": true,
566 - "dimensions": 0,
567 - "default": "true",
568 - "generated": null,
569 - "identity": null,
570 - "name": "live_activities_enabled",
571 - "entityType": "columns",
572 - "schema": "public",
573 - "table": "relay_environment_links"
574 - },
575 - {
576 - "type": "boolean",
577 - "typeSchema": null,
578 - "notNull": true,
579 - "dimensions": 0,
580 - "default": "false",
581 - "generated": null,
582 - "identity": null,
583 - "name": "managed_tunnels_enabled",
584 - "entityType": "columns",
585 - "schema": "public",
586 - "table": "relay_environment_links"
587 - },
588 - {
589 - "type": "varchar(191)",
590 - "typeSchema": null,
591 - "notNull": false,
592 - "dimensions": 0,
593 - "default": null,
594 - "generated": null,
595 - "identity": null,
596 - "name": "created_by_device_id",
597 - "entityType": "columns",
598 - "schema": "public",
599 - "table": "relay_environment_links"
600 - },
601 - {
602 - "type": "varchar(64)",
603 - "typeSchema": null,
604 - "notNull": false,
605 - "dimensions": 0,
606 - "default": null,
607 - "generated": null,
608 - "identity": null,
609 - "name": "revoked_at",
610 - "entityType": "columns",
611 - "schema": "public",
612 - "table": "relay_environment_links"
613 - },
614 - {
615 - "type": "varchar(64)",
616 - "typeSchema": null,
617 - "notNull": true,
618 - "dimensions": 0,
619 - "default": null,
620 - "generated": null,
621 - "identity": null,
622 - "name": "created_at",
623 - "entityType": "columns",
624 - "schema": "public",
625 - "table": "relay_environment_links"
626 - },
627 - {
628 - "type": "varchar(64)",
629 - "typeSchema": null,
630 - "notNull": true,
631 - "dimensions": 0,
632 - "default": null,
633 - "generated": null,
634 - "identity": null,
635 - "name": "updated_at",
636 - "entityType": "columns",
637 - "schema": "public",
638 - "table": "relay_environment_links"
639 - },
640 - {
641 - "type": "varchar(255)",
642 - "typeSchema": null,
643 - "notNull": true,
644 - "dimensions": 0,
645 - "default": null,
646 - "generated": null,
647 - "identity": null,
648 - "name": "user_id",
649 - "entityType": "columns",
650 - "schema": "public",
651 - "table": "relay_live_activities"
652 - },
653 - {
654 - "type": "varchar(255)",
655 - "typeSchema": null,
656 - "notNull": true,
657 - "dimensions": 0,
658 - "default": null,
659 - "generated": null,
660 - "identity": null,
661 - "name": "device_id",
662 - "entityType": "columns",
663 - "schema": "public",
664 - "table": "relay_live_activities"
665 - },
666 - {
667 - "type": "text",
668 - "typeSchema": null,
669 - "notNull": false,
670 - "dimensions": 0,
671 - "default": null,
672 - "generated": null,
673 - "identity": null,
674 - "name": "activity_push_token",
675 - "entityType": "columns",
676 - "schema": "public",
677 - "table": "relay_live_activities"
678 - },
679 - {
680 - "type": "varchar(64)",
681 - "typeSchema": null,
682 - "notNull": false,
683 - "dimensions": 0,
684 - "default": null,
685 - "generated": null,
686 - "identity": null,
687 - "name": "remote_start_queued_at",
688 - "entityType": "columns",
689 - "schema": "public",
690 - "table": "relay_live_activities"
691 - },
692 - {
693 - "type": "varchar(64)",
694 - "typeSchema": null,
695 - "notNull": false,
696 - "dimensions": 0,
697 - "default": null,
698 - "generated": null,
699 - "identity": null,
700 - "name": "remote_started_at",
701 - "entityType": "columns",
702 - "schema": "public",
703 - "table": "relay_live_activities"
704 - },
705 - {
706 - "type": "varchar(64)",
707 - "typeSchema": null,
708 - "notNull": false,
709 - "dimensions": 0,
710 - "default": null,
711 - "generated": null,
712 - "identity": null,
713 - "name": "ended_at",
714 - "entityType": "columns",
715 - "schema": "public",
716 - "table": "relay_live_activities"
717 - },
718 - {
719 - "type": "jsonb",
720 - "typeSchema": null,
721 - "notNull": false,
722 - "dimensions": 0,
723 - "default": null,
724 - "generated": null,
725 - "identity": null,
726 - "name": "last_aggregate_json",
727 - "entityType": "columns",
728 - "schema": "public",
729 - "table": "relay_live_activities"
730 - },
731 - {
732 - "type": "varchar(64)",
733 - "typeSchema": null,
734 - "notNull": false,
735 - "dimensions": 0,
736 - "default": null,
737 - "generated": null,
738 - "identity": null,
739 - "name": "last_live_activity_delivery_at",
740 - "entityType": "columns",
741 - "schema": "public",
742 - "table": "relay_live_activities"
743 - },
744 - {
745 - "type": "varchar(64)",
746 - "typeSchema": null,
747 - "notNull": true,
748 - "dimensions": 0,
749 - "default": null,
750 - "generated": null,
751 - "identity": null,
752 - "name": "created_at",
753 - "entityType": "columns",
754 - "schema": "public",
755 - "table": "relay_live_activities"
756 - },
757 - {
758 - "type": "varchar(64)",
759 - "typeSchema": null,
760 - "notNull": true,
761 - "dimensions": 0,
762 - "default": null,
763 - "generated": null,
764 - "identity": null,
765 - "name": "updated_at",
766 - "entityType": "columns",
767 - "schema": "public",
768 - "table": "relay_live_activities"
769 - },
770 - {
771 - "type": "varchar(191)",
772 - "typeSchema": null,
773 - "notNull": true,
774 - "dimensions": 0,
775 - "default": null,
776 - "generated": null,
777 - "identity": null,
778 - "name": "user_id",
779 - "entityType": "columns",
780 - "schema": "public",
781 - "table": "relay_managed_endpoint_allocations"
782 - },
783 - {
784 - "type": "varchar(191)",
785 - "typeSchema": null,
786 - "notNull": true,
787 - "dimensions": 0,
788 - "default": null,
789 - "generated": null,
790 - "identity": null,
791 - "name": "environment_id",
792 - "entityType": "columns",
793 - "schema": "public",
794 - "table": "relay_managed_endpoint_allocations"
795 - },
796 - {
797 - "type": "text",
798 - "typeSchema": null,
799 - "notNull": true,
800 - "dimensions": 0,
801 - "default": null,
802 - "generated": null,
803 - "identity": null,
804 - "name": "hostname",
805 - "entityType": "columns",
806 - "schema": "public",
807 - "table": "relay_managed_endpoint_allocations"
808 - },
809 - {
810 - "type": "varchar(191)",
811 - "typeSchema": null,
812 - "notNull": false,
813 - "dimensions": 0,
814 - "default": null,
815 - "generated": null,
816 - "identity": null,
817 - "name": "tunnel_id",
818 - "entityType": "columns",
819 - "schema": "public",
820 - "table": "relay_managed_endpoint_allocations"
821 - },
822 - {
823 - "type": "text",
824 - "typeSchema": null,
825 - "notNull": true,
826 - "dimensions": 0,
827 - "default": null,
828 - "generated": null,
829 - "identity": null,
830 - "name": "tunnel_name",
831 - "entityType": "columns",
832 - "schema": "public",
833 - "table": "relay_managed_endpoint_allocations"
834 - },
835 - {
836 - "type": "varchar(191)",
837 - "typeSchema": null,
838 - "notNull": false,
839 - "dimensions": 0,
840 - "default": null,
841 - "generated": null,
842 - "identity": null,
843 - "name": "dns_record_id",
844 - "entityType": "columns",
845 - "schema": "public",
846 - "table": "relay_managed_endpoint_allocations"
847 - },
848 - {
849 - "type": "varchar(64)",
850 - "typeSchema": null,
851 - "notNull": false,
852 - "dimensions": 0,
853 - "default": null,
854 - "generated": null,
855 - "identity": null,
856 - "name": "ready_at",
857 - "entityType": "columns",
858 - "schema": "public",
859 - "table": "relay_managed_endpoint_allocations"
860 - },
861 - {
862 - "type": "varchar(64)",
863 - "typeSchema": null,
864 - "notNull": true,
865 - "dimensions": 0,
866 - "default": null,
867 - "generated": null,
868 - "identity": null,
869 - "name": "created_at",
870 - "entityType": "columns",
871 - "schema": "public",
872 - "table": "relay_managed_endpoint_allocations"
873 - },
874 - {
875 - "type": "varchar(64)",
876 - "typeSchema": null,
877 - "notNull": true,
878 - "dimensions": 0,
879 - "default": null,
880 - "generated": null,
881 - "identity": null,
882 - "name": "updated_at",
883 - "entityType": "columns",
884 - "schema": "public",
885 - "table": "relay_managed_endpoint_allocations"
886 - },
887 - {
888 - "type": "varchar(255)",
889 - "typeSchema": null,
890 - "notNull": true,
891 - "dimensions": 0,
892 - "default": null,
893 - "generated": null,
894 - "identity": null,
895 - "name": "user_id",
896 - "entityType": "columns",
897 - "schema": "public",
898 - "table": "relay_mobile_devices"
899 - },
900 - {
901 - "type": "varchar(255)",
902 - "typeSchema": null,
903 - "notNull": true,
904 - "dimensions": 0,
905 - "default": null,
906 - "generated": null,
907 - "identity": null,
908 - "name": "device_id",
909 - "entityType": "columns",
910 - "schema": "public",
911 - "table": "relay_mobile_devices"
912 - },
913 - {
914 - "type": "text",
915 - "typeSchema": null,
916 - "notNull": true,
917 - "dimensions": 0,
918 - "default": "'iOS device'",
919 - "generated": null,
920 - "identity": null,
921 - "name": "label",
922 - "entityType": "columns",
923 - "schema": "public",
924 - "table": "relay_mobile_devices"
925 - },
926 - {
927 - "type": "varchar(16)",
928 - "typeSchema": null,
929 - "notNull": true,
930 - "dimensions": 0,
931 - "default": null,
932 - "generated": null,
933 - "identity": null,
934 - "name": "platform",
935 - "entityType": "columns",
936 - "schema": "public",
937 - "table": "relay_mobile_devices"
938 - },
939 - {
940 - "type": "integer",
941 - "typeSchema": null,
942 - "notNull": true,
943 - "dimensions": 0,
944 - "default": null,
945 - "generated": null,
946 - "identity": null,
947 - "name": "ios_major_version",
948 - "entityType": "columns",
949 - "schema": "public",
950 - "table": "relay_mobile_devices"
951 - },
952 - {
953 - "type": "varchar(64)",
954 - "typeSchema": null,
955 - "notNull": false,
956 - "dimensions": 0,
957 - "default": null,
958 - "generated": null,
959 - "identity": null,
960 - "name": "app_version",
961 - "entityType": "columns",
962 - "schema": "public",
963 - "table": "relay_mobile_devices"
964 - },
965 - {
966 - "type": "text",
967 - "typeSchema": null,
968 - "notNull": false,
969 - "dimensions": 0,
970 - "default": null,
971 - "generated": null,
972 - "identity": null,
973 - "name": "push_token",
974 - "entityType": "columns",
975 - "schema": "public",
976 - "table": "relay_mobile_devices"
977 - },
978 - {
979 - "type": "text",
980 - "typeSchema": null,
981 - "notNull": false,
982 - "dimensions": 0,
983 - "default": null,
984 - "generated": null,
985 - "identity": null,
986 - "name": "push_to_start_token",
987 - "entityType": "columns",
988 - "schema": "public",
989 - "table": "relay_mobile_devices"
990 - },
991 - {
992 - "type": "jsonb",
993 - "typeSchema": null,
994 - "notNull": true,
995 - "dimensions": 0,
996 - "default": null,
997 - "generated": null,
998 - "identity": null,
999 - "name": "preferences_json",
1000 - "entityType": "columns",
1001 - "schema": "public",
1002 - "table": "relay_mobile_devices"
1003 - },
1004 - {
1005 - "type": "varchar(64)",
1006 - "typeSchema": null,
1007 - "notNull": true,
1008 - "dimensions": 0,
1009 - "default": null,
1010 - "generated": null,
1011 - "identity": null,
1012 - "name": "created_at",
1013 - "entityType": "columns",
1014 - "schema": "public",
1015 - "table": "relay_mobile_devices"
1016 - },
1017 - {
1018 - "type": "varchar(64)",
1019 - "typeSchema": null,
1020 - "notNull": true,
1021 - "dimensions": 0,
1022 - "default": null,
1023 - "generated": null,
1024 - "identity": null,
1025 - "name": "updated_at",
1026 - "entityType": "columns",
1027 - "schema": "public",
1028 - "table": "relay_mobile_devices"
1029 - },
1030 - {
1031 - "nameExplicit": true,
1032 - "columns": [
1033 - {
1034 - "value": "updated_at",
1035 - "isExpression": false,
1036 - "asc": true,
1037 - "nullsFirst": false,
1038 - "opclass": null
1039 - }
1040 - ],
1041 - "isUnique": false,
1042 - "where": null,
1043 - "with": "",
1044 - "method": "btree",
1045 - "concurrently": false,
1046 - "name": "idx_relay_agent_activity_rows_updated",
1047 - "entityType": "indexes",
1048 - "schema": "public",
1049 - "table": "relay_agent_activity_rows"
1050 - },
1051 - {
1052 - "nameExplicit": true,
1053 - "columns": [
1054 - {
1055 - "value": "environment_id",
1056 - "isExpression": false,
1057 - "asc": true,
1058 - "nullsFirst": false,
1059 - "opclass": null
1060 - },
1061 - {
1062 - "value": "thread_id",
1063 - "isExpression": false,
1064 - "asc": true,
1065 - "nullsFirst": false,
1066 - "opclass": null
1067 - },
1068 - {
1069 - "value": "created_at",
1070 - "isExpression": false,
1071 - "asc": true,
1072 - "nullsFirst": false,
1073 - "opclass": null
1074 - }
1075 - ],
1076 - "isUnique": false,
1077 - "where": null,
1078 - "with": "",
1079 - "method": "btree",
1080 - "concurrently": false,
1081 - "name": "idx_relay_delivery_attempts_environment",
1082 - "entityType": "indexes",
1083 - "schema": "public",
1084 - "table": "relay_delivery_attempts"
1085 - },
1086 - {
1087 - "nameExplicit": true,
1088 - "columns": [
1089 - {
1090 - "value": "source_job_id",
1091 - "isExpression": false,
1092 - "asc": true,
1093 - "nullsFirst": false,
1094 - "opclass": null
1095 - }
1096 - ],
1097 - "isUnique": true,
1098 - "where": null,
1099 - "with": "",
1100 - "method": "btree",
1101 - "concurrently": false,
1102 - "name": "idx_relay_delivery_attempts_source_job",
1103 - "entityType": "indexes",
1104 - "schema": "public",
1105 - "table": "relay_delivery_attempts"
1106 - },
1107 - {
1108 - "nameExplicit": true,
1109 - "columns": [
1110 - {
1111 - "value": "expires_at",
1112 - "isExpression": false,
1113 - "asc": true,
1114 - "nullsFirst": false,
1115 - "opclass": null
1116 - }
1117 - ],
1118 - "isUnique": false,
1119 - "where": null,
1120 - "with": "",
1121 - "method": "btree",
1122 - "concurrently": false,
1123 - "name": "idx_relay_dpop_proofs_expires_at",
1124 - "entityType": "indexes",
1125 - "schema": "public",
1126 - "table": "relay_dpop_proofs"
1127 - },
1128 - {
1129 - "nameExplicit": true,
1130 - "columns": [
1131 - {
1132 - "value": "credential_hash",
1133 - "isExpression": false,
1134 - "asc": true,
1135 - "nullsFirst": false,
1136 - "opclass": null
1137 - }
7 + "footprints": [
8 + {
9 + "statementType": "create_table",
10 + "statementTarget": ["table", "public", "relay_managed_endpoint_allocations"],
11 + "writes": [
12 + "s|tbl|public.relay_managed_endpoint_allocations",
13 + "n|tbl|public.relay_managed_endpoint_allocations",
14 + "e|tbl|public.relay_managed_endpoint_allocations",
15 + "n|rel|public.relay_managed_endpoint_allocations",
16 + "n|type|public.relay_managed_endpoint_allocations",
17 + "n|rel|public.relay_managed_endpoint_allocations_pkey"
18 ],
1139 - "isUnique": true,
1140 - "where": null,
1141 - "with": "",
1142 - "method": "btree",
1143 - "concurrently": false,
1144 - "name": "idx_relay_environment_credentials_hash",
1145 - "entityType": "indexes",
1146 - "schema": "public",
1147 - "table": "relay_environment_credentials"
19 + "reads": ["n|sch|public"]
20 },
21 {
1150 - "nameExplicit": true,
1151 - "columns": [
1152 - {
1153 - "value": "environment_id",
1154 - "isExpression": false,
1155 - "asc": true,
1156 - "nullsFirst": false,
1157 - "opclass": null
1158 - },
1159 - {
1160 - "value": "revoked_at",
1161 - "isExpression": false,
1162 - "asc": true,
1163 - "nullsFirst": false,
1164 - "opclass": null
1165 - }
22 + "statementType": "create_index",
23 + "statementTarget": [
24 + "index",
25 + "public",
26 + "relay_managed_endpoint_allocations",
27 + "idx_relay_managed_endpoint_allocations_hostname"
28 ],
1167 - "isUnique": false,
1168 - "where": null,
1169 - "with": "",
1170 - "method": "btree",
1171 - "concurrently": false,
1172 - "name": "idx_relay_environment_credentials_environment",
1173 - "entityType": "indexes",
1174 - "schema": "public",
1175 - "table": "relay_environment_credentials"
1176 - },
1177 - {
1178 - "nameExplicit": true,
1179 - "columns": [
1180 - {
1181 - "value": "environment_id",
1182 - "isExpression": false,
1183 - "asc": true,
1184 - "nullsFirst": false,
1185 - "opclass": null
1186 - },
1187 - {
1188 - "value": "environment_public_key",
1189 - "isExpression": false,
1190 - "asc": true,
1191 - "nullsFirst": false,
1192 - "opclass": null
1193 - },
1194 - {
1195 - "value": "revoked_at",
1196 - "isExpression": false,
1197 - "asc": true,
1198 - "nullsFirst": false,
1199 - "opclass": null
1200 - }
1201 - ],
1202 - "isUnique": false,
1203 - "where": null,
1204 - "with": "",
1205 - "method": "btree",
1206 - "concurrently": false,
1207 - "name": "idx_relay_environment_credentials_environment_key",
1208 - "entityType": "indexes",
1209 - "schema": "public",
1210 - "table": "relay_environment_credentials"
1211 - },
1212 - {
1213 - "nameExplicit": true,
1214 - "columns": [
1215 - {
1216 - "value": "environment_id",
1217 - "isExpression": false,
1218 - "asc": true,
1219 - "nullsFirst": false,
1220 - "opclass": null
1221 - },
1222 - {
1223 - "value": "revoked_at",
1224 - "isExpression": false,
1225 - "asc": true,
1226 - "nullsFirst": false,
1227 - "opclass": null
1228 - }
1229 - ],
1230 - "isUnique": false,
1231 - "where": null,
1232 - "with": "",
1233 - "method": "btree",
1234 - "concurrently": false,
1235 - "name": "idx_relay_environment_links_environment",
1236 - "entityType": "indexes",
1237 - "schema": "public",
1238 - "table": "relay_environment_links"
1239 - },
1240 - {
1241 - "nameExplicit": true,
1242 - "columns": [
1243 - {
1244 - "value": "user_id",
1245 - "isExpression": false,
1246 - "asc": true,
1247 - "nullsFirst": false,
1248 - "opclass": null
1249 - }
29 + "writes": [
30 + "s|idx|public.idx_relay_managed_endpoint_allocations_hostname",
31 + "n|idx|public.idx_relay_managed_endpoint_allocations_hostname",
32 + "e|idx|public.idx_relay_managed_endpoint_allocations_hostname",
33 + "n|rel|public.idx_relay_managed_endpoint_allocations_hostname"
34 ],
1251 - "isUnique": false,
1252 - "where": null,
1253 - "with": "",
1254 - "method": "btree",
1255 - "concurrently": false,
1256 - "name": "idx_relay_live_activities_user",
1257 - "entityType": "indexes",
1258 - "schema": "public",
1259 - "table": "relay_live_activities"
1260 - },
1261 - {
1262 - "nameExplicit": true,
1263 - "columns": [
1264 - {
1265 - "value": "activity_push_token",
1266 - "isExpression": false,
1267 - "asc": true,
1268 - "nullsFirst": false,
1269 - "opclass": null
1270 - }
35 + "reads": [
36 + "n|tbl|public.relay_managed_endpoint_allocations",
37 + "n|sch|public",
38 + "n|col|public.relay_managed_endpoint_allocations.hostname"
39 + ]
40 + },
41 + {
42 + "statementType": "create_index",
43 + "statementTarget": [
44 + "index",
45 + "public",
46 + "relay_managed_endpoint_allocations",
47 + "idx_relay_managed_endpoint_allocations_tunnel_name"
48 ],
1272 - "isUnique": true,
1273 - "where": null,
1274 - "with": "",
1275 - "method": "btree",
1276 - "concurrently": false,
1277 - "name": "idx_relay_live_activities_activity_push_token",
1278 - "entityType": "indexes",
1279 - "schema": "public",
1280 - "table": "relay_live_activities"
1281 - },
1282 - {
1283 - "nameExplicit": true,
1284 - "columns": [
1285 - {
1286 - "value": "hostname",
1287 - "isExpression": false,
1288 - "asc": true,
1289 - "nullsFirst": false,
1290 - "opclass": null
1291 - }
49 + "writes": [
50 + "s|idx|public.idx_relay_managed_endpoint_allocations_tunnel_name",
51 + "n|idx|public.idx_relay_managed_endpoint_allocations_tunnel_name",
52 + "e|idx|public.idx_relay_managed_endpoint_allocations_tunnel_name",
53 + "n|rel|public.idx_relay_managed_endpoint_allocations_tunnel_name"
54 ],
1293 - "isUnique": true,
1294 - "where": null,
1295 - "with": "",
1296 - "method": "btree",
1297 - "concurrently": false,
1298 - "name": "idx_relay_managed_endpoint_allocations_hostname",
1299 - "entityType": "indexes",
1300 - "schema": "public",
1301 - "table": "relay_managed_endpoint_allocations"
1302 - },
1303 - {
1304 - "nameExplicit": true,
1305 - "columns": [
1306 - {
1307 - "value": "tunnel_name",
1308 - "isExpression": false,
1309 - "asc": true,
1310 - "nullsFirst": false,
1311 - "opclass": null
1312 - }
1313 - ],
1314 - "isUnique": true,
1315 - "where": null,
1316 - "with": "",
1317 - "method": "btree",
1318 - "concurrently": false,
1319 - "name": "idx_relay_managed_endpoint_allocations_tunnel_name",
1320 - "entityType": "indexes",
1321 - "schema": "public",
1322 - "table": "relay_managed_endpoint_allocations"
1323 - },
1324 - {
1325 - "nameExplicit": true,
1326 - "columns": [
1327 - {
1328 - "value": "user_id",
1329 - "isExpression": false,
1330 - "asc": true,
1331 - "nullsFirst": false,
1332 - "opclass": null
1333 - }
1334 - ],
1335 - "isUnique": false,
1336 - "where": null,
1337 - "with": "",
1338 - "method": "btree",
1339 - "concurrently": false,
1340 - "name": "idx_relay_mobile_devices_user",
1341 - "entityType": "indexes",
1342 - "schema": "public",
1343 - "table": "relay_mobile_devices"
1344 - },
1345 - {
1346 - "nameExplicit": true,
1347 - "columns": [
1348 - {
1349 - "value": "push_token",
1350 - "isExpression": false,
1351 - "asc": true,
1352 - "nullsFirst": false,
1353 - "opclass": null
1354 - }
1355 - ],
1356 - "isUnique": true,
1357 - "where": null,
1358 - "with": "",
1359 - "method": "btree",
1360 - "concurrently": false,
1361 - "name": "idx_relay_mobile_devices_push_token",
1362 - "entityType": "indexes",
1363 - "schema": "public",
1364 - "table": "relay_mobile_devices"
1365 - },
1366 - {
1367 - "nameExplicit": true,
1368 - "columns": [
1369 - {
1370 - "value": "push_to_start_token",
1371 - "isExpression": false,
1372 - "asc": true,
1373 - "nullsFirst": false,
1374 - "opclass": null
1375 - }
1376 - ],
1377 - "isUnique": true,
1378 - "where": null,
1379 - "with": "",
1380 - "method": "btree",
1381 - "concurrently": false,
1382 - "name": "idx_relay_mobile_devices_push_to_start_token",
1383 - "entityType": "indexes",
1384 - "schema": "public",
1385 - "table": "relay_mobile_devices"
1386 - },
1387 - {
1388 - "columns": ["environment_id", "environment_public_key", "thread_id"],
1389 - "nameExplicit": false,
1390 - "name": "relay_agent_activity_rows_pkey",
1391 - "entityType": "pks",
1392 - "schema": "public",
1393 - "table": "relay_agent_activity_rows"
1394 - },
1395 - {
1396 - "columns": ["thumbprint", "jti"],
1397 - "nameExplicit": false,
1398 - "name": "relay_dpop_proofs_pkey",
1399 - "entityType": "pks",
1400 - "schema": "public",
1401 - "table": "relay_dpop_proofs"
1402 - },
1403 - {
1404 - "columns": ["user_id", "environment_id"],
1405 - "nameExplicit": false,
1406 - "name": "relay_environment_links_pkey",
1407 - "entityType": "pks",
1408 - "schema": "public",
1409 - "table": "relay_environment_links"
1410 - },
1411 - {
1412 - "columns": ["user_id", "device_id"],
1413 - "nameExplicit": false,
1414 - "name": "relay_live_activities_pkey",
1415 - "entityType": "pks",
1416 - "schema": "public",
1417 - "table": "relay_live_activities"
1418 - },
1419 - {
1420 - "columns": ["user_id", "environment_id"],
1421 - "nameExplicit": false,
1422 - "name": "relay_managed_endpoint_allocations_pkey",
1423 - "entityType": "pks",
1424 - "schema": "public",
1425 - "table": "relay_managed_endpoint_allocations"
1426 - },
1427 - {
1428 - "columns": ["user_id", "device_id"],
1429 - "nameExplicit": false,
1430 - "name": "relay_mobile_devices_pkey",
1431 - "entityType": "pks",
1432 - "schema": "public",
1433 - "table": "relay_mobile_devices"
1434 - },
1435 - {
1436 - "columns": ["id"],
1437 - "nameExplicit": false,
1438 - "name": "relay_delivery_attempts_pkey",
1439 - "schema": "public",
1440 - "table": "relay_delivery_attempts",
1441 - "entityType": "pks"
1442 - },
1443 - {
1444 - "columns": ["credential_id"],
1445 - "nameExplicit": false,
1446 - "name": "relay_environment_credentials_pkey",
1447 - "schema": "public",
1448 - "table": "relay_environment_credentials",
1449 - "entityType": "pks"
55 + "reads": [
56 + "n|tbl|public.relay_managed_endpoint_allocations",
57 + "n|sch|public",
58 + "n|col|public.relay_managed_endpoint_allocations.tunnel_name"
59 + ]
60 }
61 ],
1452 - "renames": []
62 + "deltas": [
63 + {
64 + "op": "create",
65 + "row": {
66 + "schema": "public",
67 + "name": "relay_managed_endpoint_allocations",
68 + "isRlsEnabled": false,
69 + "entityType": "tables"
70 + }
71 + },
72 + {
73 + "op": "create",
74 + "row": {
75 + "schema": "public",
76 + "table": "relay_managed_endpoint_allocations",
77 + "name": "user_id",
78 + "type": "varchar(191)",
79 + "typeSchema": null,
80 + "notNull": true,
81 + "dimensions": 0,
82 + "default": null,
83 + "generated": null,
84 + "identity": null,
85 + "entityType": "columns"
86 + }
87 + },
88 + {
89 + "op": "create",
90 + "row": {
91 + "schema": "public",
92 + "table": "relay_managed_endpoint_allocations",
93 + "name": "environment_id",
94 + "type": "varchar(191)",
95 + "typeSchema": null,
96 + "notNull": true,
97 + "dimensions": 0,
98 + "default": null,
99 + "generated": null,
100 + "identity": null,
101 + "entityType": "columns"
102 + }
103 + },
104 + {
105 + "op": "create",
106 + "row": {
107 + "schema": "public",
108 + "table": "relay_managed_endpoint_allocations",
109 + "name": "hostname",
110 + "type": "text",
111 + "typeSchema": null,
112 + "notNull": true,
113 + "dimensions": 0,
114 + "default": null,
115 + "generated": null,
116 + "identity": null,
117 + "entityType": "columns"
118 + }
119 + },
120 + {
121 + "op": "create",
122 + "row": {
123 + "schema": "public",
124 + "table": "relay_managed_endpoint_allocations",
125 + "name": "tunnel_id",
126 + "type": "varchar(191)",
127 + "typeSchema": null,
128 + "notNull": false,
129 + "dimensions": 0,
130 + "default": null,
131 + "generated": null,
132 + "identity": null,
133 + "entityType": "columns"
134 + }
135 + },
136 + {
137 + "op": "create",
138 + "row": {
139 + "schema": "public",
140 + "table": "relay_managed_endpoint_allocations",
141 + "name": "tunnel_name",
142 + "type": "text",
143 + "typeSchema": null,
144 + "notNull": true,
145 + "dimensions": 0,
146 + "default": null,
147 + "generated": null,
148 + "identity": null,
149 + "entityType": "columns"
150 + }
151 + },
152 + {
153 + "op": "create",
154 + "row": {
155 + "schema": "public",
156 + "table": "relay_managed_endpoint_allocations",
157 + "name": "dns_record_id",
158 + "type": "varchar(191)",
159 + "typeSchema": null,
160 + "notNull": false,
161 + "dimensions": 0,
162 + "default": null,
163 + "generated": null,
164 + "identity": null,
165 + "entityType": "columns"
166 + }
167 + },
168 + {
169 + "op": "create",
170 + "row": {
171 + "schema": "public",
172 + "table": "relay_managed_endpoint_allocations",
173 + "name": "ready_at",
174 + "type": "varchar(64)",
175 + "typeSchema": null,
176 + "notNull": false,
177 + "dimensions": 0,
178 + "default": null,
179 + "generated": null,
180 + "identity": null,
181 + "entityType": "columns"
182 + }
183 + },
184 + {
185 + "op": "create",
186 + "row": {
187 + "schema": "public",
188 + "table": "relay_managed_endpoint_allocations",
189 + "name": "created_at",
190 + "type": "varchar(64)",
191 + "typeSchema": null,
192 + "notNull": true,
193 + "dimensions": 0,
194 + "default": null,
195 + "generated": null,
196 + "identity": null,
197 + "entityType": "columns"
198 + }
199 + },
200 + {
201 + "op": "create",
202 + "row": {
203 + "schema": "public",
204 + "table": "relay_managed_endpoint_allocations",
205 + "name": "updated_at",
206 + "type": "varchar(64)",
207 + "typeSchema": null,
208 + "notNull": true,
209 + "dimensions": 0,
210 + "default": null,
211 + "generated": null,
212 + "identity": null,
213 + "entityType": "columns"
214 + }
215 + },
216 + {
217 + "op": "create",
218 + "row": {
219 + "schema": "public",
220 + "table": "relay_managed_endpoint_allocations",
221 + "name": "idx_relay_managed_endpoint_allocations_hostname",
222 + "nameExplicit": true,
223 + "columns": [
224 + {
225 + "value": "hostname",
226 + "isExpression": false,
227 + "asc": true,
228 + "nullsFirst": false,
229 + "opclass": null
230 + }
231 + ],
232 + "isUnique": true,
233 + "where": null,
234 + "with": "",
235 + "method": "btree",
236 + "concurrently": false,
237 + "entityType": "indexes"
238 + }
239 + },
240 + {
241 + "op": "create",
242 + "row": {
243 + "schema": "public",
244 + "table": "relay_managed_endpoint_allocations",
245 + "name": "idx_relay_managed_endpoint_allocations_tunnel_name",
246 + "nameExplicit": true,
247 + "columns": [
248 + {
249 + "value": "tunnel_name",
250 + "isExpression": false,
251 + "asc": true,
252 + "nullsFirst": false,
253 + "opclass": null
254 + }
255 + ],
256 + "isUnique": true,
257 + "where": null,
258 + "with": "",
259 + "method": "btree",
260 + "concurrently": false,
261 + "entityType": "indexes"
262 + }
263 + },
264 + {
265 + "op": "create",
266 + "row": {
267 + "schema": "public",
268 + "table": "relay_managed_endpoint_allocations",
269 + "name": "relay_managed_endpoint_allocations_pkey",
270 + "columns": ["user_id", "environment_id"],
271 + "nameExplicit": false,
272 + "entityType": "pks"
273 + }
274 + }
275 + ]
276 }
infra/relay/migrations/postgres/20260706061126_migration/snapshot.json
+51 -1467
@@ -1,1479 +1,63 @@
1 {
2 + "type": "diff",
3 + "version": "9",
4 "dialect": "postgres",
5 "id": "f4151a65-091a-4601-bde8-029b155255b0",
6 "prevIds": ["385d476b-d4f6-48a3-99e6-0a95af4ee4e4"],
5 - "version": "8",
6 - "ddl": [
7 + "footprints": [
8 {
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_managed_endpoint_allocations",
46 - "entityType": "tables",
47 - "schema": "public"
48 - },
49 - {
50 - "isRlsEnabled": false,
51 - "name": "relay_mobile_devices",
52 - "entityType": "tables",
53 - "schema": "public"
54 - },
55 - {
56 - "type": "varchar(191)",
57 - "typeSchema": null,
58 - "notNull": true,
59 - "dimensions": 0,
60 - "default": null,
61 - "generated": null,
62 - "identity": null,
63 - "name": "environment_id",
64 - "entityType": "columns",
65 - "schema": "public",
66 - "table": "relay_agent_activity_rows"
67 - },
68 - {
69 - "type": "text",
70 - "typeSchema": null,
71 - "notNull": true,
72 - "dimensions": 0,
73 - "default": null,
74 - "generated": null,
75 - "identity": null,
76 - "name": "environment_public_key",
77 - "entityType": "columns",
78 - "schema": "public",
79 - "table": "relay_agent_activity_rows"
80 - },
81 - {
82 - "type": "varchar(191)",
83 - "typeSchema": null,
84 - "notNull": true,
85 - "dimensions": 0,
86 - "default": null,
87 - "generated": null,
88 - "identity": null,
89 - "name": "thread_id",
90 - "entityType": "columns",
91 - "schema": "public",
92 - "table": "relay_agent_activity_rows"
93 - },
94 - {
95 - "type": "jsonb",
96 - "typeSchema": null,
97 - "notNull": true,
98 - "dimensions": 0,
99 - "default": null,
100 - "generated": null,
101 - "identity": null,
102 - "name": "state_json",
103 - "entityType": "columns",
104 - "schema": "public",
105 - "table": "relay_agent_activity_rows"
106 - },
107 - {
108 - "type": "varchar(64)",
109 - "typeSchema": null,
110 - "notNull": true,
111 - "dimensions": 0,
112 - "default": null,
113 - "generated": null,
114 - "identity": null,
115 - "name": "updated_at",
116 - "entityType": "columns",
117 - "schema": "public",
118 - "table": "relay_agent_activity_rows"
119 - },
120 - {
121 - "type": "varchar(64)",
122 - "typeSchema": null,
123 - "notNull": true,
124 - "dimensions": 0,
125 - "default": null,
126 - "generated": null,
127 - "identity": null,
128 - "name": "created_at",
129 - "entityType": "columns",
130 - "schema": "public",
131 - "table": "relay_agent_activity_rows"
132 - },
133 - {
134 - "type": "varchar(36)",
135 - "typeSchema": null,
136 - "notNull": true,
137 - "dimensions": 0,
138 - "default": null,
139 - "generated": null,
140 - "identity": null,
141 - "name": "id",
142 - "entityType": "columns",
143 - "schema": "public",
144 - "table": "relay_delivery_attempts"
145 - },
146 - {
147 - "type": "varchar(64)",
148 - "typeSchema": null,
149 - "notNull": true,
150 - "dimensions": 0,
151 - "default": null,
152 - "generated": null,
153 - "identity": null,
154 - "name": "created_at",
155 - "entityType": "columns",
156 - "schema": "public",
157 - "table": "relay_delivery_attempts"
158 - },
159 - {
160 - "type": "varchar(255)",
161 - "typeSchema": null,
162 - "notNull": false,
163 - "dimensions": 0,
164 - "default": null,
165 - "generated": null,
166 - "identity": null,
167 - "name": "user_id",
168 - "entityType": "columns",
169 - "schema": "public",
170 - "table": "relay_delivery_attempts"
171 - },
172 - {
173 - "type": "varchar(191)",
174 - "typeSchema": null,
175 - "notNull": false,
176 - "dimensions": 0,
177 - "default": null,
178 - "generated": null,
179 - "identity": null,
180 - "name": "environment_id",
181 - "entityType": "columns",
182 - "schema": "public",
183 - "table": "relay_delivery_attempts"
184 - },
185 - {
186 - "type": "varchar(191)",
187 - "typeSchema": null,
188 - "notNull": false,
189 - "dimensions": 0,
190 - "default": null,
191 - "generated": null,
192 - "identity": null,
193 - "name": "thread_id",
194 - "entityType": "columns",
195 - "schema": "public",
196 - "table": "relay_delivery_attempts"
197 - },
198 - {
199 - "type": "varchar(255)",
200 - "typeSchema": null,
201 - "notNull": false,
202 - "dimensions": 0,
203 - "default": null,
204 - "generated": null,
205 - "identity": null,
206 - "name": "device_id",
207 - "entityType": "columns",
208 - "schema": "public",
209 - "table": "relay_delivery_attempts"
210 - },
211 - {
212 - "type": "varchar(64)",
213 - "typeSchema": null,
214 - "notNull": true,
215 - "dimensions": 0,
216 - "default": null,
217 - "generated": null,
218 - "identity": null,
219 - "name": "kind",
220 - "entityType": "columns",
221 - "schema": "public",
222 - "table": "relay_delivery_attempts"
223 - },
224 - {
225 - "type": "varchar(64)",
226 - "typeSchema": null,
227 - "notNull": false,
228 - "dimensions": 0,
229 - "default": null,
230 - "generated": null,
231 - "identity": null,
232 - "name": "source_job_id",
233 - "entityType": "columns",
234 - "schema": "public",
235 - "table": "relay_delivery_attempts"
236 - },
237 - {
238 - "type": "varchar(16)",
239 - "typeSchema": null,
240 - "notNull": false,
241 - "dimensions": 0,
242 - "default": null,
243 - "generated": null,
244 - "identity": null,
245 - "name": "token_suffix",
246 - "entityType": "columns",
247 - "schema": "public",
248 - "table": "relay_delivery_attempts"
249 - },
250 - {
251 - "type": "integer",
252 - "typeSchema": null,
253 - "notNull": false,
254 - "dimensions": 0,
255 - "default": null,
256 - "generated": null,
257 - "identity": null,
258 - "name": "apns_status",
259 - "entityType": "columns",
260 - "schema": "public",
261 - "table": "relay_delivery_attempts"
262 - },
263 - {
264 - "type": "text",
265 - "typeSchema": null,
266 - "notNull": false,
267 - "dimensions": 0,
268 - "default": null,
269 - "generated": null,
270 - "identity": null,
271 - "name": "apns_reason",
272 - "entityType": "columns",
273 - "schema": "public",
274 - "table": "relay_delivery_attempts"
275 - },
276 - {
277 - "type": "varchar(128)",
278 - "typeSchema": null,
279 - "notNull": false,
280 - "dimensions": 0,
281 - "default": null,
282 - "generated": null,
283 - "identity": null,
284 - "name": "apns_id",
285 - "entityType": "columns",
286 - "schema": "public",
287 - "table": "relay_delivery_attempts"
288 - },
289 - {
290 - "type": "text",
291 - "typeSchema": null,
292 - "notNull": false,
293 - "dimensions": 0,
294 - "default": null,
295 - "generated": null,
296 - "identity": null,
297 - "name": "transport_error",
298 - "entityType": "columns",
299 - "schema": "public",
300 - "table": "relay_delivery_attempts"
301 - },
302 - {
303 - "type": "varchar(128)",
304 - "typeSchema": null,
305 - "notNull": true,
306 - "dimensions": 0,
307 - "default": null,
308 - "generated": null,
309 - "identity": null,
310 - "name": "thumbprint",
311 - "entityType": "columns",
312 - "schema": "public",
313 - "table": "relay_dpop_proofs"
314 - },
315 - {
316 - "type": "varchar(255)",
317 - "typeSchema": null,
318 - "notNull": true,
319 - "dimensions": 0,
320 - "default": null,
321 - "generated": null,
322 - "identity": null,
323 - "name": "jti",
324 - "entityType": "columns",
325 - "schema": "public",
326 - "table": "relay_dpop_proofs"
327 - },
328 - {
329 - "type": "integer",
330 - "typeSchema": null,
331 - "notNull": true,
332 - "dimensions": 0,
333 - "default": null,
334 - "generated": null,
335 - "identity": null,
336 - "name": "iat",
337 - "entityType": "columns",
338 - "schema": "public",
339 - "table": "relay_dpop_proofs"
340 - },
341 - {
342 - "type": "varchar(64)",
343 - "typeSchema": null,
344 - "notNull": true,
345 - "dimensions": 0,
346 - "default": null,
347 - "generated": null,
348 - "identity": null,
349 - "name": "expires_at",
350 - "entityType": "columns",
351 - "schema": "public",
352 - "table": "relay_dpop_proofs"
353 - },
354 - {
355 - "type": "varchar(64)",
356 - "typeSchema": null,
357 - "notNull": true,
358 - "dimensions": 0,
359 - "default": null,
360 - "generated": null,
361 - "identity": null,
362 - "name": "created_at",
363 - "entityType": "columns",
364 - "schema": "public",
365 - "table": "relay_dpop_proofs"
366 - },
367 - {
368 - "type": "varchar(64)",
369 - "typeSchema": null,
370 - "notNull": true,
371 - "dimensions": 0,
372 - "default": null,
373 - "generated": null,
374 - "identity": null,
375 - "name": "credential_id",
376 - "entityType": "columns",
377 - "schema": "public",
378 - "table": "relay_environment_credentials"
379 - },
380 - {
381 - "type": "varchar(191)",
382 - "typeSchema": null,
383 - "notNull": true,
384 - "dimensions": 0,
385 - "default": null,
386 - "generated": null,
387 - "identity": null,
388 - "name": "environment_id",
389 - "entityType": "columns",
390 - "schema": "public",
391 - "table": "relay_environment_credentials"
392 - },
393 - {
394 - "type": "text",
395 - "typeSchema": null,
396 - "notNull": true,
397 - "dimensions": 0,
398 - "default": null,
399 - "generated": null,
400 - "identity": null,
401 - "name": "environment_public_key",
402 - "entityType": "columns",
403 - "schema": "public",
404 - "table": "relay_environment_credentials"
405 - },
406 - {
407 - "type": "varchar(191)",
408 - "typeSchema": null,
409 - "notNull": true,
410 - "dimensions": 0,
411 - "default": null,
412 - "generated": null,
413 - "identity": null,
414 - "name": "credential_hash",
415 - "entityType": "columns",
416 - "schema": "public",
417 - "table": "relay_environment_credentials"
418 - },
419 - {
420 - "type": "varchar(64)",
421 - "typeSchema": null,
422 - "notNull": false,
423 - "dimensions": 0,
424 - "default": null,
425 - "generated": null,
426 - "identity": null,
427 - "name": "revoked_at",
428 - "entityType": "columns",
429 - "schema": "public",
430 - "table": "relay_environment_credentials"
431 - },
432 - {
433 - "type": "varchar(64)",
434 - "typeSchema": null,
435 - "notNull": true,
436 - "dimensions": 0,
437 - "default": null,
438 - "generated": null,
439 - "identity": null,
440 - "name": "created_at",
441 - "entityType": "columns",
442 - "schema": "public",
443 - "table": "relay_environment_credentials"
444 - },
445 - {
446 - "type": "varchar(64)",
447 - "typeSchema": null,
448 - "notNull": true,
449 - "dimensions": 0,
450 - "default": null,
451 - "generated": null,
452 - "identity": null,
453 - "name": "updated_at",
454 - "entityType": "columns",
455 - "schema": "public",
456 - "table": "relay_environment_credentials"
457 - },
458 - {
459 - "type": "varchar(191)",
460 - "typeSchema": null,
461 - "notNull": true,
462 - "dimensions": 0,
463 - "default": null,
464 - "generated": null,
465 - "identity": null,
466 - "name": "user_id",
467 - "entityType": "columns",
468 - "schema": "public",
469 - "table": "relay_environment_links"
470 - },
471 - {
472 - "type": "varchar(191)",
473 - "typeSchema": null,
474 - "notNull": true,
475 - "dimensions": 0,
476 - "default": null,
477 - "generated": null,
478 - "identity": null,
479 - "name": "environment_id",
480 - "entityType": "columns",
481 - "schema": "public",
482 - "table": "relay_environment_links"
483 - },
484 - {
485 - "type": "text",
486 - "typeSchema": null,
487 - "notNull": true,
488 - "dimensions": 0,
489 - "default": "'T3 Environment'",
490 - "generated": null,
491 - "identity": null,
492 - "name": "environment_label",
493 - "entityType": "columns",
494 - "schema": "public",
495 - "table": "relay_environment_links"
496 - },
497 - {
498 - "type": "text",
499 - "typeSchema": null,
500 - "notNull": true,
501 - "dimensions": 0,
502 - "default": null,
503 - "generated": null,
504 - "identity": null,
505 - "name": "environment_public_key",
506 - "entityType": "columns",
507 - "schema": "public",
508 - "table": "relay_environment_links"
509 - },
510 - {
511 - "type": "text",
512 - "typeSchema": null,
513 - "notNull": true,
514 - "dimensions": 0,
515 - "default": null,
516 - "generated": null,
517 - "identity": null,
518 - "name": "endpoint_http_base_url",
519 - "entityType": "columns",
520 - "schema": "public",
521 - "table": "relay_environment_links"
522 - },
523 - {
524 - "type": "text",
525 - "typeSchema": null,
526 - "notNull": true,
527 - "dimensions": 0,
528 - "default": null,
529 - "generated": null,
530 - "identity": null,
531 - "name": "endpoint_ws_base_url",
532 - "entityType": "columns",
533 - "schema": "public",
534 - "table": "relay_environment_links"
535 - },
536 - {
537 - "type": "varchar(32)",
538 - "typeSchema": null,
539 - "notNull": true,
540 - "dimensions": 0,
541 - "default": null,
542 - "generated": null,
543 - "identity": null,
544 - "name": "endpoint_provider_kind",
545 - "entityType": "columns",
546 - "schema": "public",
547 - "table": "relay_environment_links"
548 - },
549 - {
550 - "type": "boolean",
551 - "typeSchema": null,
552 - "notNull": true,
553 - "dimensions": 0,
554 - "default": "true",
555 - "generated": null,
556 - "identity": null,
557 - "name": "notifications_enabled",
558 - "entityType": "columns",
559 - "schema": "public",
560 - "table": "relay_environment_links"
561 - },
562 - {
563 - "type": "boolean",
564 - "typeSchema": null,
565 - "notNull": true,
566 - "dimensions": 0,
567 - "default": "true",
568 - "generated": null,
569 - "identity": null,
570 - "name": "live_activities_enabled",
571 - "entityType": "columns",
572 - "schema": "public",
573 - "table": "relay_environment_links"
574 - },
575 - {
576 - "type": "boolean",
577 - "typeSchema": null,
578 - "notNull": true,
579 - "dimensions": 0,
580 - "default": "false",
581 - "generated": null,
582 - "identity": null,
583 - "name": "managed_tunnels_enabled",
584 - "entityType": "columns",
585 - "schema": "public",
586 - "table": "relay_environment_links"
587 - },
588 - {
589 - "type": "varchar(191)",
590 - "typeSchema": null,
591 - "notNull": false,
592 - "dimensions": 0,
593 - "default": null,
594 - "generated": null,
595 - "identity": null,
596 - "name": "created_by_device_id",
597 - "entityType": "columns",
598 - "schema": "public",
599 - "table": "relay_environment_links"
600 - },
601 - {
602 - "type": "varchar(64)",
603 - "typeSchema": null,
604 - "notNull": false,
605 - "dimensions": 0,
606 - "default": null,
607 - "generated": null,
608 - "identity": null,
609 - "name": "revoked_at",
610 - "entityType": "columns",
611 - "schema": "public",
612 - "table": "relay_environment_links"
613 - },
614 - {
615 - "type": "varchar(64)",
616 - "typeSchema": null,
617 - "notNull": true,
618 - "dimensions": 0,
619 - "default": null,
620 - "generated": null,
621 - "identity": null,
622 - "name": "created_at",
623 - "entityType": "columns",
624 - "schema": "public",
625 - "table": "relay_environment_links"
626 - },
627 - {
628 - "type": "varchar(64)",
629 - "typeSchema": null,
630 - "notNull": true,
631 - "dimensions": 0,
632 - "default": null,
633 - "generated": null,
634 - "identity": null,
635 - "name": "updated_at",
636 - "entityType": "columns",
637 - "schema": "public",
638 - "table": "relay_environment_links"
639 - },
640 - {
641 - "type": "varchar(255)",
642 - "typeSchema": null,
643 - "notNull": true,
644 - "dimensions": 0,
645 - "default": null,
646 - "generated": null,
647 - "identity": null,
648 - "name": "user_id",
649 - "entityType": "columns",
650 - "schema": "public",
651 - "table": "relay_live_activities"
652 - },
653 - {
654 - "type": "varchar(255)",
655 - "typeSchema": null,
656 - "notNull": true,
657 - "dimensions": 0,
658 - "default": null,
659 - "generated": null,
660 - "identity": null,
661 - "name": "device_id",
662 - "entityType": "columns",
663 - "schema": "public",
664 - "table": "relay_live_activities"
665 - },
666 - {
667 - "type": "text",
668 - "typeSchema": null,
669 - "notNull": false,
670 - "dimensions": 0,
671 - "default": null,
672 - "generated": null,
673 - "identity": null,
674 - "name": "activity_push_token",
675 - "entityType": "columns",
676 - "schema": "public",
677 - "table": "relay_live_activities"
678 - },
679 - {
680 - "type": "varchar(64)",
681 - "typeSchema": null,
682 - "notNull": false,
683 - "dimensions": 0,
684 - "default": null,
685 - "generated": null,
686 - "identity": null,
687 - "name": "remote_start_queued_at",
688 - "entityType": "columns",
689 - "schema": "public",
690 - "table": "relay_live_activities"
691 - },
692 - {
693 - "type": "varchar(64)",
694 - "typeSchema": null,
695 - "notNull": false,
696 - "dimensions": 0,
697 - "default": null,
698 - "generated": null,
699 - "identity": null,
700 - "name": "remote_started_at",
701 - "entityType": "columns",
702 - "schema": "public",
703 - "table": "relay_live_activities"
704 - },
705 - {
706 - "type": "varchar(64)",
707 - "typeSchema": null,
708 - "notNull": false,
709 - "dimensions": 0,
710 - "default": null,
711 - "generated": null,
712 - "identity": null,
713 - "name": "ended_at",
714 - "entityType": "columns",
715 - "schema": "public",
716 - "table": "relay_live_activities"
717 - },
718 - {
719 - "type": "jsonb",
720 - "typeSchema": null,
721 - "notNull": false,
722 - "dimensions": 0,
723 - "default": null,
724 - "generated": null,
725 - "identity": null,
726 - "name": "last_aggregate_json",
727 - "entityType": "columns",
728 - "schema": "public",
729 - "table": "relay_live_activities"
730 - },
731 - {
732 - "type": "varchar(64)",
733 - "typeSchema": null,
734 - "notNull": false,
735 - "dimensions": 0,
736 - "default": null,
737 - "generated": null,
738 - "identity": null,
739 - "name": "last_live_activity_delivery_at",
740 - "entityType": "columns",
741 - "schema": "public",
742 - "table": "relay_live_activities"
743 - },
744 - {
745 - "type": "varchar(64)",
746 - "typeSchema": null,
747 - "notNull": true,
748 - "dimensions": 0,
749 - "default": null,
750 - "generated": null,
751 - "identity": null,
752 - "name": "created_at",
753 - "entityType": "columns",
754 - "schema": "public",
755 - "table": "relay_live_activities"
756 - },
757 - {
758 - "type": "varchar(64)",
759 - "typeSchema": null,
760 - "notNull": true,
761 - "dimensions": 0,
762 - "default": null,
763 - "generated": null,
764 - "identity": null,
765 - "name": "updated_at",
766 - "entityType": "columns",
767 - "schema": "public",
768 - "table": "relay_live_activities"
769 - },
770 - {
771 - "type": "varchar(191)",
772 - "typeSchema": null,
773 - "notNull": true,
774 - "dimensions": 0,
775 - "default": null,
776 - "generated": null,
777 - "identity": null,
778 - "name": "user_id",
779 - "entityType": "columns",
780 - "schema": "public",
781 - "table": "relay_managed_endpoint_allocations"
782 - },
783 - {
784 - "type": "varchar(191)",
785 - "typeSchema": null,
786 - "notNull": true,
787 - "dimensions": 0,
788 - "default": null,
789 - "generated": null,
790 - "identity": null,
791 - "name": "environment_id",
792 - "entityType": "columns",
793 - "schema": "public",
794 - "table": "relay_managed_endpoint_allocations"
795 - },
796 - {
797 - "type": "text",
798 - "typeSchema": null,
799 - "notNull": true,
800 - "dimensions": 0,
801 - "default": null,
802 - "generated": null,
803 - "identity": null,
804 - "name": "hostname",
805 - "entityType": "columns",
806 - "schema": "public",
807 - "table": "relay_managed_endpoint_allocations"
808 - },
809 - {
810 - "type": "varchar(191)",
811 - "typeSchema": null,
812 - "notNull": false,
813 - "dimensions": 0,
814 - "default": null,
815 - "generated": null,
816 - "identity": null,
817 - "name": "tunnel_id",
818 - "entityType": "columns",
819 - "schema": "public",
820 - "table": "relay_managed_endpoint_allocations"
821 - },
822 - {
823 - "type": "text",
824 - "typeSchema": null,
825 - "notNull": true,
826 - "dimensions": 0,
827 - "default": null,
828 - "generated": null,
829 - "identity": null,
830 - "name": "tunnel_name",
831 - "entityType": "columns",
832 - "schema": "public",
833 - "table": "relay_managed_endpoint_allocations"
834 - },
835 - {
836 - "type": "varchar(191)",
837 - "typeSchema": null,
838 - "notNull": false,
839 - "dimensions": 0,
840 - "default": null,
841 - "generated": null,
842 - "identity": null,
843 - "name": "dns_record_id",
844 - "entityType": "columns",
845 - "schema": "public",
846 - "table": "relay_managed_endpoint_allocations"
847 - },
848 - {
849 - "type": "varchar(64)",
850 - "typeSchema": null,
851 - "notNull": false,
852 - "dimensions": 0,
853 - "default": null,
854 - "generated": null,
855 - "identity": null,
856 - "name": "ready_at",
857 - "entityType": "columns",
858 - "schema": "public",
859 - "table": "relay_managed_endpoint_allocations"
860 - },
861 - {
862 - "type": "varchar(64)",
863 - "typeSchema": null,
864 - "notNull": true,
865 - "dimensions": 0,
866 - "default": null,
867 - "generated": null,
868 - "identity": null,
869 - "name": "created_at",
870 - "entityType": "columns",
871 - "schema": "public",
872 - "table": "relay_managed_endpoint_allocations"
873 - },
874 - {
875 - "type": "varchar(64)",
876 - "typeSchema": null,
877 - "notNull": true,
878 - "dimensions": 0,
879 - "default": null,
880 - "generated": null,
881 - "identity": null,
882 - "name": "updated_at",
883 - "entityType": "columns",
884 - "schema": "public",
885 - "table": "relay_managed_endpoint_allocations"
886 - },
887 - {
888 - "type": "varchar(255)",
889 - "typeSchema": null,
890 - "notNull": true,
891 - "dimensions": 0,
892 - "default": null,
893 - "generated": null,
894 - "identity": null,
895 - "name": "user_id",
896 - "entityType": "columns",
897 - "schema": "public",
898 - "table": "relay_mobile_devices"
899 - },
900 - {
901 - "type": "varchar(255)",
902 - "typeSchema": null,
903 - "notNull": true,
904 - "dimensions": 0,
905 - "default": null,
906 - "generated": null,
907 - "identity": null,
908 - "name": "device_id",
909 - "entityType": "columns",
910 - "schema": "public",
911 - "table": "relay_mobile_devices"
912 - },
913 - {
914 - "type": "text",
915 - "typeSchema": null,
916 - "notNull": true,
917 - "dimensions": 0,
918 - "default": "'iOS device'",
919 - "generated": null,
920 - "identity": null,
921 - "name": "label",
922 - "entityType": "columns",
923 - "schema": "public",
924 - "table": "relay_mobile_devices"
925 - },
926 - {
927 - "type": "varchar(16)",
928 - "typeSchema": null,
929 - "notNull": true,
930 - "dimensions": 0,
931 - "default": null,
932 - "generated": null,
933 - "identity": null,
934 - "name": "platform",
935 - "entityType": "columns",
936 - "schema": "public",
937 - "table": "relay_mobile_devices"
938 - },
939 - {
940 - "type": "integer",
941 - "typeSchema": null,
942 - "notNull": true,
943 - "dimensions": 0,
944 - "default": null,
945 - "generated": null,
946 - "identity": null,
947 - "name": "ios_major_version",
948 - "entityType": "columns",
949 - "schema": "public",
950 - "table": "relay_mobile_devices"
951 - },
952 - {
953 - "type": "varchar(64)",
954 - "typeSchema": null,
955 - "notNull": false,
956 - "dimensions": 0,
957 - "default": null,
958 - "generated": null,
959 - "identity": null,
960 - "name": "app_version",
961 - "entityType": "columns",
962 - "schema": "public",
963 - "table": "relay_mobile_devices"
964 - },
965 - {
966 - "type": "varchar(255)",
967 - "typeSchema": null,
968 - "notNull": false,
969 - "dimensions": 0,
970 - "default": null,
971 - "generated": null,
972 - "identity": null,
973 - "name": "bundle_id",
974 - "entityType": "columns",
975 - "schema": "public",
976 - "table": "relay_mobile_devices"
977 - },
978 - {
979 - "type": "varchar(16)",
980 - "typeSchema": null,
981 - "notNull": false,
982 - "dimensions": 0,
983 - "default": null,
984 - "generated": null,
985 - "identity": null,
986 - "name": "aps_environment",
987 - "entityType": "columns",
988 - "schema": "public",
989 - "table": "relay_mobile_devices"
990 - },
991 - {
992 - "type": "text",
993 - "typeSchema": null,
994 - "notNull": false,
995 - "dimensions": 0,
996 - "default": null,
997 - "generated": null,
998 - "identity": null,
999 - "name": "push_token",
1000 - "entityType": "columns",
1001 - "schema": "public",
1002 - "table": "relay_mobile_devices"
1003 - },
1004 - {
1005 - "type": "text",
1006 - "typeSchema": null,
1007 - "notNull": false,
1008 - "dimensions": 0,
1009 - "default": null,
1010 - "generated": null,
1011 - "identity": null,
1012 - "name": "push_to_start_token",
1013 - "entityType": "columns",
1014 - "schema": "public",
1015 - "table": "relay_mobile_devices"
1016 - },
1017 - {
1018 - "type": "jsonb",
1019 - "typeSchema": null,
1020 - "notNull": true,
1021 - "dimensions": 0,
1022 - "default": null,
1023 - "generated": null,
1024 - "identity": null,
1025 - "name": "preferences_json",
1026 - "entityType": "columns",
1027 - "schema": "public",
1028 - "table": "relay_mobile_devices"
1029 - },
1030 - {
1031 - "type": "varchar(64)",
1032 - "typeSchema": null,
1033 - "notNull": true,
1034 - "dimensions": 0,
1035 - "default": null,
1036 - "generated": null,
1037 - "identity": null,
1038 - "name": "created_at",
1039 - "entityType": "columns",
1040 - "schema": "public",
1041 - "table": "relay_mobile_devices"
1042 - },
1043 - {
1044 - "type": "varchar(64)",
1045 - "typeSchema": null,
1046 - "notNull": true,
1047 - "dimensions": 0,
1048 - "default": null,
1049 - "generated": null,
1050 - "identity": null,
1051 - "name": "updated_at",
1052 - "entityType": "columns",
1053 - "schema": "public",
1054 - "table": "relay_mobile_devices"
1055 - },
1056 - {
1057 - "nameExplicit": true,
1058 - "columns": [
1059 - {
1060 - "value": "updated_at",
1061 - "isExpression": false,
1062 - "asc": true,
1063 - "nullsFirst": false,
1064 - "opclass": null
1065 - }
9 + "statementType": "add_column",
10 + "statementTarget": ["column", "public", "relay_mobile_devices", "bundle_id"],
11 + "writes": [
12 + "s|col|public.relay_mobile_devices.bundle_id",
13 + "n|col|public.relay_mobile_devices.bundle_id",
14 + "e|col|public.relay_mobile_devices.bundle_id"
15 ],
1067 - "isUnique": false,
1068 - "where": null,
1069 - "with": "",
1070 - "method": "btree",
1071 - "concurrently": false,
1072 - "name": "idx_relay_agent_activity_rows_updated",
1073 - "entityType": "indexes",
1074 - "schema": "public",
1075 - "table": "relay_agent_activity_rows"
16 + "reads": ["n|tbl|public.relay_mobile_devices", "n|sch|public"]
17 },
18 {
1078 - "nameExplicit": true,
1079 - "columns": [
1080 - {
1081 - "value": "environment_id",
1082 - "isExpression": false,
1083 - "asc": true,
1084 - "nullsFirst": false,
1085 - "opclass": null
1086 - },
1087 - {
1088 - "value": "thread_id",
1089 - "isExpression": false,
1090 - "asc": true,
1091 - "nullsFirst": false,
1092 - "opclass": null
1093 - },
1094 - {
1095 - "value": "created_at",
1096 - "isExpression": false,
1097 - "asc": true,
1098 - "nullsFirst": false,
1099 - "opclass": null
1100 - }
19 + "statementType": "add_column",
20 + "statementTarget": ["column", "public", "relay_mobile_devices", "aps_environment"],
21 + "writes": [
22 + "s|col|public.relay_mobile_devices.aps_environment",
23 + "n|col|public.relay_mobile_devices.aps_environment",
24 + "e|col|public.relay_mobile_devices.aps_environment"
25 ],
1102 - "isUnique": false,
1103 - "where": null,
1104 - "with": "",
1105 - "method": "btree",
1106 - "concurrently": false,
1107 - "name": "idx_relay_delivery_attempts_environment",
1108 - "entityType": "indexes",
1109 - "schema": "public",
1110 - "table": "relay_delivery_attempts"
1111 - },
1112 - {
1113 - "nameExplicit": true,
1114 - "columns": [
1115 - {
1116 - "value": "source_job_id",
1117 - "isExpression": false,
1118 - "asc": true,
1119 - "nullsFirst": false,
1120 - "opclass": null
1121 - }
1122 - ],
1123 - "isUnique": true,
1124 - "where": null,
1125 - "with": "",
1126 - "method": "btree",
1127 - "concurrently": false,
1128 - "name": "idx_relay_delivery_attempts_source_job",
1129 - "entityType": "indexes",
1130 - "schema": "public",
1131 - "table": "relay_delivery_attempts"
1132 - },
1133 - {
1134 - "nameExplicit": true,
1135 - "columns": [
1136 - {
1137 - "value": "expires_at",
1138 - "isExpression": false,
1139 - "asc": true,
1140 - "nullsFirst": false,
1141 - "opclass": null
1142 - }
1143 - ],
1144 - "isUnique": false,
1145 - "where": null,
1146 - "with": "",
1147 - "method": "btree",
1148 - "concurrently": false,
1149 - "name": "idx_relay_dpop_proofs_expires_at",
1150 - "entityType": "indexes",
1151 - "schema": "public",
1152 - "table": "relay_dpop_proofs"
1153 - },
1154 - {
1155 - "nameExplicit": true,
1156 - "columns": [
1157 - {
1158 - "value": "credential_hash",
1159 - "isExpression": false,
1160 - "asc": true,
1161 - "nullsFirst": false,
1162 - "opclass": null
1163 - }
1164 - ],
1165 - "isUnique": true,
1166 - "where": null,
1167 - "with": "",
1168 - "method": "btree",
1169 - "concurrently": false,
1170 - "name": "idx_relay_environment_credentials_hash",
1171 - "entityType": "indexes",
1172 - "schema": "public",
1173 - "table": "relay_environment_credentials"
1174 - },
1175 - {
1176 - "nameExplicit": true,
1177 - "columns": [
1178 - {
1179 - "value": "environment_id",
1180 - "isExpression": false,
1181 - "asc": true,
1182 - "nullsFirst": false,
1183 - "opclass": null
1184 - },
1185 - {
1186 - "value": "revoked_at",
1187 - "isExpression": false,
1188 - "asc": true,
1189 - "nullsFirst": false,
1190 - "opclass": null
1191 - }
1192 - ],
1193 - "isUnique": false,
1194 - "where": null,
1195 - "with": "",
1196 - "method": "btree",
1197 - "concurrently": false,
1198 - "name": "idx_relay_environment_credentials_environment",
1199 - "entityType": "indexes",
1200 - "schema": "public",
1201 - "table": "relay_environment_credentials"
1202 - },
1203 - {
1204 - "nameExplicit": true,
1205 - "columns": [
1206 - {
1207 - "value": "environment_id",
1208 - "isExpression": false,
1209 - "asc": true,
1210 - "nullsFirst": false,
1211 - "opclass": null
1212 - },
1213 - {
1214 - "value": "environment_public_key",
1215 - "isExpression": false,
1216 - "asc": true,
1217 - "nullsFirst": false,
1218 - "opclass": null
1219 - },
1220 - {
1221 - "value": "revoked_at",
1222 - "isExpression": false,
1223 - "asc": true,
1224 - "nullsFirst": false,
1225 - "opclass": null
1226 - }
1227 - ],
1228 - "isUnique": false,
1229 - "where": null,
1230 - "with": "",
1231 - "method": "btree",
1232 - "concurrently": false,
1233 - "name": "idx_relay_environment_credentials_environment_key",
1234 - "entityType": "indexes",
1235 - "schema": "public",
1236 - "table": "relay_environment_credentials"
1237 - },
1238 - {
1239 - "nameExplicit": true,
1240 - "columns": [
1241 - {
1242 - "value": "environment_id",
1243 - "isExpression": false,
1244 - "asc": true,
1245 - "nullsFirst": false,
1246 - "opclass": null
1247 - },
1248 - {
1249 - "value": "revoked_at",
1250 - "isExpression": false,
1251 - "asc": true,
1252 - "nullsFirst": false,
1253 - "opclass": null
1254 - }
1255 - ],
1256 - "isUnique": false,
1257 - "where": null,
1258 - "with": "",
1259 - "method": "btree",
1260 - "concurrently": false,
1261 - "name": "idx_relay_environment_links_environment",
1262 - "entityType": "indexes",
1263 - "schema": "public",
1264 - "table": "relay_environment_links"
1265 - },
1266 - {
1267 - "nameExplicit": true,
1268 - "columns": [
1269 - {
1270 - "value": "user_id",
1271 - "isExpression": false,
1272 - "asc": true,
1273 - "nullsFirst": false,
1274 - "opclass": null
1275 - }
1276 - ],
1277 - "isUnique": false,
1278 - "where": null,
1279 - "with": "",
1280 - "method": "btree",
1281 - "concurrently": false,
1282 - "name": "idx_relay_live_activities_user",
1283 - "entityType": "indexes",
1284 - "schema": "public",
1285 - "table": "relay_live_activities"
1286 - },
1287 - {
1288 - "nameExplicit": true,
1289 - "columns": [
1290 - {
1291 - "value": "activity_push_token",
1292 - "isExpression": false,
1293 - "asc": true,
1294 - "nullsFirst": false,
1295 - "opclass": null
1296 - }
1297 - ],
1298 - "isUnique": true,
1299 - "where": null,
1300 - "with": "",
1301 - "method": "btree",
1302 - "concurrently": false,
1303 - "name": "idx_relay_live_activities_activity_push_token",
1304 - "entityType": "indexes",
1305 - "schema": "public",
1306 - "table": "relay_live_activities"
1307 - },
1308 - {
1309 - "nameExplicit": true,
1310 - "columns": [
1311 - {
1312 - "value": "hostname",
1313 - "isExpression": false,
1314 - "asc": true,
1315 - "nullsFirst": false,
1316 - "opclass": null
1317 - }
1318 - ],
1319 - "isUnique": true,
1320 - "where": null,
1321 - "with": "",
1322 - "method": "btree",
1323 - "concurrently": false,
1324 - "name": "idx_relay_managed_endpoint_allocations_hostname",
1325 - "entityType": "indexes",
1326 - "schema": "public",
1327 - "table": "relay_managed_endpoint_allocations"
1328 - },
1329 - {
1330 - "nameExplicit": true,
1331 - "columns": [
1332 - {
1333 - "value": "tunnel_name",
1334 - "isExpression": false,
1335 - "asc": true,
1336 - "nullsFirst": false,
1337 - "opclass": null
1338 - }
1339 - ],
1340 - "isUnique": true,
1341 - "where": null,
1342 - "with": "",
1343 - "method": "btree",
1344 - "concurrently": false,
1345 - "name": "idx_relay_managed_endpoint_allocations_tunnel_name",
1346 - "entityType": "indexes",
1347 - "schema": "public",
1348 - "table": "relay_managed_endpoint_allocations"
1349 - },
1350 - {
1351 - "nameExplicit": true,
1352 - "columns": [
1353 - {
1354 - "value": "user_id",
1355 - "isExpression": false,
1356 - "asc": true,
1357 - "nullsFirst": false,
1358 - "opclass": null
1359 - }
1360 - ],
1361 - "isUnique": false,
1362 - "where": null,
1363 - "with": "",
1364 - "method": "btree",
1365 - "concurrently": false,
1366 - "name": "idx_relay_mobile_devices_user",
1367 - "entityType": "indexes",
1368 - "schema": "public",
1369 - "table": "relay_mobile_devices"
1370 - },
1371 - {
1372 - "nameExplicit": true,
1373 - "columns": [
1374 - {
1375 - "value": "push_token",
1376 - "isExpression": false,
1377 - "asc": true,
1378 - "nullsFirst": false,
1379 - "opclass": null
1380 - }
1381 - ],
1382 - "isUnique": true,
1383 - "where": null,
1384 - "with": "",
1385 - "method": "btree",
1386 - "concurrently": false,
1387 - "name": "idx_relay_mobile_devices_push_token",
1388 - "entityType": "indexes",
1389 - "schema": "public",
1390 - "table": "relay_mobile_devices"
1391 - },
1392 - {
1393 - "nameExplicit": true,
1394 - "columns": [
1395 - {
1396 - "value": "push_to_start_token",
1397 - "isExpression": false,
1398 - "asc": true,
1399 - "nullsFirst": false,
1400 - "opclass": null
1401 - }
1402 - ],
1403 - "isUnique": true,
1404 - "where": null,
1405 - "with": "",
1406 - "method": "btree",
1407 - "concurrently": false,
1408 - "name": "idx_relay_mobile_devices_push_to_start_token",
1409 - "entityType": "indexes",
1410 - "schema": "public",
1411 - "table": "relay_mobile_devices"
1412 - },
1413 - {
1414 - "columns": ["environment_id", "environment_public_key", "thread_id"],
1415 - "nameExplicit": false,
1416 - "name": "relay_agent_activity_rows_pkey",
1417 - "entityType": "pks",
1418 - "schema": "public",
1419 - "table": "relay_agent_activity_rows"
1420 - },
1421 - {
1422 - "columns": ["thumbprint", "jti"],
1423 - "nameExplicit": false,
1424 - "name": "relay_dpop_proofs_pkey",
1425 - "entityType": "pks",
1426 - "schema": "public",
1427 - "table": "relay_dpop_proofs"
1428 - },
1429 - {
1430 - "columns": ["user_id", "environment_id"],
1431 - "nameExplicit": false,
1432 - "name": "relay_environment_links_pkey",
1433 - "entityType": "pks",
1434 - "schema": "public",
1435 - "table": "relay_environment_links"
1436 - },
1437 - {
1438 - "columns": ["user_id", "device_id"],
1439 - "nameExplicit": false,
1440 - "name": "relay_live_activities_pkey",
1441 - "entityType": "pks",
1442 - "schema": "public",
1443 - "table": "relay_live_activities"
1444 - },
1445 - {
1446 - "columns": ["user_id", "environment_id"],
1447 - "nameExplicit": false,
1448 - "name": "relay_managed_endpoint_allocations_pkey",
1449 - "entityType": "pks",
1450 - "schema": "public",
1451 - "table": "relay_managed_endpoint_allocations"
1452 - },
1453 - {
1454 - "columns": ["user_id", "device_id"],
1455 - "nameExplicit": false,
1456 - "name": "relay_mobile_devices_pkey",
1457 - "entityType": "pks",
1458 - "schema": "public",
1459 - "table": "relay_mobile_devices"
1460 - },
1461 - {
1462 - "columns": ["id"],
1463 - "nameExplicit": false,
1464 - "name": "relay_delivery_attempts_pkey",
1465 - "schema": "public",
1466 - "table": "relay_delivery_attempts",
1467 - "entityType": "pks"
1468 - },
1469 - {
1470 - "columns": ["credential_id"],
1471 - "nameExplicit": false,
1472 - "name": "relay_environment_credentials_pkey",
1473 - "schema": "public",
1474 - "table": "relay_environment_credentials",
1475 - "entityType": "pks"
26 + "reads": ["n|tbl|public.relay_mobile_devices", "n|sch|public"]
27 }
28 ],
1478 - "renames": []
29 + "deltas": [
30 + {
31 + "op": "create",
32 + "row": {
33 + "schema": "public",
34 + "table": "relay_mobile_devices",
35 + "name": "bundle_id",
36 + "type": "varchar(255)",
37 + "typeSchema": null,
38 + "notNull": false,
39 + "dimensions": 0,
40 + "default": null,
41 + "generated": null,
42 + "identity": null,
43 + "entityType": "columns"
44 + }
45 + },
46 + {
47 + "op": "create",
48 + "row": {
49 + "schema": "public",
50 + "table": "relay_mobile_devices",
51 + "name": "aps_environment",
52 + "type": "varchar(16)",
53 + "typeSchema": null,
54 + "notNull": false,
55 + "dimensions": 0,
56 + "default": null,
57 + "generated": null,
58 + "identity": null,
59 + "entityType": "columns"
60 + }
61 + }
62 + ]
63 }
infra/relay/migrations/postgres/20260727115225_migration/snapshot.json
+100 -1537
@@ -1,1545 +1,108 @@
1 {
2 + "type": "diff",
3 + "version": "9",
4 "dialect": "postgres",
5 "id": "33575636-77b2-4756-8658-687165e6c9ff",
6 "prevIds": ["f4151a65-091a-4601-bde8-029b155255b0"],
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_managed_endpoint_allocations",
46 - "entityType": "tables",
47 - "schema": "public"
48 - },
49 - {
50 - "isRlsEnabled": false,
51 - "name": "relay_managed_tunnel_limits",
52 - "entityType": "tables",
53 - "schema": "public"
54 - },
55 - {
56 - "isRlsEnabled": false,
57 - "name": "relay_mobile_devices",
58 - "entityType": "tables",
59 - "schema": "public"
60 - },
61 - {
62 - "type": "varchar(191)",
63 - "typeSchema": null,
64 - "notNull": true,
65 - "dimensions": 0,
66 - "default": null,
67 - "generated": null,
68 - "identity": null,
69 - "name": "environment_id",
70 - "entityType": "columns",
71 - "schema": "public",
72 - "table": "relay_agent_activity_rows"
73 - },
74 - {
75 - "type": "text",
76 - "typeSchema": null,
77 - "notNull": true,
78 - "dimensions": 0,
79 - "default": null,
80 - "generated": null,
81 - "identity": null,
82 - "name": "environment_public_key",
83 - "entityType": "columns",
84 - "schema": "public",
85 - "table": "relay_agent_activity_rows"
86 - },
87 - {
88 - "type": "varchar(191)",
89 - "typeSchema": null,
90 - "notNull": true,
91 - "dimensions": 0,
92 - "default": null,
93 - "generated": null,
94 - "identity": null,
95 - "name": "thread_id",
96 - "entityType": "columns",
97 - "schema": "public",
98 - "table": "relay_agent_activity_rows"
99 - },
100 - {
101 - "type": "jsonb",
102 - "typeSchema": null,
103 - "notNull": true,
104 - "dimensions": 0,
105 - "default": null,
106 - "generated": null,
107 - "identity": null,
108 - "name": "state_json",
109 - "entityType": "columns",
110 - "schema": "public",
111 - "table": "relay_agent_activity_rows"
112 - },
113 - {
114 - "type": "varchar(64)",
115 - "typeSchema": null,
116 - "notNull": true,
117 - "dimensions": 0,
118 - "default": null,
119 - "generated": null,
120 - "identity": null,
121 - "name": "updated_at",
122 - "entityType": "columns",
123 - "schema": "public",
124 - "table": "relay_agent_activity_rows"
125 - },
126 - {
127 - "type": "varchar(64)",
128 - "typeSchema": null,
129 - "notNull": true,
130 - "dimensions": 0,
131 - "default": null,
132 - "generated": null,
133 - "identity": null,
134 - "name": "created_at",
135 - "entityType": "columns",
136 - "schema": "public",
137 - "table": "relay_agent_activity_rows"
138 - },
139 - {
140 - "type": "varchar(36)",
141 - "typeSchema": null,
142 - "notNull": true,
143 - "dimensions": 0,
144 - "default": null,
145 - "generated": null,
146 - "identity": null,
147 - "name": "id",
148 - "entityType": "columns",
149 - "schema": "public",
150 - "table": "relay_delivery_attempts"
151 - },
152 - {
153 - "type": "varchar(64)",
154 - "typeSchema": null,
155 - "notNull": true,
156 - "dimensions": 0,
157 - "default": null,
158 - "generated": null,
159 - "identity": null,
160 - "name": "created_at",
161 - "entityType": "columns",
162 - "schema": "public",
163 - "table": "relay_delivery_attempts"
164 - },
165 - {
166 - "type": "varchar(255)",
167 - "typeSchema": null,
168 - "notNull": false,
169 - "dimensions": 0,
170 - "default": null,
171 - "generated": null,
172 - "identity": null,
173 - "name": "user_id",
174 - "entityType": "columns",
175 - "schema": "public",
176 - "table": "relay_delivery_attempts"
177 - },
178 - {
179 - "type": "varchar(191)",
180 - "typeSchema": null,
181 - "notNull": false,
182 - "dimensions": 0,
183 - "default": null,
184 - "generated": null,
185 - "identity": null,
186 - "name": "environment_id",
187 - "entityType": "columns",
188 - "schema": "public",
189 - "table": "relay_delivery_attempts"
190 - },
191 - {
192 - "type": "varchar(191)",
193 - "typeSchema": null,
194 - "notNull": false,
195 - "dimensions": 0,
196 - "default": null,
197 - "generated": null,
198 - "identity": null,
199 - "name": "thread_id",
200 - "entityType": "columns",
201 - "schema": "public",
202 - "table": "relay_delivery_attempts"
203 - },
204 - {
205 - "type": "varchar(255)",
206 - "typeSchema": null,
207 - "notNull": false,
208 - "dimensions": 0,
209 - "default": null,
210 - "generated": null,
211 - "identity": null,
212 - "name": "device_id",
213 - "entityType": "columns",
214 - "schema": "public",
215 - "table": "relay_delivery_attempts"
216 - },
217 - {
218 - "type": "varchar(64)",
219 - "typeSchema": null,
220 - "notNull": true,
221 - "dimensions": 0,
222 - "default": null,
223 - "generated": null,
224 - "identity": null,
225 - "name": "kind",
226 - "entityType": "columns",
227 - "schema": "public",
228 - "table": "relay_delivery_attempts"
229 - },
230 - {
231 - "type": "varchar(64)",
232 - "typeSchema": null,
233 - "notNull": false,
234 - "dimensions": 0,
235 - "default": null,
236 - "generated": null,
237 - "identity": null,
238 - "name": "source_job_id",
239 - "entityType": "columns",
240 - "schema": "public",
241 - "table": "relay_delivery_attempts"
242 - },
243 - {
244 - "type": "varchar(16)",
245 - "typeSchema": null,
246 - "notNull": false,
247 - "dimensions": 0,
248 - "default": null,
249 - "generated": null,
250 - "identity": null,
251 - "name": "token_suffix",
252 - "entityType": "columns",
253 - "schema": "public",
254 - "table": "relay_delivery_attempts"
255 - },
256 - {
257 - "type": "integer",
258 - "typeSchema": null,
259 - "notNull": false,
260 - "dimensions": 0,
261 - "default": null,
262 - "generated": null,
263 - "identity": null,
264 - "name": "apns_status",
265 - "entityType": "columns",
266 - "schema": "public",
267 - "table": "relay_delivery_attempts"
268 - },
269 - {
270 - "type": "text",
271 - "typeSchema": null,
272 - "notNull": false,
273 - "dimensions": 0,
274 - "default": null,
275 - "generated": null,
276 - "identity": null,
277 - "name": "apns_reason",
278 - "entityType": "columns",
279 - "schema": "public",
280 - "table": "relay_delivery_attempts"
281 - },
282 - {
283 - "type": "varchar(128)",
284 - "typeSchema": null,
285 - "notNull": false,
286 - "dimensions": 0,
287 - "default": null,
288 - "generated": null,
289 - "identity": null,
290 - "name": "apns_id",
291 - "entityType": "columns",
292 - "schema": "public",
293 - "table": "relay_delivery_attempts"
294 - },
295 - {
296 - "type": "text",
297 - "typeSchema": null,
298 - "notNull": false,
299 - "dimensions": 0,
300 - "default": null,
301 - "generated": null,
302 - "identity": null,
303 - "name": "transport_error",
304 - "entityType": "columns",
305 - "schema": "public",
306 - "table": "relay_delivery_attempts"
307 - },
308 - {
309 - "type": "varchar(128)",
310 - "typeSchema": null,
311 - "notNull": true,
312 - "dimensions": 0,
313 - "default": null,
314 - "generated": null,
315 - "identity": null,
316 - "name": "thumbprint",
317 - "entityType": "columns",
318 - "schema": "public",
319 - "table": "relay_dpop_proofs"
320 - },
321 - {
322 - "type": "varchar(255)",
323 - "typeSchema": null,
324 - "notNull": true,
325 - "dimensions": 0,
326 - "default": null,
327 - "generated": null,
328 - "identity": null,
329 - "name": "jti",
330 - "entityType": "columns",
331 - "schema": "public",
332 - "table": "relay_dpop_proofs"
333 - },
334 - {
335 - "type": "integer",
336 - "typeSchema": null,
337 - "notNull": true,
338 - "dimensions": 0,
339 - "default": null,
340 - "generated": null,
341 - "identity": null,
342 - "name": "iat",
343 - "entityType": "columns",
344 - "schema": "public",
345 - "table": "relay_dpop_proofs"
346 - },
347 - {
348 - "type": "varchar(64)",
349 - "typeSchema": null,
350 - "notNull": true,
351 - "dimensions": 0,
352 - "default": null,
353 - "generated": null,
354 - "identity": null,
355 - "name": "expires_at",
356 - "entityType": "columns",
357 - "schema": "public",
358 - "table": "relay_dpop_proofs"
359 - },
360 - {
361 - "type": "varchar(64)",
362 - "typeSchema": null,
363 - "notNull": true,
364 - "dimensions": 0,
365 - "default": null,
366 - "generated": null,
367 - "identity": null,
368 - "name": "created_at",
369 - "entityType": "columns",
370 - "schema": "public",
371 - "table": "relay_dpop_proofs"
372 - },
373 - {
374 - "type": "varchar(64)",
375 - "typeSchema": null,
376 - "notNull": true,
377 - "dimensions": 0,
378 - "default": null,
379 - "generated": null,
380 - "identity": null,
381 - "name": "credential_id",
382 - "entityType": "columns",
383 - "schema": "public",
384 - "table": "relay_environment_credentials"
385 - },
386 - {
387 - "type": "varchar(191)",
388 - "typeSchema": null,
389 - "notNull": true,
390 - "dimensions": 0,
391 - "default": null,
392 - "generated": null,
393 - "identity": null,
394 - "name": "environment_id",
395 - "entityType": "columns",
396 - "schema": "public",
397 - "table": "relay_environment_credentials"
398 - },
399 - {
400 - "type": "text",
401 - "typeSchema": null,
402 - "notNull": true,
403 - "dimensions": 0,
404 - "default": null,
405 - "generated": null,
406 - "identity": null,
407 - "name": "environment_public_key",
408 - "entityType": "columns",
409 - "schema": "public",
410 - "table": "relay_environment_credentials"
411 - },
412 - {
413 - "type": "varchar(191)",
414 - "typeSchema": null,
415 - "notNull": true,
416 - "dimensions": 0,
417 - "default": null,
418 - "generated": null,
419 - "identity": null,
420 - "name": "credential_hash",
421 - "entityType": "columns",
422 - "schema": "public",
423 - "table": "relay_environment_credentials"
424 - },
425 - {
426 - "type": "varchar(64)",
427 - "typeSchema": null,
428 - "notNull": false,
429 - "dimensions": 0,
430 - "default": null,
431 - "generated": null,
432 - "identity": null,
433 - "name": "revoked_at",
434 - "entityType": "columns",
435 - "schema": "public",
436 - "table": "relay_environment_credentials"
437 - },
438 - {
439 - "type": "varchar(64)",
440 - "typeSchema": null,
441 - "notNull": true,
442 - "dimensions": 0,
443 - "default": null,
444 - "generated": null,
445 - "identity": null,
446 - "name": "created_at",
447 - "entityType": "columns",
448 - "schema": "public",
449 - "table": "relay_environment_credentials"
450 - },
451 - {
452 - "type": "varchar(64)",
453 - "typeSchema": null,
454 - "notNull": true,
455 - "dimensions": 0,
456 - "default": null,
457 - "generated": null,
458 - "identity": null,
459 - "name": "updated_at",
460 - "entityType": "columns",
461 - "schema": "public",
462 - "table": "relay_environment_credentials"
463 - },
464 - {
465 - "type": "varchar(191)",
466 - "typeSchema": null,
467 - "notNull": true,
468 - "dimensions": 0,
469 - "default": null,
470 - "generated": null,
471 - "identity": null,
472 - "name": "user_id",
473 - "entityType": "columns",
474 - "schema": "public",
475 - "table": "relay_environment_links"
476 - },
477 - {
478 - "type": "varchar(191)",
479 - "typeSchema": null,
480 - "notNull": true,
481 - "dimensions": 0,
482 - "default": null,
483 - "generated": null,
484 - "identity": null,
485 - "name": "environment_id",
486 - "entityType": "columns",
487 - "schema": "public",
488 - "table": "relay_environment_links"
489 - },
490 - {
491 - "type": "text",
492 - "typeSchema": null,
493 - "notNull": true,
494 - "dimensions": 0,
495 - "default": "'T3 Environment'",
496 - "generated": null,
497 - "identity": null,
498 - "name": "environment_label",
499 - "entityType": "columns",
500 - "schema": "public",
501 - "table": "relay_environment_links"
502 - },
503 - {
504 - "type": "text",
505 - "typeSchema": null,
506 - "notNull": true,
507 - "dimensions": 0,
508 - "default": null,
509 - "generated": null,
510 - "identity": null,
511 - "name": "environment_public_key",
512 - "entityType": "columns",
513 - "schema": "public",
514 - "table": "relay_environment_links"
515 - },
516 - {
517 - "type": "text",
518 - "typeSchema": null,
519 - "notNull": true,
520 - "dimensions": 0,
521 - "default": null,
522 - "generated": null,
523 - "identity": null,
524 - "name": "endpoint_http_base_url",
525 - "entityType": "columns",
526 - "schema": "public",
527 - "table": "relay_environment_links"
528 - },
529 - {
530 - "type": "text",
531 - "typeSchema": null,
532 - "notNull": true,
533 - "dimensions": 0,
534 - "default": null,
535 - "generated": null,
536 - "identity": null,
537 - "name": "endpoint_ws_base_url",
538 - "entityType": "columns",
539 - "schema": "public",
540 - "table": "relay_environment_links"
541 - },
542 - {
543 - "type": "varchar(32)",
544 - "typeSchema": null,
545 - "notNull": true,
546 - "dimensions": 0,
547 - "default": null,
548 - "generated": null,
549 - "identity": null,
550 - "name": "endpoint_provider_kind",
551 - "entityType": "columns",
552 - "schema": "public",
553 - "table": "relay_environment_links"
554 - },
555 - {
556 - "type": "boolean",
557 - "typeSchema": null,
558 - "notNull": true,
559 - "dimensions": 0,
560 - "default": "true",
561 - "generated": null,
562 - "identity": null,
563 - "name": "notifications_enabled",
564 - "entityType": "columns",
565 - "schema": "public",
566 - "table": "relay_environment_links"
567 - },
568 - {
569 - "type": "boolean",
570 - "typeSchema": null,
571 - "notNull": true,
572 - "dimensions": 0,
573 - "default": "true",
574 - "generated": null,
575 - "identity": null,
576 - "name": "live_activities_enabled",
577 - "entityType": "columns",
578 - "schema": "public",
579 - "table": "relay_environment_links"
580 - },
581 - {
582 - "type": "boolean",
583 - "typeSchema": null,
584 - "notNull": true,
585 - "dimensions": 0,
586 - "default": "false",
587 - "generated": null,
588 - "identity": null,
589 - "name": "managed_tunnels_enabled",
590 - "entityType": "columns",
591 - "schema": "public",
592 - "table": "relay_environment_links"
593 - },
594 - {
595 - "type": "varchar(191)",
596 - "typeSchema": null,
597 - "notNull": false,
598 - "dimensions": 0,
599 - "default": null,
600 - "generated": null,
601 - "identity": null,
602 - "name": "created_by_device_id",
603 - "entityType": "columns",
604 - "schema": "public",
605 - "table": "relay_environment_links"
606 - },
607 - {
608 - "type": "varchar(64)",
609 - "typeSchema": null,
610 - "notNull": false,
611 - "dimensions": 0,
612 - "default": null,
613 - "generated": null,
614 - "identity": null,
615 - "name": "revoked_at",
616 - "entityType": "columns",
617 - "schema": "public",
618 - "table": "relay_environment_links"
619 - },
620 - {
621 - "type": "varchar(64)",
622 - "typeSchema": null,
623 - "notNull": true,
624 - "dimensions": 0,
625 - "default": null,
626 - "generated": null,
627 - "identity": null,
628 - "name": "created_at",
629 - "entityType": "columns",
630 - "schema": "public",
631 - "table": "relay_environment_links"
632 - },
633 - {
634 - "type": "varchar(64)",
635 - "typeSchema": null,
636 - "notNull": true,
637 - "dimensions": 0,
638 - "default": null,
639 - "generated": null,
640 - "identity": null,
641 - "name": "updated_at",
642 - "entityType": "columns",
643 - "schema": "public",
644 - "table": "relay_environment_links"
645 - },
646 - {
647 - "type": "varchar(255)",
648 - "typeSchema": null,
649 - "notNull": true,
650 - "dimensions": 0,
651 - "default": null,
652 - "generated": null,
653 - "identity": null,
654 - "name": "user_id",
655 - "entityType": "columns",
656 - "schema": "public",
657 - "table": "relay_live_activities"
658 - },
659 - {
660 - "type": "varchar(255)",
661 - "typeSchema": null,
662 - "notNull": true,
663 - "dimensions": 0,
664 - "default": null,
665 - "generated": null,
666 - "identity": null,
667 - "name": "device_id",
668 - "entityType": "columns",
669 - "schema": "public",
670 - "table": "relay_live_activities"
671 - },
672 - {
673 - "type": "text",
674 - "typeSchema": null,
675 - "notNull": false,
676 - "dimensions": 0,
677 - "default": null,
678 - "generated": null,
679 - "identity": null,
680 - "name": "activity_push_token",
681 - "entityType": "columns",
682 - "schema": "public",
683 - "table": "relay_live_activities"
684 - },
685 - {
686 - "type": "varchar(64)",
687 - "typeSchema": null,
688 - "notNull": false,
689 - "dimensions": 0,
690 - "default": null,
691 - "generated": null,
692 - "identity": null,
693 - "name": "remote_start_queued_at",
694 - "entityType": "columns",
695 - "schema": "public",
696 - "table": "relay_live_activities"
697 - },
698 - {
699 - "type": "varchar(64)",
700 - "typeSchema": null,
701 - "notNull": false,
702 - "dimensions": 0,
703 - "default": null,
704 - "generated": null,
705 - "identity": null,
706 - "name": "remote_started_at",
707 - "entityType": "columns",
708 - "schema": "public",
709 - "table": "relay_live_activities"
710 - },
711 - {
712 - "type": "varchar(64)",
713 - "typeSchema": null,
714 - "notNull": false,
715 - "dimensions": 0,
716 - "default": null,
717 - "generated": null,
718 - "identity": null,
719 - "name": "ended_at",
720 - "entityType": "columns",
721 - "schema": "public",
722 - "table": "relay_live_activities"
723 - },
724 - {
725 - "type": "jsonb",
726 - "typeSchema": null,
727 - "notNull": false,
728 - "dimensions": 0,
729 - "default": null,
730 - "generated": null,
731 - "identity": null,
732 - "name": "last_aggregate_json",
733 - "entityType": "columns",
734 - "schema": "public",
735 - "table": "relay_live_activities"
736 - },
737 - {
738 - "type": "varchar(64)",
739 - "typeSchema": null,
740 - "notNull": false,
741 - "dimensions": 0,
742 - "default": null,
743 - "generated": null,
744 - "identity": null,
745 - "name": "last_live_activity_delivery_at",
746 - "entityType": "columns",
747 - "schema": "public",
748 - "table": "relay_live_activities"
749 - },
750 - {
751 - "type": "varchar(64)",
752 - "typeSchema": null,
753 - "notNull": true,
754 - "dimensions": 0,
755 - "default": null,
756 - "generated": null,
757 - "identity": null,
758 - "name": "created_at",
759 - "entityType": "columns",
760 - "schema": "public",
761 - "table": "relay_live_activities"
762 - },
763 - {
764 - "type": "varchar(64)",
765 - "typeSchema": null,
766 - "notNull": true,
767 - "dimensions": 0,
768 - "default": null,
769 - "generated": null,
770 - "identity": null,
771 - "name": "updated_at",
772 - "entityType": "columns",
773 - "schema": "public",
774 - "table": "relay_live_activities"
775 - },
776 - {
777 - "type": "varchar(191)",
778 - "typeSchema": null,
779 - "notNull": true,
780 - "dimensions": 0,
781 - "default": null,
782 - "generated": null,
783 - "identity": null,
784 - "name": "user_id",
785 - "entityType": "columns",
786 - "schema": "public",
787 - "table": "relay_managed_endpoint_allocations"
788 - },
789 - {
790 - "type": "varchar(191)",
791 - "typeSchema": null,
792 - "notNull": true,
793 - "dimensions": 0,
794 - "default": null,
795 - "generated": null,
796 - "identity": null,
797 - "name": "environment_id",
798 - "entityType": "columns",
799 - "schema": "public",
800 - "table": "relay_managed_endpoint_allocations"
801 - },
802 - {
803 - "type": "text",
804 - "typeSchema": null,
805 - "notNull": true,
806 - "dimensions": 0,
807 - "default": null,
808 - "generated": null,
809 - "identity": null,
810 - "name": "hostname",
811 - "entityType": "columns",
812 - "schema": "public",
813 - "table": "relay_managed_endpoint_allocations"
814 - },
815 - {
816 - "type": "varchar(191)",
817 - "typeSchema": null,
818 - "notNull": false,
819 - "dimensions": 0,
820 - "default": null,
821 - "generated": null,
822 - "identity": null,
823 - "name": "tunnel_id",
824 - "entityType": "columns",
825 - "schema": "public",
826 - "table": "relay_managed_endpoint_allocations"
827 - },
828 - {
829 - "type": "text",
830 - "typeSchema": null,
831 - "notNull": true,
832 - "dimensions": 0,
833 - "default": null,
834 - "generated": null,
835 - "identity": null,
836 - "name": "tunnel_name",
837 - "entityType": "columns",
838 - "schema": "public",
839 - "table": "relay_managed_endpoint_allocations"
840 - },
841 - {
842 - "type": "varchar(191)",
843 - "typeSchema": null,
844 - "notNull": false,
845 - "dimensions": 0,
846 - "default": null,
847 - "generated": null,
848 - "identity": null,
849 - "name": "dns_record_id",
850 - "entityType": "columns",
851 - "schema": "public",
852 - "table": "relay_managed_endpoint_allocations"
853 - },
854 - {
855 - "type": "varchar(64)",
856 - "typeSchema": null,
857 - "notNull": false,
858 - "dimensions": 0,
859 - "default": null,
860 - "generated": null,
861 - "identity": null,
862 - "name": "ready_at",
863 - "entityType": "columns",
864 - "schema": "public",
865 - "table": "relay_managed_endpoint_allocations"
866 - },
867 - {
868 - "type": "varchar(64)",
869 - "typeSchema": null,
870 - "notNull": true,
871 - "dimensions": 0,
872 - "default": null,
873 - "generated": null,
874 - "identity": null,
875 - "name": "created_at",
876 - "entityType": "columns",
877 - "schema": "public",
878 - "table": "relay_managed_endpoint_allocations"
879 - },
880 - {
881 - "type": "varchar(64)",
882 - "typeSchema": null,
883 - "notNull": true,
884 - "dimensions": 0,
885 - "default": null,
886 - "generated": null,
887 - "identity": null,
888 - "name": "updated_at",
889 - "entityType": "columns",
890 - "schema": "public",
891 - "table": "relay_managed_endpoint_allocations"
892 - },
893 - {
894 - "type": "varchar(191)",
895 - "typeSchema": null,
896 - "notNull": true,
897 - "dimensions": 0,
898 - "default": null,
899 - "generated": null,
900 - "identity": null,
901 - "name": "user_id",
902 - "entityType": "columns",
903 - "schema": "public",
904 - "table": "relay_managed_tunnel_limits"
905 - },
906 - {
907 - "type": "integer",
908 - "typeSchema": null,
909 - "notNull": true,
910 - "dimensions": 0,
911 - "default": null,
912 - "generated": null,
913 - "identity": null,
914 - "name": "max_tunnels",
915 - "entityType": "columns",
916 - "schema": "public",
917 - "table": "relay_managed_tunnel_limits"
918 - },
919 - {
920 - "type": "varchar(64)",
921 - "typeSchema": null,
922 - "notNull": true,
923 - "dimensions": 0,
924 - "default": null,
925 - "generated": null,
926 - "identity": null,
927 - "name": "created_at",
928 - "entityType": "columns",
929 - "schema": "public",
930 - "table": "relay_managed_tunnel_limits"
931 - },
932 - {
933 - "type": "varchar(64)",
934 - "typeSchema": null,
935 - "notNull": true,
936 - "dimensions": 0,
937 - "default": null,
938 - "generated": null,
939 - "identity": null,
940 - "name": "updated_at",
941 - "entityType": "columns",
942 - "schema": "public",
943 - "table": "relay_managed_tunnel_limits"
944 - },
945 - {
946 - "type": "varchar(255)",
947 - "typeSchema": null,
948 - "notNull": true,
949 - "dimensions": 0,
950 - "default": null,
951 - "generated": null,
952 - "identity": null,
953 - "name": "user_id",
954 - "entityType": "columns",
955 - "schema": "public",
956 - "table": "relay_mobile_devices"
957 - },
958 - {
959 - "type": "varchar(255)",
960 - "typeSchema": null,
961 - "notNull": true,
962 - "dimensions": 0,
963 - "default": null,
964 - "generated": null,
965 - "identity": null,
966 - "name": "device_id",
967 - "entityType": "columns",
968 - "schema": "public",
969 - "table": "relay_mobile_devices"
970 - },
971 - {
972 - "type": "text",
973 - "typeSchema": null,
974 - "notNull": true,
975 - "dimensions": 0,
976 - "default": "'iOS device'",
977 - "generated": null,
978 - "identity": null,
979 - "name": "label",
980 - "entityType": "columns",
981 - "schema": "public",
982 - "table": "relay_mobile_devices"
983 - },
984 - {
985 - "type": "varchar(16)",
986 - "typeSchema": null,
987 - "notNull": true,
988 - "dimensions": 0,
989 - "default": null,
990 - "generated": null,
991 - "identity": null,
992 - "name": "platform",
993 - "entityType": "columns",
994 - "schema": "public",
995 - "table": "relay_mobile_devices"
996 - },
997 - {
998 - "type": "integer",
999 - "typeSchema": null,
1000 - "notNull": true,
1001 - "dimensions": 0,
1002 - "default": null,
1003 - "generated": null,
1004 - "identity": null,
1005 - "name": "ios_major_version",
1006 - "entityType": "columns",
1007 - "schema": "public",
1008 - "table": "relay_mobile_devices"
1009 - },
1010 - {
1011 - "type": "varchar(64)",
1012 - "typeSchema": null,
1013 - "notNull": false,
1014 - "dimensions": 0,
1015 - "default": null,
1016 - "generated": null,
1017 - "identity": null,
1018 - "name": "app_version",
1019 - "entityType": "columns",
1020 - "schema": "public",
1021 - "table": "relay_mobile_devices"
1022 - },
1023 - {
1024 - "type": "varchar(255)",
1025 - "typeSchema": null,
1026 - "notNull": false,
1027 - "dimensions": 0,
1028 - "default": null,
1029 - "generated": null,
1030 - "identity": null,
1031 - "name": "bundle_id",
1032 - "entityType": "columns",
1033 - "schema": "public",
1034 - "table": "relay_mobile_devices"
1035 - },
1036 - {
1037 - "type": "varchar(16)",
1038 - "typeSchema": null,
1039 - "notNull": false,
1040 - "dimensions": 0,
1041 - "default": null,
1042 - "generated": null,
1043 - "identity": null,
1044 - "name": "aps_environment",
1045 - "entityType": "columns",
1046 - "schema": "public",
1047 - "table": "relay_mobile_devices"
1048 - },
1049 - {
1050 - "type": "text",
1051 - "typeSchema": null,
1052 - "notNull": false,
1053 - "dimensions": 0,
1054 - "default": null,
1055 - "generated": null,
1056 - "identity": null,
1057 - "name": "push_token",
1058 - "entityType": "columns",
1059 - "schema": "public",
1060 - "table": "relay_mobile_devices"
1061 - },
1062 - {
1063 - "type": "text",
1064 - "typeSchema": null,
1065 - "notNull": false,
1066 - "dimensions": 0,
1067 - "default": null,
1068 - "generated": null,
1069 - "identity": null,
1070 - "name": "push_to_start_token",
1071 - "entityType": "columns",
1072 - "schema": "public",
1073 - "table": "relay_mobile_devices"
1074 - },
1075 - {
1076 - "type": "jsonb",
1077 - "typeSchema": null,
1078 - "notNull": true,
1079 - "dimensions": 0,
1080 - "default": null,
1081 - "generated": null,
1082 - "identity": null,
1083 - "name": "preferences_json",
1084 - "entityType": "columns",
1085 - "schema": "public",
1086 - "table": "relay_mobile_devices"
1087 - },
1088 - {
1089 - "type": "varchar(64)",
1090 - "typeSchema": null,
1091 - "notNull": true,
1092 - "dimensions": 0,
1093 - "default": null,
1094 - "generated": null,
1095 - "identity": null,
1096 - "name": "created_at",
1097 - "entityType": "columns",
1098 - "schema": "public",
1099 - "table": "relay_mobile_devices"
1100 - },
1101 - {
1102 - "type": "varchar(64)",
1103 - "typeSchema": null,
1104 - "notNull": true,
1105 - "dimensions": 0,
1106 - "default": null,
1107 - "generated": null,
1108 - "identity": null,
1109 - "name": "updated_at",
1110 - "entityType": "columns",
1111 - "schema": "public",
1112 - "table": "relay_mobile_devices"
1113 - },
1114 - {
1115 - "nameExplicit": true,
1116 - "columns": [
1117 - {
1118 - "value": "updated_at",
1119 - "isExpression": false,
1120 - "asc": true,
1121 - "nullsFirst": false,
1122 - "opclass": null
1123 - }
7 + "footprints": [
8 + {
9 + "statementType": "create_table",
10 + "statementTarget": ["table", "public", "relay_managed_tunnel_limits"],
11 + "writes": [
12 + "s|tbl|public.relay_managed_tunnel_limits",
13 + "n|tbl|public.relay_managed_tunnel_limits",
14 + "e|tbl|public.relay_managed_tunnel_limits",
15 + "n|rel|public.relay_managed_tunnel_limits",
16 + "n|type|public.relay_managed_tunnel_limits",
17 + "n|rel|public.relay_managed_tunnel_limits_pkey"
18 ],
1125 - "isUnique": false,
1126 - "where": null,
1127 - "with": "",
1128 - "method": "btree",
1129 - "concurrently": false,
1130 - "name": "idx_relay_agent_activity_rows_updated",
1131 - "entityType": "indexes",
1132 - "schema": "public",
1133 - "table": "relay_agent_activity_rows"
1134 - },
1135 - {
1136 - "nameExplicit": true,
1137 - "columns": [
1138 - {
1139 - "value": "environment_id",
1140 - "isExpression": false,
1141 - "asc": true,
1142 - "nullsFirst": false,
1143 - "opclass": null
1144 - },
1145 - {
1146 - "value": "thread_id",
1147 - "isExpression": false,
1148 - "asc": true,
1149 - "nullsFirst": false,
1150 - "opclass": null
1151 - },
1152 - {
1153 - "value": "created_at",
1154 - "isExpression": false,
1155 - "asc": true,
1156 - "nullsFirst": false,
1157 - "opclass": null
1158 - }
1159 - ],
1160 - "isUnique": false,
1161 - "where": null,
1162 - "with": "",
1163 - "method": "btree",
1164 - "concurrently": false,
1165 - "name": "idx_relay_delivery_attempts_environment",
1166 - "entityType": "indexes",
1167 - "schema": "public",
1168 - "table": "relay_delivery_attempts"
1169 - },
1170 - {
1171 - "nameExplicit": true,
1172 - "columns": [
1173 - {
1174 - "value": "source_job_id",
1175 - "isExpression": false,
1176 - "asc": true,
1177 - "nullsFirst": false,
1178 - "opclass": null
1179 - }
1180 - ],
1181 - "isUnique": true,
1182 - "where": null,
1183 - "with": "",
1184 - "method": "btree",
1185 - "concurrently": false,
1186 - "name": "idx_relay_delivery_attempts_source_job",
1187 - "entityType": "indexes",
1188 - "schema": "public",
1189 - "table": "relay_delivery_attempts"
1190 - },
1191 - {
1192 - "nameExplicit": true,
1193 - "columns": [
1194 - {
1195 - "value": "expires_at",
1196 - "isExpression": false,
1197 - "asc": true,
1198 - "nullsFirst": false,
1199 - "opclass": null
1200 - }
1201 - ],
1202 - "isUnique": false,
1203 - "where": null,
1204 - "with": "",
1205 - "method": "btree",
1206 - "concurrently": false,
1207 - "name": "idx_relay_dpop_proofs_expires_at",
1208 - "entityType": "indexes",
1209 - "schema": "public",
1210 - "table": "relay_dpop_proofs"
1211 - },
1212 - {
1213 - "nameExplicit": true,
1214 - "columns": [
1215 - {
1216 - "value": "credential_hash",
1217 - "isExpression": false,
1218 - "asc": true,
1219 - "nullsFirst": false,
1220 - "opclass": null
1221 - }
1222 - ],
1223 - "isUnique": true,
1224 - "where": null,
1225 - "with": "",
1226 - "method": "btree",
1227 - "concurrently": false,
1228 - "name": "idx_relay_environment_credentials_hash",
1229 - "entityType": "indexes",
1230 - "schema": "public",
1231 - "table": "relay_environment_credentials"
1232 - },
1233 - {
1234 - "nameExplicit": true,
1235 - "columns": [
1236 - {
1237 - "value": "environment_id",
1238 - "isExpression": false,
1239 - "asc": true,
1240 - "nullsFirst": false,
1241 - "opclass": null
1242 - },
1243 - {
1244 - "value": "revoked_at",
1245 - "isExpression": false,
1246 - "asc": true,
1247 - "nullsFirst": false,
1248 - "opclass": null
1249 - }
1250 - ],
1251 - "isUnique": false,
1252 - "where": null,
1253 - "with": "",
1254 - "method": "btree",
1255 - "concurrently": false,
1256 - "name": "idx_relay_environment_credentials_environment",
1257 - "entityType": "indexes",
1258 - "schema": "public",
1259 - "table": "relay_environment_credentials"
1260 - },
1261 - {
1262 - "nameExplicit": true,
1263 - "columns": [
1264 - {
1265 - "value": "environment_id",
1266 - "isExpression": false,
1267 - "asc": true,
1268 - "nullsFirst": false,
1269 - "opclass": null
1270 - },
1271 - {
1272 - "value": "environment_public_key",
1273 - "isExpression": false,
1274 - "asc": true,
1275 - "nullsFirst": false,
1276 - "opclass": null
1277 - },
1278 - {
1279 - "value": "revoked_at",
1280 - "isExpression": false,
1281 - "asc": true,
1282 - "nullsFirst": false,
1283 - "opclass": null
1284 - }
1285 - ],
1286 - "isUnique": false,
1287 - "where": null,
1288 - "with": "",
1289 - "method": "btree",
1290 - "concurrently": false,
1291 - "name": "idx_relay_environment_credentials_environment_key",
1292 - "entityType": "indexes",
1293 - "schema": "public",
1294 - "table": "relay_environment_credentials"
1295 - },
1296 - {
1297 - "nameExplicit": true,
1298 - "columns": [
1299 - {
1300 - "value": "environment_id",
1301 - "isExpression": false,
1302 - "asc": true,
1303 - "nullsFirst": false,
1304 - "opclass": null
1305 - },
1306 - {
1307 - "value": "revoked_at",
1308 - "isExpression": false,
1309 - "asc": true,
1310 - "nullsFirst": false,
1311 - "opclass": null
1312 - }
1313 - ],
1314 - "isUnique": false,
1315 - "where": null,
1316 - "with": "",
1317 - "method": "btree",
1318 - "concurrently": false,
1319 - "name": "idx_relay_environment_links_environment",
1320 - "entityType": "indexes",
1321 - "schema": "public",
1322 - "table": "relay_environment_links"
1323 - },
1324 - {
1325 - "nameExplicit": true,
1326 - "columns": [
1327 - {
1328 - "value": "user_id",
1329 - "isExpression": false,
1330 - "asc": true,
1331 - "nullsFirst": false,
1332 - "opclass": null
1333 - }
1334 - ],
1335 - "isUnique": false,
1336 - "where": null,
1337 - "with": "",
1338 - "method": "btree",
1339 - "concurrently": false,
1340 - "name": "idx_relay_live_activities_user",
1341 - "entityType": "indexes",
1342 - "schema": "public",
1343 - "table": "relay_live_activities"
1344 - },
1345 - {
1346 - "nameExplicit": true,
1347 - "columns": [
1348 - {
1349 - "value": "activity_push_token",
1350 - "isExpression": false,
1351 - "asc": true,
1352 - "nullsFirst": false,
1353 - "opclass": null
1354 - }
1355 - ],
1356 - "isUnique": true,
1357 - "where": null,
1358 - "with": "",
1359 - "method": "btree",
1360 - "concurrently": false,
1361 - "name": "idx_relay_live_activities_activity_push_token",
1362 - "entityType": "indexes",
1363 - "schema": "public",
1364 - "table": "relay_live_activities"
1365 - },
1366 - {
1367 - "nameExplicit": true,
1368 - "columns": [
1369 - {
1370 - "value": "hostname",
1371 - "isExpression": false,
1372 - "asc": true,
1373 - "nullsFirst": false,
1374 - "opclass": null
1375 - }
1376 - ],
1377 - "isUnique": true,
1378 - "where": null,
1379 - "with": "",
1380 - "method": "btree",
1381 - "concurrently": false,
1382 - "name": "idx_relay_managed_endpoint_allocations_hostname",
1383 - "entityType": "indexes",
1384 - "schema": "public",
1385 - "table": "relay_managed_endpoint_allocations"
1386 - },
1387 - {
1388 - "nameExplicit": true,
1389 - "columns": [
1390 - {
1391 - "value": "tunnel_name",
1392 - "isExpression": false,
1393 - "asc": true,
1394 - "nullsFirst": false,
1395 - "opclass": null
1396 - }
1397 - ],
1398 - "isUnique": true,
1399 - "where": null,
1400 - "with": "",
1401 - "method": "btree",
1402 - "concurrently": false,
1403 - "name": "idx_relay_managed_endpoint_allocations_tunnel_name",
1404 - "entityType": "indexes",
1405 - "schema": "public",
1406 - "table": "relay_managed_endpoint_allocations"
1407 - },
1408 - {
1409 - "nameExplicit": true,
1410 - "columns": [
1411 - {
1412 - "value": "user_id",
1413 - "isExpression": false,
1414 - "asc": true,
1415 - "nullsFirst": false,
1416 - "opclass": null
1417 - }
1418 - ],
1419 - "isUnique": false,
1420 - "where": null,
1421 - "with": "",
1422 - "method": "btree",
1423 - "concurrently": false,
1424 - "name": "idx_relay_mobile_devices_user",
1425 - "entityType": "indexes",
1426 - "schema": "public",
1427 - "table": "relay_mobile_devices"
1428 - },
1429 - {
1430 - "nameExplicit": true,
1431 - "columns": [
1432 - {
1433 - "value": "push_token",
1434 - "isExpression": false,
1435 - "asc": true,
1436 - "nullsFirst": false,
1437 - "opclass": null
1438 - }
1439 - ],
1440 - "isUnique": true,
1441 - "where": null,
1442 - "with": "",
1443 - "method": "btree",
1444 - "concurrently": false,
1445 - "name": "idx_relay_mobile_devices_push_token",
1446 - "entityType": "indexes",
1447 - "schema": "public",
1448 - "table": "relay_mobile_devices"
1449 - },
1450 - {
1451 - "nameExplicit": true,
1452 - "columns": [
1453 - {
1454 - "value": "push_to_start_token",
1455 - "isExpression": false,
1456 - "asc": true,
1457 - "nullsFirst": false,
1458 - "opclass": null
1459 - }
1460 - ],
1461 - "isUnique": true,
1462 - "where": null,
1463 - "with": "",
1464 - "method": "btree",
1465 - "concurrently": false,
1466 - "name": "idx_relay_mobile_devices_push_to_start_token",
1467 - "entityType": "indexes",
1468 - "schema": "public",
1469 - "table": "relay_mobile_devices"
1470 - },
1471 - {
1472 - "columns": ["environment_id", "environment_public_key", "thread_id"],
1473 - "nameExplicit": false,
1474 - "name": "relay_agent_activity_rows_pkey",
1475 - "entityType": "pks",
1476 - "schema": "public",
1477 - "table": "relay_agent_activity_rows"
1478 - },
1479 - {
1480 - "columns": ["thumbprint", "jti"],
1481 - "nameExplicit": false,
1482 - "name": "relay_dpop_proofs_pkey",
1483 - "entityType": "pks",
1484 - "schema": "public",
1485 - "table": "relay_dpop_proofs"
1486 - },
1487 - {
1488 - "columns": ["user_id", "environment_id"],
1489 - "nameExplicit": false,
1490 - "name": "relay_environment_links_pkey",
1491 - "entityType": "pks",
1492 - "schema": "public",
1493 - "table": "relay_environment_links"
1494 - },
1495 - {
1496 - "columns": ["user_id", "device_id"],
1497 - "nameExplicit": false,
1498 - "name": "relay_live_activities_pkey",
1499 - "entityType": "pks",
1500 - "schema": "public",
1501 - "table": "relay_live_activities"
1502 - },
1503 - {
1504 - "columns": ["user_id", "environment_id"],
1505 - "nameExplicit": false,
1506 - "name": "relay_managed_endpoint_allocations_pkey",
1507 - "entityType": "pks",
1508 - "schema": "public",
1509 - "table": "relay_managed_endpoint_allocations"
1510 - },
1511 - {
1512 - "columns": ["user_id", "device_id"],
1513 - "nameExplicit": false,
1514 - "name": "relay_mobile_devices_pkey",
1515 - "entityType": "pks",
1516 - "schema": "public",
1517 - "table": "relay_mobile_devices"
1518 - },
1519 - {
1520 - "columns": ["id"],
1521 - "nameExplicit": false,
1522 - "name": "relay_delivery_attempts_pkey",
1523 - "schema": "public",
1524 - "table": "relay_delivery_attempts",
1525 - "entityType": "pks"
1526 - },
1527 - {
1528 - "columns": ["credential_id"],
1529 - "nameExplicit": false,
1530 - "name": "relay_environment_credentials_pkey",
1531 - "schema": "public",
1532 - "table": "relay_environment_credentials",
1533 - "entityType": "pks"
1534 - },
1535 - {
1536 - "columns": ["user_id"],
1537 - "nameExplicit": false,
1538 - "name": "relay_managed_tunnel_limits_pkey",
1539 - "schema": "public",
1540 - "table": "relay_managed_tunnel_limits",
1541 - "entityType": "pks"
19 + "reads": ["n|sch|public"]
20 }
21 ],
1544 - "renames": []
22 + "deltas": [
23 + {
24 + "op": "create",
25 + "row": {
26 + "schema": "public",
27 + "name": "relay_managed_tunnel_limits",
28 + "isRlsEnabled": false,
29 + "entityType": "tables"
30 + }
31 + },
32 + {
33 + "op": "create",
34 + "row": {
35 + "schema": "public",
36 + "table": "relay_managed_tunnel_limits",
37 + "name": "user_id",
38 + "type": "varchar(191)",
39 + "typeSchema": null,
40 + "notNull": true,
41 + "dimensions": 0,
42 + "default": null,
43 + "generated": null,
44 + "identity": null,
45 + "entityType": "columns"
46 + }
47 + },
48 + {
49 + "op": "create",
50 + "row": {
51 + "schema": "public",
52 + "table": "relay_managed_tunnel_limits",
53 + "name": "max_tunnels",
54 + "type": "integer",
55 + "typeSchema": null,
56 + "notNull": true,
57 + "dimensions": 0,
58 + "default": null,
59 + "generated": null,
60 + "identity": null,
61 + "entityType": "columns"
62 + }
63 + },
64 + {
65 + "op": "create",
66 + "row": {
67 + "schema": "public",
68 + "table": "relay_managed_tunnel_limits",
69 + "name": "created_at",
70 + "type": "varchar(64)",
71 + "typeSchema": null,
72 + "notNull": true,
73 + "dimensions": 0,
74 + "default": null,
75 + "generated": null,
76 + "identity": null,
77 + "entityType": "columns"
78 + }
79 + },
80 + {
81 + "op": "create",
82 + "row": {
83 + "schema": "public",
84 + "table": "relay_managed_tunnel_limits",
85 + "name": "updated_at",
86 + "type": "varchar(64)",
87 + "typeSchema": null,
88 + "notNull": true,
89 + "dimensions": 0,
90 + "default": null,
91 + "generated": null,
92 + "identity": null,
93 + "entityType": "columns"
94 + }
95 + },
96 + {
97 + "op": "create",
98 + "row": {
99 + "schema": "public",
100 + "table": "relay_managed_tunnel_limits",
101 + "name": "relay_managed_tunnel_limits_pkey",
102 + "columns": ["user_id"],
103 + "nameExplicit": false,
104 + "entityType": "pks"
105 + }
106 + }
107 + ]
108 }
infra/relay/migrations/postgres/20260727144838_migration/snapshot.json
+52 -1494
@@ -1,1503 +1,61 @@
1 {
2 + "type": "diff",
3 + "version": "9",
4 "dialect": "postgres",
5 "id": "2374caff-40bf-423c-9255-55e76dddbc2a",
6 "prevIds": ["33575636-77b2-4756-8658-687165e6c9ff"],
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_managed_endpoint_allocations",
46 - "entityType": "tables",
47 - "schema": "public"
48 - },
49 - {
50 - "isRlsEnabled": false,
51 - "name": "relay_managed_tunnel_limits",
52 - "entityType": "tables",
53 - "schema": "public"
54 - },
55 - {
56 - "isRlsEnabled": false,
57 - "name": "relay_mobile_devices",
58 - "entityType": "tables",
59 - "schema": "public"
60 - },
61 - {
62 - "type": "varchar(191)",
63 - "typeSchema": null,
64 - "notNull": true,
65 - "dimensions": 0,
66 - "default": null,
67 - "generated": null,
68 - "identity": null,
69 - "name": "environment_id",
70 - "entityType": "columns",
71 - "schema": "public",
72 - "table": "relay_agent_activity_rows"
73 - },
74 - {
75 - "type": "text",
76 - "typeSchema": null,
77 - "notNull": true,
78 - "dimensions": 0,
79 - "default": null,
80 - "generated": null,
81 - "identity": null,
82 - "name": "environment_public_key",
83 - "entityType": "columns",
84 - "schema": "public",
85 - "table": "relay_agent_activity_rows"
86 - },
87 - {
88 - "type": "varchar(191)",
89 - "typeSchema": null,
90 - "notNull": true,
91 - "dimensions": 0,
92 - "default": null,
93 - "generated": null,
94 - "identity": null,
95 - "name": "thread_id",
96 - "entityType": "columns",
97 - "schema": "public",
98 - "table": "relay_agent_activity_rows"
99 - },
100 - {
101 - "type": "jsonb",
102 - "typeSchema": null,
103 - "notNull": true,
104 - "dimensions": 0,
105 - "default": null,
106 - "generated": null,
107 - "identity": null,
108 - "name": "state_json",
109 - "entityType": "columns",
110 - "schema": "public",
111 - "table": "relay_agent_activity_rows"
112 - },
113 - {
114 - "type": "varchar(64)",
115 - "typeSchema": null,
116 - "notNull": true,
117 - "dimensions": 0,
118 - "default": null,
119 - "generated": null,
120 - "identity": null,
121 - "name": "updated_at",
122 - "entityType": "columns",
123 - "schema": "public",
124 - "table": "relay_agent_activity_rows"
125 - },
126 - {
127 - "type": "varchar(64)",
128 - "typeSchema": null,
129 - "notNull": true,
130 - "dimensions": 0,
131 - "default": null,
132 - "generated": null,
133 - "identity": null,
134 - "name": "created_at",
135 - "entityType": "columns",
136 - "schema": "public",
137 - "table": "relay_agent_activity_rows"
138 - },
139 - {
140 - "type": "varchar(36)",
141 - "typeSchema": null,
142 - "notNull": true,
143 - "dimensions": 0,
144 - "default": null,
145 - "generated": null,
146 - "identity": null,
147 - "name": "id",
148 - "entityType": "columns",
149 - "schema": "public",
150 - "table": "relay_delivery_attempts"
151 - },
152 - {
153 - "type": "varchar(64)",
154 - "typeSchema": null,
155 - "notNull": true,
156 - "dimensions": 0,
157 - "default": null,
158 - "generated": null,
159 - "identity": null,
160 - "name": "created_at",
161 - "entityType": "columns",
162 - "schema": "public",
163 - "table": "relay_delivery_attempts"
164 - },
165 - {
166 - "type": "varchar(255)",
167 - "typeSchema": null,
168 - "notNull": false,
169 - "dimensions": 0,
170 - "default": null,
171 - "generated": null,
172 - "identity": null,
173 - "name": "user_id",
174 - "entityType": "columns",
175 - "schema": "public",
176 - "table": "relay_delivery_attempts"
177 - },
178 - {
179 - "type": "varchar(191)",
180 - "typeSchema": null,
181 - "notNull": false,
182 - "dimensions": 0,
183 - "default": null,
184 - "generated": null,
185 - "identity": null,
186 - "name": "environment_id",
187 - "entityType": "columns",
188 - "schema": "public",
189 - "table": "relay_delivery_attempts"
190 - },
191 - {
192 - "type": "varchar(191)",
193 - "typeSchema": null,
194 - "notNull": false,
195 - "dimensions": 0,
196 - "default": null,
197 - "generated": null,
198 - "identity": null,
199 - "name": "thread_id",
200 - "entityType": "columns",
201 - "schema": "public",
202 - "table": "relay_delivery_attempts"
203 - },
204 - {
205 - "type": "varchar(255)",
206 - "typeSchema": null,
207 - "notNull": false,
208 - "dimensions": 0,
209 - "default": null,
210 - "generated": null,
211 - "identity": null,
212 - "name": "device_id",
213 - "entityType": "columns",
214 - "schema": "public",
215 - "table": "relay_delivery_attempts"
216 - },
217 - {
218 - "type": "varchar(64)",
219 - "typeSchema": null,
220 - "notNull": true,
221 - "dimensions": 0,
222 - "default": null,
223 - "generated": null,
224 - "identity": null,
225 - "name": "kind",
226 - "entityType": "columns",
227 - "schema": "public",
228 - "table": "relay_delivery_attempts"
229 - },
230 - {
231 - "type": "varchar(64)",
232 - "typeSchema": null,
233 - "notNull": false,
234 - "dimensions": 0,
235 - "default": null,
236 - "generated": null,
237 - "identity": null,
238 - "name": "source_job_id",
239 - "entityType": "columns",
240 - "schema": "public",
241 - "table": "relay_delivery_attempts"
242 - },
243 - {
244 - "type": "varchar(16)",
245 - "typeSchema": null,
246 - "notNull": false,
247 - "dimensions": 0,
248 - "default": null,
249 - "generated": null,
250 - "identity": null,
251 - "name": "token_suffix",
252 - "entityType": "columns",
253 - "schema": "public",
254 - "table": "relay_delivery_attempts"
255 - },
256 - {
257 - "type": "integer",
258 - "typeSchema": null,
259 - "notNull": false,
260 - "dimensions": 0,
261 - "default": null,
262 - "generated": null,
263 - "identity": null,
264 - "name": "apns_status",
265 - "entityType": "columns",
266 - "schema": "public",
267 - "table": "relay_delivery_attempts"
268 - },
269 - {
270 - "type": "text",
271 - "typeSchema": null,
272 - "notNull": false,
273 - "dimensions": 0,
274 - "default": null,
275 - "generated": null,
276 - "identity": null,
277 - "name": "apns_reason",
278 - "entityType": "columns",
279 - "schema": "public",
280 - "table": "relay_delivery_attempts"
281 - },
282 - {
283 - "type": "varchar(128)",
284 - "typeSchema": null,
285 - "notNull": false,
286 - "dimensions": 0,
287 - "default": null,
288 - "generated": null,
289 - "identity": null,
290 - "name": "apns_id",
291 - "entityType": "columns",
292 - "schema": "public",
293 - "table": "relay_delivery_attempts"
294 - },
295 - {
296 - "type": "text",
297 - "typeSchema": null,
298 - "notNull": false,
299 - "dimensions": 0,
300 - "default": null,
301 - "generated": null,
302 - "identity": null,
303 - "name": "transport_error",
304 - "entityType": "columns",
305 - "schema": "public",
306 - "table": "relay_delivery_attempts"
307 - },
308 - {
309 - "type": "varchar(128)",
310 - "typeSchema": null,
311 - "notNull": true,
312 - "dimensions": 0,
313 - "default": null,
314 - "generated": null,
315 - "identity": null,
316 - "name": "thumbprint",
317 - "entityType": "columns",
318 - "schema": "public",
319 - "table": "relay_dpop_proofs"
320 - },
321 - {
322 - "type": "varchar(255)",
323 - "typeSchema": null,
324 - "notNull": true,
325 - "dimensions": 0,
326 - "default": null,
327 - "generated": null,
328 - "identity": null,
329 - "name": "jti",
330 - "entityType": "columns",
331 - "schema": "public",
332 - "table": "relay_dpop_proofs"
333 - },
334 - {
335 - "type": "integer",
336 - "typeSchema": null,
337 - "notNull": true,
338 - "dimensions": 0,
339 - "default": null,
340 - "generated": null,
341 - "identity": null,
342 - "name": "iat",
343 - "entityType": "columns",
344 - "schema": "public",
345 - "table": "relay_dpop_proofs"
346 - },
347 - {
348 - "type": "varchar(64)",
349 - "typeSchema": null,
350 - "notNull": true,
351 - "dimensions": 0,
352 - "default": null,
353 - "generated": null,
354 - "identity": null,
355 - "name": "expires_at",
356 - "entityType": "columns",
357 - "schema": "public",
358 - "table": "relay_dpop_proofs"
359 - },
360 - {
361 - "type": "varchar(64)",
362 - "typeSchema": null,
363 - "notNull": true,
364 - "dimensions": 0,
365 - "default": null,
366 - "generated": null,
367 - "identity": null,
368 - "name": "created_at",
369 - "entityType": "columns",
370 - "schema": "public",
371 - "table": "relay_dpop_proofs"
372 - },
373 - {
374 - "type": "varchar(64)",
375 - "typeSchema": null,
376 - "notNull": true,
377 - "dimensions": 0,
378 - "default": null,
379 - "generated": null,
380 - "identity": null,
381 - "name": "credential_id",
382 - "entityType": "columns",
383 - "schema": "public",
384 - "table": "relay_environment_credentials"
385 - },
386 - {
387 - "type": "varchar(191)",
388 - "typeSchema": null,
389 - "notNull": true,
390 - "dimensions": 0,
391 - "default": null,
392 - "generated": null,
393 - "identity": null,
394 - "name": "environment_id",
395 - "entityType": "columns",
396 - "schema": "public",
397 - "table": "relay_environment_credentials"
398 - },
399 - {
400 - "type": "text",
401 - "typeSchema": null,
402 - "notNull": true,
403 - "dimensions": 0,
404 - "default": null,
405 - "generated": null,
406 - "identity": null,
407 - "name": "environment_public_key",
408 - "entityType": "columns",
409 - "schema": "public",
410 - "table": "relay_environment_credentials"
411 - },
412 - {
413 - "type": "varchar(191)",
414 - "typeSchema": null,
415 - "notNull": true,
416 - "dimensions": 0,
417 - "default": null,
418 - "generated": null,
419 - "identity": null,
420 - "name": "credential_hash",
421 - "entityType": "columns",
422 - "schema": "public",
423 - "table": "relay_environment_credentials"
424 - },
425 - {
426 - "type": "varchar(64)",
427 - "typeSchema": null,
428 - "notNull": false,
429 - "dimensions": 0,
430 - "default": null,
431 - "generated": null,
432 - "identity": null,
433 - "name": "revoked_at",
434 - "entityType": "columns",
435 - "schema": "public",
436 - "table": "relay_environment_credentials"
437 - },
438 - {
439 - "type": "varchar(64)",
440 - "typeSchema": null,
441 - "notNull": true,
442 - "dimensions": 0,
443 - "default": null,
444 - "generated": null,
445 - "identity": null,
446 - "name": "created_at",
447 - "entityType": "columns",
448 - "schema": "public",
449 - "table": "relay_environment_credentials"
450 - },
451 - {
452 - "type": "varchar(64)",
453 - "typeSchema": null,
454 - "notNull": true,
455 - "dimensions": 0,
456 - "default": null,
457 - "generated": null,
458 - "identity": null,
459 - "name": "updated_at",
460 - "entityType": "columns",
461 - "schema": "public",
462 - "table": "relay_environment_credentials"
463 - },
464 - {
465 - "type": "varchar(191)",
466 - "typeSchema": null,
467 - "notNull": true,
468 - "dimensions": 0,
469 - "default": null,
470 - "generated": null,
471 - "identity": null,
472 - "name": "user_id",
473 - "entityType": "columns",
474 - "schema": "public",
475 - "table": "relay_environment_links"
476 - },
477 - {
478 - "type": "varchar(191)",
479 - "typeSchema": null,
480 - "notNull": true,
481 - "dimensions": 0,
482 - "default": null,
483 - "generated": null,
484 - "identity": null,
485 - "name": "environment_id",
486 - "entityType": "columns",
487 - "schema": "public",
488 - "table": "relay_environment_links"
489 - },
490 - {
491 - "type": "text",
492 - "typeSchema": null,
493 - "notNull": true,
494 - "dimensions": 0,
495 - "default": "'T3 Environment'",
496 - "generated": null,
497 - "identity": null,
498 - "name": "environment_label",
499 - "entityType": "columns",
500 - "schema": "public",
501 - "table": "relay_environment_links"
502 - },
503 - {
504 - "type": "text",
505 - "typeSchema": null,
506 - "notNull": true,
507 - "dimensions": 0,
508 - "default": null,
509 - "generated": null,
510 - "identity": null,
511 - "name": "environment_public_key",
512 - "entityType": "columns",
513 - "schema": "public",
514 - "table": "relay_environment_links"
515 - },
516 - {
517 - "type": "text",
518 - "typeSchema": null,
519 - "notNull": true,
520 - "dimensions": 0,
521 - "default": null,
522 - "generated": null,
523 - "identity": null,
524 - "name": "endpoint_http_base_url",
525 - "entityType": "columns",
526 - "schema": "public",
527 - "table": "relay_environment_links"
528 - },
529 - {
530 - "type": "text",
531 - "typeSchema": null,
532 - "notNull": true,
533 - "dimensions": 0,
534 - "default": null,
535 - "generated": null,
536 - "identity": null,
537 - "name": "endpoint_ws_base_url",
538 - "entityType": "columns",
539 - "schema": "public",
540 - "table": "relay_environment_links"
541 - },
542 - {
543 - "type": "varchar(32)",
544 - "typeSchema": null,
545 - "notNull": true,
546 - "dimensions": 0,
547 - "default": null,
548 - "generated": null,
549 - "identity": null,
550 - "name": "endpoint_provider_kind",
551 - "entityType": "columns",
552 - "schema": "public",
553 - "table": "relay_environment_links"
554 - },
555 - {
556 - "type": "boolean",
557 - "typeSchema": null,
558 - "notNull": true,
559 - "dimensions": 0,
560 - "default": "true",
561 - "generated": null,
562 - "identity": null,
563 - "name": "notifications_enabled",
564 - "entityType": "columns",
565 - "schema": "public",
566 - "table": "relay_environment_links"
567 - },
568 - {
569 - "type": "boolean",
570 - "typeSchema": null,
571 - "notNull": true,
572 - "dimensions": 0,
573 - "default": "true",
574 - "generated": null,
575 - "identity": null,
576 - "name": "live_activities_enabled",
577 - "entityType": "columns",
578 - "schema": "public",
579 - "table": "relay_environment_links"
580 - },
581 - {
582 - "type": "boolean",
583 - "typeSchema": null,
584 - "notNull": true,
585 - "dimensions": 0,
586 - "default": "false",
587 - "generated": null,
588 - "identity": null,
589 - "name": "managed_tunnels_enabled",
590 - "entityType": "columns",
591 - "schema": "public",
592 - "table": "relay_environment_links"
593 - },
594 - {
595 - "type": "varchar(191)",
596 - "typeSchema": null,
597 - "notNull": false,
598 - "dimensions": 0,
599 - "default": null,
600 - "generated": null,
601 - "identity": null,
602 - "name": "created_by_device_id",
603 - "entityType": "columns",
604 - "schema": "public",
605 - "table": "relay_environment_links"
606 - },
607 - {
608 - "type": "varchar(64)",
609 - "typeSchema": null,
610 - "notNull": false,
611 - "dimensions": 0,
612 - "default": null,
613 - "generated": null,
614 - "identity": null,
615 - "name": "revoked_at",
616 - "entityType": "columns",
617 - "schema": "public",
618 - "table": "relay_environment_links"
619 - },
620 - {
621 - "type": "varchar(64)",
622 - "typeSchema": null,
623 - "notNull": true,
624 - "dimensions": 0,
625 - "default": null,
626 - "generated": null,
627 - "identity": null,
628 - "name": "created_at",
629 - "entityType": "columns",
630 - "schema": "public",
631 - "table": "relay_environment_links"
632 - },
633 - {
634 - "type": "varchar(64)",
635 - "typeSchema": null,
636 - "notNull": true,
637 - "dimensions": 0,
638 - "default": null,
639 - "generated": null,
640 - "identity": null,
641 - "name": "updated_at",
642 - "entityType": "columns",
643 - "schema": "public",
644 - "table": "relay_environment_links"
645 - },
646 - {
647 - "type": "varchar(255)",
648 - "typeSchema": null,
649 - "notNull": true,
650 - "dimensions": 0,
651 - "default": null,
652 - "generated": null,
653 - "identity": null,
654 - "name": "user_id",
655 - "entityType": "columns",
656 - "schema": "public",
657 - "table": "relay_live_activities"
658 - },
659 - {
660 - "type": "varchar(255)",
661 - "typeSchema": null,
662 - "notNull": true,
663 - "dimensions": 0,
664 - "default": null,
665 - "generated": null,
666 - "identity": null,
667 - "name": "device_id",
668 - "entityType": "columns",
669 - "schema": "public",
670 - "table": "relay_live_activities"
671 - },
672 - {
673 - "type": "text",
674 - "typeSchema": null,
675 - "notNull": false,
676 - "dimensions": 0,
677 - "default": null,
678 - "generated": null,
679 - "identity": null,
680 - "name": "activity_push_token",
681 - "entityType": "columns",
682 - "schema": "public",
683 - "table": "relay_live_activities"
684 - },
685 - {
686 - "type": "varchar(64)",
687 - "typeSchema": null,
688 - "notNull": false,
689 - "dimensions": 0,
690 - "default": null,
691 - "generated": null,
692 - "identity": null,
693 - "name": "remote_start_queued_at",
694 - "entityType": "columns",
695 - "schema": "public",
696 - "table": "relay_live_activities"
697 - },
698 - {
699 - "type": "varchar(64)",
700 - "typeSchema": null,
701 - "notNull": false,
702 - "dimensions": 0,
703 - "default": null,
704 - "generated": null,
705 - "identity": null,
706 - "name": "remote_started_at",
707 - "entityType": "columns",
708 - "schema": "public",
709 - "table": "relay_live_activities"
710 - },
711 - {
712 - "type": "varchar(64)",
713 - "typeSchema": null,
714 - "notNull": false,
715 - "dimensions": 0,
716 - "default": null,
717 - "generated": null,
718 - "identity": null,
719 - "name": "ended_at",
720 - "entityType": "columns",
721 - "schema": "public",
722 - "table": "relay_live_activities"
723 - },
724 - {
725 - "type": "jsonb",
726 - "typeSchema": null,
727 - "notNull": false,
728 - "dimensions": 0,
729 - "default": null,
730 - "generated": null,
731 - "identity": null,
732 - "name": "last_aggregate_json",
733 - "entityType": "columns",
734 - "schema": "public",
735 - "table": "relay_live_activities"
736 - },
737 - {
738 - "type": "varchar(64)",
739 - "typeSchema": null,
740 - "notNull": false,
741 - "dimensions": 0,
742 - "default": null,
743 - "generated": null,
744 - "identity": null,
745 - "name": "last_live_activity_delivery_at",
746 - "entityType": "columns",
747 - "schema": "public",
748 - "table": "relay_live_activities"
749 - },
750 - {
751 - "type": "varchar(64)",
752 - "typeSchema": null,
753 - "notNull": true,
754 - "dimensions": 0,
755 - "default": null,
756 - "generated": null,
757 - "identity": null,
758 - "name": "created_at",
759 - "entityType": "columns",
760 - "schema": "public",
761 - "table": "relay_live_activities"
762 - },
763 - {
764 - "type": "varchar(64)",
765 - "typeSchema": null,
766 - "notNull": true,
767 - "dimensions": 0,
768 - "default": null,
769 - "generated": null,
770 - "identity": null,
771 - "name": "updated_at",
772 - "entityType": "columns",
773 - "schema": "public",
774 - "table": "relay_live_activities"
775 - },
776 - {
777 - "type": "varchar(191)",
778 - "typeSchema": null,
779 - "notNull": true,
780 - "dimensions": 0,
781 - "default": null,
782 - "generated": null,
783 - "identity": null,
784 - "name": "user_id",
785 - "entityType": "columns",
786 - "schema": "public",
787 - "table": "relay_managed_endpoint_allocations"
788 - },
789 - {
790 - "type": "varchar(191)",
791 - "typeSchema": null,
792 - "notNull": true,
793 - "dimensions": 0,
794 - "default": null,
795 - "generated": null,
796 - "identity": null,
797 - "name": "environment_id",
798 - "entityType": "columns",
799 - "schema": "public",
800 - "table": "relay_managed_endpoint_allocations"
801 - },
802 - {
803 - "type": "text",
804 - "typeSchema": null,
805 - "notNull": true,
806 - "dimensions": 0,
807 - "default": null,
808 - "generated": null,
809 - "identity": null,
810 - "name": "hostname",
811 - "entityType": "columns",
812 - "schema": "public",
813 - "table": "relay_managed_endpoint_allocations"
814 - },
815 - {
816 - "type": "varchar(191)",
817 - "typeSchema": null,
818 - "notNull": false,
819 - "dimensions": 0,
820 - "default": null,
821 - "generated": null,
822 - "identity": null,
823 - "name": "tunnel_id",
824 - "entityType": "columns",
825 - "schema": "public",
826 - "table": "relay_managed_endpoint_allocations"
827 - },
828 - {
829 - "type": "text",
830 - "typeSchema": null,
831 - "notNull": true,
832 - "dimensions": 0,
833 - "default": null,
834 - "generated": null,
835 - "identity": null,
836 - "name": "tunnel_name",
837 - "entityType": "columns",
838 - "schema": "public",
839 - "table": "relay_managed_endpoint_allocations"
840 - },
841 - {
842 - "type": "varchar(191)",
843 - "typeSchema": null,
844 - "notNull": false,
845 - "dimensions": 0,
846 - "default": null,
847 - "generated": null,
848 - "identity": null,
849 - "name": "dns_record_id",
850 - "entityType": "columns",
851 - "schema": "public",
852 - "table": "relay_managed_endpoint_allocations"
853 - },
854 - {
855 - "type": "varchar(64)",
856 - "typeSchema": null,
857 - "notNull": false,
858 - "dimensions": 0,
859 - "default": null,
860 - "generated": null,
861 - "identity": null,
862 - "name": "ready_at",
863 - "entityType": "columns",
864 - "schema": "public",
865 - "table": "relay_managed_endpoint_allocations"
866 - },
867 - {
868 - "type": "varchar(64)",
869 - "typeSchema": null,
870 - "notNull": true,
871 - "dimensions": 0,
872 - "default": null,
873 - "generated": null,
874 - "identity": null,
875 - "name": "created_at",
876 - "entityType": "columns",
877 - "schema": "public",
878 - "table": "relay_managed_endpoint_allocations"
879 - },
880 - {
881 - "type": "varchar(64)",
882 - "typeSchema": null,
883 - "notNull": true,
884 - "dimensions": 0,
885 - "default": null,
886 - "generated": null,
887 - "identity": null,
888 - "name": "updated_at",
889 - "entityType": "columns",
890 - "schema": "public",
891 - "table": "relay_managed_endpoint_allocations"
892 - },
893 - {
894 - "type": "varchar(191)",
895 - "typeSchema": null,
896 - "notNull": true,
897 - "dimensions": 0,
898 - "default": null,
899 - "generated": null,
900 - "identity": null,
901 - "name": "user_id",
902 - "entityType": "columns",
903 - "schema": "public",
904 - "table": "relay_managed_tunnel_limits"
905 - },
906 - {
907 - "type": "integer",
908 - "typeSchema": null,
909 - "notNull": true,
910 - "dimensions": 0,
911 - "default": null,
912 - "generated": null,
913 - "identity": null,
914 - "name": "max_tunnels",
915 - "entityType": "columns",
916 - "schema": "public",
917 - "table": "relay_managed_tunnel_limits"
918 - },
919 - {
920 - "type": "varchar(64)",
921 - "typeSchema": null,
922 - "notNull": true,
923 - "dimensions": 0,
924 - "default": null,
925 - "generated": null,
926 - "identity": null,
927 - "name": "created_at",
928 - "entityType": "columns",
929 - "schema": "public",
930 - "table": "relay_managed_tunnel_limits"
931 - },
932 - {
933 - "type": "varchar(64)",
934 - "typeSchema": null,
935 - "notNull": true,
936 - "dimensions": 0,
937 - "default": null,
938 - "generated": null,
939 - "identity": null,
940 - "name": "updated_at",
941 - "entityType": "columns",
942 - "schema": "public",
943 - "table": "relay_managed_tunnel_limits"
944 - },
945 - {
946 - "type": "varchar(255)",
947 - "typeSchema": null,
948 - "notNull": true,
949 - "dimensions": 0,
950 - "default": null,
951 - "generated": null,
952 - "identity": null,
953 - "name": "user_id",
954 - "entityType": "columns",
955 - "schema": "public",
956 - "table": "relay_mobile_devices"
957 - },
958 - {
959 - "type": "varchar(255)",
960 - "typeSchema": null,
961 - "notNull": true,
962 - "dimensions": 0,
963 - "default": null,
964 - "generated": null,
965 - "identity": null,
966 - "name": "device_id",
967 - "entityType": "columns",
968 - "schema": "public",
969 - "table": "relay_mobile_devices"
970 - },
971 - {
972 - "type": "text",
973 - "typeSchema": null,
974 - "notNull": true,
975 - "dimensions": 0,
976 - "default": "'iOS device'",
977 - "generated": null,
978 - "identity": null,
979 - "name": "label",
980 - "entityType": "columns",
981 - "schema": "public",
982 - "table": "relay_mobile_devices"
983 - },
984 - {
985 - "type": "varchar(16)",
986 - "typeSchema": null,
987 - "notNull": true,
988 - "dimensions": 0,
989 - "default": null,
990 - "generated": null,
991 - "identity": null,
992 - "name": "platform",
993 - "entityType": "columns",
994 - "schema": "public",
995 - "table": "relay_mobile_devices"
996 - },
997 - {
998 - "type": "integer",
999 - "typeSchema": null,
1000 - "notNull": true,
1001 - "dimensions": 0,
1002 - "default": null,
1003 - "generated": null,
1004 - "identity": null,
1005 - "name": "ios_major_version",
1006 - "entityType": "columns",
1007 - "schema": "public",
1008 - "table": "relay_mobile_devices"
1009 - },
1010 - {
1011 - "type": "varchar(64)",
1012 - "typeSchema": null,
1013 - "notNull": false,
1014 - "dimensions": 0,
1015 - "default": null,
1016 - "generated": null,
1017 - "identity": null,
1018 - "name": "app_version",
1019 - "entityType": "columns",
1020 - "schema": "public",
1021 - "table": "relay_mobile_devices"
1022 - },
1023 - {
1024 - "type": "varchar(255)",
1025 - "typeSchema": null,
1026 - "notNull": false,
1027 - "dimensions": 0,
1028 - "default": null,
1029 - "generated": null,
1030 - "identity": null,
1031 - "name": "bundle_id",
1032 - "entityType": "columns",
1033 - "schema": "public",
1034 - "table": "relay_mobile_devices"
1035 - },
1036 - {
1037 - "type": "varchar(16)",
1038 - "typeSchema": null,
1039 - "notNull": false,
1040 - "dimensions": 0,
1041 - "default": null,
1042 - "generated": null,
1043 - "identity": null,
1044 - "name": "aps_environment",
1045 - "entityType": "columns",
1046 - "schema": "public",
1047 - "table": "relay_mobile_devices"
1048 - },
1049 - {
1050 - "type": "text",
1051 - "typeSchema": null,
1052 - "notNull": false,
1053 - "dimensions": 0,
1054 - "default": null,
1055 - "generated": null,
1056 - "identity": null,
1057 - "name": "push_token",
1058 - "entityType": "columns",
1059 - "schema": "public",
1060 - "table": "relay_mobile_devices"
1061 - },
1062 - {
1063 - "type": "text",
1064 - "typeSchema": null,
1065 - "notNull": false,
1066 - "dimensions": 0,
1067 - "default": null,
1068 - "generated": null,
1069 - "identity": null,
1070 - "name": "push_to_start_token",
1071 - "entityType": "columns",
1072 - "schema": "public",
1073 - "table": "relay_mobile_devices"
1074 - },
1075 - {
1076 - "type": "jsonb",
1077 - "typeSchema": null,
1078 - "notNull": true,
1079 - "dimensions": 0,
1080 - "default": null,
1081 - "generated": null,
1082 - "identity": null,
1083 - "name": "preferences_json",
1084 - "entityType": "columns",
1085 - "schema": "public",
1086 - "table": "relay_mobile_devices"
1087 - },
1088 - {
1089 - "type": "varchar(64)",
1090 - "typeSchema": null,
1091 - "notNull": true,
1092 - "dimensions": 0,
1093 - "default": null,
1094 - "generated": null,
1095 - "identity": null,
1096 - "name": "created_at",
1097 - "entityType": "columns",
1098 - "schema": "public",
1099 - "table": "relay_mobile_devices"
1100 - },
1101 - {
1102 - "type": "varchar(64)",
1103 - "typeSchema": null,
1104 - "notNull": true,
1105 - "dimensions": 0,
1106 - "default": null,
1107 - "generated": null,
1108 - "identity": null,
1109 - "name": "updated_at",
1110 - "entityType": "columns",
1111 - "schema": "public",
1112 - "table": "relay_mobile_devices"
1113 - },
1114 - {
1115 - "nameExplicit": true,
1116 - "columns": [
1117 - {
1118 - "value": "updated_at",
1119 - "isExpression": false,
1120 - "asc": true,
1121 - "nullsFirst": false,
1122 - "opclass": null
1123 - }
1124 - ],
1125 - "isUnique": false,
1126 - "where": null,
1127 - "with": "",
1128 - "method": "btree",
1129 - "concurrently": false,
1130 - "name": "idx_relay_agent_activity_rows_updated",
1131 - "entityType": "indexes",
1132 - "schema": "public",
1133 - "table": "relay_agent_activity_rows"
1134 - },
1135 - {
1136 - "nameExplicit": true,
1137 - "columns": [
1138 - {
1139 - "value": "environment_id",
1140 - "isExpression": false,
1141 - "asc": true,
1142 - "nullsFirst": false,
1143 - "opclass": null
1144 - },
1145 - {
1146 - "value": "thread_id",
1147 - "isExpression": false,
1148 - "asc": true,
1149 - "nullsFirst": false,
1150 - "opclass": null
1151 - },
1152 - {
1153 - "value": "created_at",
1154 - "isExpression": false,
1155 - "asc": true,
1156 - "nullsFirst": false,
1157 - "opclass": null
1158 - }
1159 - ],
1160 - "isUnique": false,
1161 - "where": null,
1162 - "with": "",
1163 - "method": "btree",
1164 - "concurrently": false,
1165 - "name": "idx_relay_delivery_attempts_environment",
1166 - "entityType": "indexes",
1167 - "schema": "public",
1168 - "table": "relay_delivery_attempts"
1169 - },
1170 - {
1171 - "nameExplicit": true,
1172 - "columns": [
1173 - {
1174 - "value": "source_job_id",
1175 - "isExpression": false,
1176 - "asc": true,
1177 - "nullsFirst": false,
1178 - "opclass": null
1179 - }
1180 - ],
1181 - "isUnique": true,
1182 - "where": null,
1183 - "with": "",
1184 - "method": "btree",
1185 - "concurrently": false,
1186 - "name": "idx_relay_delivery_attempts_source_job",
1187 - "entityType": "indexes",
1188 - "schema": "public",
1189 - "table": "relay_delivery_attempts"
1190 - },
1191 - {
1192 - "nameExplicit": true,
1193 - "columns": [
1194 - {
1195 - "value": "expires_at",
1196 - "isExpression": false,
1197 - "asc": true,
1198 - "nullsFirst": false,
1199 - "opclass": null
1200 - }
1201 - ],
1202 - "isUnique": false,
1203 - "where": null,
1204 - "with": "",
1205 - "method": "btree",
1206 - "concurrently": false,
1207 - "name": "idx_relay_dpop_proofs_expires_at",
1208 - "entityType": "indexes",
1209 - "schema": "public",
1210 - "table": "relay_dpop_proofs"
1211 - },
1212 - {
1213 - "nameExplicit": true,
1214 - "columns": [
1215 - {
1216 - "value": "credential_hash",
1217 - "isExpression": false,
1218 - "asc": true,
1219 - "nullsFirst": false,
1220 - "opclass": null
1221 - }
1222 - ],
1223 - "isUnique": true,
1224 - "where": null,
1225 - "with": "",
1226 - "method": "btree",
1227 - "concurrently": false,
1228 - "name": "idx_relay_environment_credentials_hash",
1229 - "entityType": "indexes",
1230 - "schema": "public",
1231 - "table": "relay_environment_credentials"
1232 - },
1233 - {
1234 - "nameExplicit": true,
1235 - "columns": [
1236 - {
1237 - "value": "environment_id",
1238 - "isExpression": false,
1239 - "asc": true,
1240 - "nullsFirst": false,
1241 - "opclass": null
1242 - },
1243 - {
1244 - "value": "revoked_at",
1245 - "isExpression": false,
1246 - "asc": true,
1247 - "nullsFirst": false,
1248 - "opclass": null
1249 - }
1250 - ],
1251 - "isUnique": false,
1252 - "where": null,
1253 - "with": "",
1254 - "method": "btree",
1255 - "concurrently": false,
1256 - "name": "idx_relay_environment_credentials_environment",
1257 - "entityType": "indexes",
1258 - "schema": "public",
1259 - "table": "relay_environment_credentials"
1260 - },
1261 - {
1262 - "nameExplicit": true,
1263 - "columns": [
1264 - {
1265 - "value": "environment_id",
1266 - "isExpression": false,
1267 - "asc": true,
1268 - "nullsFirst": false,
1269 - "opclass": null
1270 - },
1271 - {
1272 - "value": "environment_public_key",
1273 - "isExpression": false,
1274 - "asc": true,
1275 - "nullsFirst": false,
1276 - "opclass": null
1277 - },
1278 - {
1279 - "value": "revoked_at",
1280 - "isExpression": false,
1281 - "asc": true,
1282 - "nullsFirst": false,
1283 - "opclass": null
1284 - }
1285 - ],
1286 - "isUnique": false,
1287 - "where": null,
1288 - "with": "",
1289 - "method": "btree",
1290 - "concurrently": false,
1291 - "name": "idx_relay_environment_credentials_environment_key",
1292 - "entityType": "indexes",
1293 - "schema": "public",
1294 - "table": "relay_environment_credentials"
1295 - },
1296 - {
1297 - "nameExplicit": true,
1298 - "columns": [
1299 - {
1300 - "value": "environment_id",
1301 - "isExpression": false,
1302 - "asc": true,
1303 - "nullsFirst": false,
1304 - "opclass": null
1305 - },
1306 - {
1307 - "value": "revoked_at",
1308 - "isExpression": false,
1309 - "asc": true,
1310 - "nullsFirst": false,
1311 - "opclass": null
1312 - }
1313 - ],
1314 - "isUnique": false,
1315 - "where": null,
1316 - "with": "",
1317 - "method": "btree",
1318 - "concurrently": false,
1319 - "name": "idx_relay_environment_links_environment",
1320 - "entityType": "indexes",
1321 - "schema": "public",
1322 - "table": "relay_environment_links"
1323 - },
1324 - {
1325 - "nameExplicit": true,
1326 - "columns": [
1327 - {
1328 - "value": "activity_push_token",
1329 - "isExpression": false,
1330 - "asc": true,
1331 - "nullsFirst": false,
1332 - "opclass": null
1333 - }
1334 - ],
1335 - "isUnique": true,
1336 - "where": null,
1337 - "with": "",
1338 - "method": "btree",
1339 - "concurrently": false,
1340 - "name": "idx_relay_live_activities_activity_push_token",
1341 - "entityType": "indexes",
1342 - "schema": "public",
1343 - "table": "relay_live_activities"
1344 - },
1345 - {
1346 - "nameExplicit": true,
1347 - "columns": [
1348 - {
1349 - "value": "hostname",
1350 - "isExpression": false,
1351 - "asc": true,
1352 - "nullsFirst": false,
1353 - "opclass": null
1354 - }
1355 - ],
1356 - "isUnique": true,
1357 - "where": null,
1358 - "with": "",
1359 - "method": "btree",
1360 - "concurrently": false,
1361 - "name": "idx_relay_managed_endpoint_allocations_hostname",
1362 - "entityType": "indexes",
1363 - "schema": "public",
1364 - "table": "relay_managed_endpoint_allocations"
1365 - },
1366 - {
1367 - "nameExplicit": true,
1368 - "columns": [
1369 - {
1370 - "value": "tunnel_name",
1371 - "isExpression": false,
1372 - "asc": true,
1373 - "nullsFirst": false,
1374 - "opclass": null
1375 - }
1376 - ],
1377 - "isUnique": true,
1378 - "where": null,
1379 - "with": "",
1380 - "method": "btree",
1381 - "concurrently": false,
1382 - "name": "idx_relay_managed_endpoint_allocations_tunnel_name",
1383 - "entityType": "indexes",
1384 - "schema": "public",
1385 - "table": "relay_managed_endpoint_allocations"
1386 - },
1387 - {
1388 - "nameExplicit": true,
1389 - "columns": [
1390 - {
1391 - "value": "push_token",
1392 - "isExpression": false,
1393 - "asc": true,
1394 - "nullsFirst": false,
1395 - "opclass": null
1396 - }
1397 - ],
1398 - "isUnique": true,
1399 - "where": null,
1400 - "with": "",
1401 - "method": "btree",
1402 - "concurrently": false,
1403 - "name": "idx_relay_mobile_devices_push_token",
1404 - "entityType": "indexes",
1405 - "schema": "public",
1406 - "table": "relay_mobile_devices"
1407 - },
1408 - {
1409 - "nameExplicit": true,
1410 - "columns": [
1411 - {
1412 - "value": "push_to_start_token",
1413 - "isExpression": false,
1414 - "asc": true,
1415 - "nullsFirst": false,
1416 - "opclass": null
1417 - }
1418 - ],
1419 - "isUnique": true,
1420 - "where": null,
1421 - "with": "",
1422 - "method": "btree",
1423 - "concurrently": false,
1424 - "name": "idx_relay_mobile_devices_push_to_start_token",
1425 - "entityType": "indexes",
1426 - "schema": "public",
1427 - "table": "relay_mobile_devices"
1428 - },
1429 - {
1430 - "columns": ["environment_id", "environment_public_key", "thread_id"],
1431 - "nameExplicit": false,
1432 - "name": "relay_agent_activity_rows_pkey",
1433 - "entityType": "pks",
1434 - "schema": "public",
1435 - "table": "relay_agent_activity_rows"
1436 - },
1437 - {
1438 - "columns": ["thumbprint", "jti"],
1439 - "nameExplicit": false,
1440 - "name": "relay_dpop_proofs_pkey",
1441 - "entityType": "pks",
1442 - "schema": "public",
1443 - "table": "relay_dpop_proofs"
1444 - },
1445 - {
1446 - "columns": ["user_id", "environment_id"],
1447 - "nameExplicit": false,
1448 - "name": "relay_environment_links_pkey",
1449 - "entityType": "pks",
1450 - "schema": "public",
1451 - "table": "relay_environment_links"
1452 - },
1453 - {
1454 - "columns": ["user_id", "device_id"],
1455 - "nameExplicit": false,
1456 - "name": "relay_live_activities_pkey",
1457 - "entityType": "pks",
1458 - "schema": "public",
1459 - "table": "relay_live_activities"
1460 - },
1461 - {
1462 - "columns": ["user_id", "environment_id"],
1463 - "nameExplicit": false,
1464 - "name": "relay_managed_endpoint_allocations_pkey",
1465 - "entityType": "pks",
1466 - "schema": "public",
1467 - "table": "relay_managed_endpoint_allocations"
1468 - },
1469 - {
1470 - "columns": ["user_id", "device_id"],
1471 - "nameExplicit": false,
1472 - "name": "relay_mobile_devices_pkey",
1473 - "entityType": "pks",
1474 - "schema": "public",
1475 - "table": "relay_mobile_devices"
1476 - },
1477 - {
1478 - "columns": ["id"],
1479 - "nameExplicit": false,
1480 - "name": "relay_delivery_attempts_pkey",
1481 - "schema": "public",
1482 - "table": "relay_delivery_attempts",
1483 - "entityType": "pks"
1484 - },
7 + "footprints": [
8 + {
9 + "statementType": "drop_index",
10 + "statementTarget": [
11 + "index",
12 + "public",
13 + "relay_live_activities",
14 + "idx_relay_live_activities_user"
15 + ],
16 + "writes": [
17 + "s|idx|public.idx_relay_live_activities_user",
18 + "n|idx|public.idx_relay_live_activities_user",
19 + "e|idx|public.idx_relay_live_activities_user",
20 + "n|rel|public.idx_relay_live_activities_user"
21 + ],
22 + "reads": [
23 + "e|tbl|public.relay_live_activities",
24 + "n|sch|public",
25 + "e|col|public.relay_live_activities.user_id"
26 + ],
27 + "sharedWrites": []
28 + },
29 + {
30 + "statementType": "drop_index",
31 + "statementTarget": [
32 + "index",
33 + "public",
34 + "relay_mobile_devices",
35 + "idx_relay_mobile_devices_user"
36 + ],
37 + "writes": [
38 + "s|idx|public.idx_relay_mobile_devices_user",
39 + "n|idx|public.idx_relay_mobile_devices_user",
40 + "e|idx|public.idx_relay_mobile_devices_user",
41 + "n|rel|public.idx_relay_mobile_devices_user"
42 + ],
43 + "reads": [
44 + "e|tbl|public.relay_mobile_devices",
45 + "n|sch|public",
46 + "e|col|public.relay_mobile_devices.user_id"
47 + ],
48 + "sharedWrites": []
49 + }
50 + ],
51 + "deltas": [
52 {
1486 - "columns": ["credential_id"],
1487 - "nameExplicit": false,
1488 - "name": "relay_environment_credentials_pkey",
1489 - "schema": "public",
1490 - "table": "relay_environment_credentials",
1491 - "entityType": "pks"
53 + "op": "drop",
54 + "key": "indexes\u0000[\"public\",\"idx_relay_live_activities_user\"]"
55 },
56 {
1494 - "columns": ["user_id"],
1495 - "nameExplicit": false,
1496 - "name": "relay_managed_tunnel_limits_pkey",
1497 - "schema": "public",
1498 - "table": "relay_managed_tunnel_limits",
1499 - "entityType": "pks"
57 + "op": "drop",
58 + "key": "indexes\u0000[\"public\",\"idx_relay_mobile_devices_user\"]"
59 }
1501 - ],
1502 - "renames": []
60 + ]
61 }
infra/relay/migrations/postgres/20260906042516_android_devices/snapshot.json
+43 -1504
@@ -1,1516 +1,55 @@
1 {
2 - "version": "8",
2 + "type": "diff",
3 + "version": "9",
4 "dialect": "postgres",
5 "id": "1109ed23-036c-4c39-a459-52422a7ffd99",
6 "prevIds": ["2374caff-40bf-423c-9255-55e76dddbc2a"],
6 - "ddl": [
7 + "footprints": [
8 {
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_managed_endpoint_allocations",
46 - "entityType": "tables",
47 - "schema": "public"
48 - },
49 - {
50 - "isRlsEnabled": false,
51 - "name": "relay_managed_tunnel_limits",
52 - "entityType": "tables",
53 - "schema": "public"
54 - },
55 - {
56 - "isRlsEnabled": false,
57 - "name": "relay_mobile_devices",
58 - "entityType": "tables",
59 - "schema": "public"
60 - },
61 - {
62 - "type": "varchar(191)",
63 - "typeSchema": null,
64 - "notNull": true,
65 - "dimensions": 0,
66 - "default": null,
67 - "generated": null,
68 - "identity": null,
69 - "name": "environment_id",
70 - "entityType": "columns",
71 - "schema": "public",
72 - "table": "relay_agent_activity_rows"
73 - },
74 - {
75 - "type": "text",
76 - "typeSchema": null,
77 - "notNull": true,
78 - "dimensions": 0,
79 - "default": null,
80 - "generated": null,
81 - "identity": null,
82 - "name": "environment_public_key",
83 - "entityType": "columns",
84 - "schema": "public",
85 - "table": "relay_agent_activity_rows"
86 - },
87 - {
88 - "type": "varchar(191)",
89 - "typeSchema": null,
90 - "notNull": true,
91 - "dimensions": 0,
92 - "default": null,
93 - "generated": null,
94 - "identity": null,
95 - "name": "thread_id",
96 - "entityType": "columns",
97 - "schema": "public",
98 - "table": "relay_agent_activity_rows"
99 - },
100 - {
101 - "type": "jsonb",
102 - "typeSchema": null,
103 - "notNull": true,
104 - "dimensions": 0,
105 - "default": null,
106 - "generated": null,
107 - "identity": null,
108 - "name": "state_json",
109 - "entityType": "columns",
110 - "schema": "public",
111 - "table": "relay_agent_activity_rows"
112 - },
113 - {
114 - "type": "varchar(64)",
115 - "typeSchema": null,
116 - "notNull": true,
117 - "dimensions": 0,
118 - "default": null,
119 - "generated": null,
120 - "identity": null,
121 - "name": "updated_at",
122 - "entityType": "columns",
123 - "schema": "public",
124 - "table": "relay_agent_activity_rows"
125 - },
126 - {
127 - "type": "varchar(64)",
128 - "typeSchema": null,
129 - "notNull": true,
130 - "dimensions": 0,
131 - "default": null,
132 - "generated": null,
133 - "identity": null,
134 - "name": "created_at",
135 - "entityType": "columns",
136 - "schema": "public",
137 - "table": "relay_agent_activity_rows"
138 - },
139 - {
140 - "type": "varchar(36)",
141 - "typeSchema": null,
142 - "notNull": true,
143 - "dimensions": 0,
144 - "default": null,
145 - "generated": null,
146 - "identity": null,
147 - "name": "id",
148 - "entityType": "columns",
149 - "schema": "public",
150 - "table": "relay_delivery_attempts"
151 - },
152 - {
153 - "type": "varchar(64)",
154 - "typeSchema": null,
155 - "notNull": true,
156 - "dimensions": 0,
157 - "default": null,
158 - "generated": null,
159 - "identity": null,
160 - "name": "created_at",
161 - "entityType": "columns",
162 - "schema": "public",
163 - "table": "relay_delivery_attempts"
164 - },
165 - {
166 - "type": "varchar(255)",
167 - "typeSchema": null,
168 - "notNull": false,
169 - "dimensions": 0,
170 - "default": null,
171 - "generated": null,
172 - "identity": null,
173 - "name": "user_id",
174 - "entityType": "columns",
175 - "schema": "public",
176 - "table": "relay_delivery_attempts"
177 - },
178 - {
179 - "type": "varchar(191)",
180 - "typeSchema": null,
181 - "notNull": false,
182 - "dimensions": 0,
183 - "default": null,
184 - "generated": null,
185 - "identity": null,
186 - "name": "environment_id",
187 - "entityType": "columns",
188 - "schema": "public",
189 - "table": "relay_delivery_attempts"
190 - },
191 - {
192 - "type": "varchar(191)",
193 - "typeSchema": null,
194 - "notNull": false,
195 - "dimensions": 0,
196 - "default": null,
197 - "generated": null,
198 - "identity": null,
199 - "name": "thread_id",
200 - "entityType": "columns",
201 - "schema": "public",
202 - "table": "relay_delivery_attempts"
203 - },
204 - {
205 - "type": "varchar(255)",
206 - "typeSchema": null,
207 - "notNull": false,
208 - "dimensions": 0,
209 - "default": null,
210 - "generated": null,
211 - "identity": null,
212 - "name": "device_id",
213 - "entityType": "columns",
214 - "schema": "public",
215 - "table": "relay_delivery_attempts"
216 - },
217 - {
218 - "type": "varchar(64)",
219 - "typeSchema": null,
220 - "notNull": true,
221 - "dimensions": 0,
222 - "default": null,
223 - "generated": null,
224 - "identity": null,
225 - "name": "kind",
226 - "entityType": "columns",
227 - "schema": "public",
228 - "table": "relay_delivery_attempts"
229 - },
230 - {
231 - "type": "varchar(64)",
232 - "typeSchema": null,
233 - "notNull": false,
234 - "dimensions": 0,
235 - "default": null,
236 - "generated": null,
237 - "identity": null,
238 - "name": "source_job_id",
239 - "entityType": "columns",
240 - "schema": "public",
241 - "table": "relay_delivery_attempts"
242 - },
243 - {
244 - "type": "varchar(16)",
245 - "typeSchema": null,
246 - "notNull": false,
247 - "dimensions": 0,
248 - "default": null,
249 - "generated": null,
250 - "identity": null,
251 - "name": "token_suffix",
252 - "entityType": "columns",
253 - "schema": "public",
254 - "table": "relay_delivery_attempts"
255 - },
256 - {
257 - "type": "integer",
258 - "typeSchema": null,
259 - "notNull": false,
260 - "dimensions": 0,
261 - "default": null,
262 - "generated": null,
263 - "identity": null,
264 - "name": "apns_status",
265 - "entityType": "columns",
266 - "schema": "public",
267 - "table": "relay_delivery_attempts"
268 - },
269 - {
270 - "type": "text",
271 - "typeSchema": null,
272 - "notNull": false,
273 - "dimensions": 0,
274 - "default": null,
275 - "generated": null,
276 - "identity": null,
277 - "name": "apns_reason",
278 - "entityType": "columns",
279 - "schema": "public",
280 - "table": "relay_delivery_attempts"
281 - },
282 - {
283 - "type": "varchar(128)",
284 - "typeSchema": null,
285 - "notNull": false,
286 - "dimensions": 0,
287 - "default": null,
288 - "generated": null,
289 - "identity": null,
290 - "name": "apns_id",
291 - "entityType": "columns",
292 - "schema": "public",
293 - "table": "relay_delivery_attempts"
294 - },
295 - {
296 - "type": "text",
297 - "typeSchema": null,
298 - "notNull": false,
299 - "dimensions": 0,
300 - "default": null,
301 - "generated": null,
302 - "identity": null,
303 - "name": "transport_error",
304 - "entityType": "columns",
305 - "schema": "public",
306 - "table": "relay_delivery_attempts"
307 - },
308 - {
309 - "type": "varchar(128)",
310 - "typeSchema": null,
311 - "notNull": true,
312 - "dimensions": 0,
313 - "default": null,
314 - "generated": null,
315 - "identity": null,
316 - "name": "thumbprint",
317 - "entityType": "columns",
318 - "schema": "public",
319 - "table": "relay_dpop_proofs"
320 - },
321 - {
322 - "type": "varchar(255)",
323 - "typeSchema": null,
324 - "notNull": true,
325 - "dimensions": 0,
326 - "default": null,
327 - "generated": null,
328 - "identity": null,
329 - "name": "jti",
330 - "entityType": "columns",
331 - "schema": "public",
332 - "table": "relay_dpop_proofs"
333 - },
334 - {
335 - "type": "integer",
336 - "typeSchema": null,
337 - "notNull": true,
338 - "dimensions": 0,
339 - "default": null,
340 - "generated": null,
341 - "identity": null,
342 - "name": "iat",
343 - "entityType": "columns",
344 - "schema": "public",
345 - "table": "relay_dpop_proofs"
346 - },
347 - {
348 - "type": "varchar(64)",
349 - "typeSchema": null,
350 - "notNull": true,
351 - "dimensions": 0,
352 - "default": null,
353 - "generated": null,
354 - "identity": null,
355 - "name": "expires_at",
356 - "entityType": "columns",
357 - "schema": "public",
358 - "table": "relay_dpop_proofs"
359 - },
360 - {
361 - "type": "varchar(64)",
362 - "typeSchema": null,
363 - "notNull": true,
364 - "dimensions": 0,
365 - "default": null,
366 - "generated": null,
367 - "identity": null,
368 - "name": "created_at",
369 - "entityType": "columns",
370 - "schema": "public",
371 - "table": "relay_dpop_proofs"
372 - },
373 - {
374 - "type": "varchar(64)",
375 - "typeSchema": null,
376 - "notNull": true,
377 - "dimensions": 0,
378 - "default": null,
379 - "generated": null,
380 - "identity": null,
381 - "name": "credential_id",
382 - "entityType": "columns",
383 - "schema": "public",
384 - "table": "relay_environment_credentials"
385 - },
386 - {
387 - "type": "varchar(191)",
388 - "typeSchema": null,
389 - "notNull": true,
390 - "dimensions": 0,
391 - "default": null,
392 - "generated": null,
393 - "identity": null,
394 - "name": "environment_id",
395 - "entityType": "columns",
396 - "schema": "public",
397 - "table": "relay_environment_credentials"
398 - },
399 - {
400 - "type": "text",
401 - "typeSchema": null,
402 - "notNull": true,
403 - "dimensions": 0,
404 - "default": null,
405 - "generated": null,
406 - "identity": null,
407 - "name": "environment_public_key",
408 - "entityType": "columns",
409 - "schema": "public",
410 - "table": "relay_environment_credentials"
411 - },
412 - {
413 - "type": "varchar(191)",
414 - "typeSchema": null,
415 - "notNull": true,
416 - "dimensions": 0,
417 - "default": null,
418 - "generated": null,
419 - "identity": null,
420 - "name": "credential_hash",
421 - "entityType": "columns",
422 - "schema": "public",
423 - "table": "relay_environment_credentials"
424 - },
425 - {
426 - "type": "varchar(64)",
427 - "typeSchema": null,
428 - "notNull": false,
429 - "dimensions": 0,
430 - "default": null,
431 - "generated": null,
432 - "identity": null,
433 - "name": "revoked_at",
434 - "entityType": "columns",
435 - "schema": "public",
436 - "table": "relay_environment_credentials"
437 - },
438 - {
439 - "type": "varchar(64)",
440 - "typeSchema": null,
441 - "notNull": true,
442 - "dimensions": 0,
443 - "default": null,
444 - "generated": null,
445 - "identity": null,
446 - "name": "created_at",
447 - "entityType": "columns",
448 - "schema": "public",
449 - "table": "relay_environment_credentials"
450 - },
451 - {
452 - "type": "varchar(64)",
453 - "typeSchema": null,
454 - "notNull": true,
455 - "dimensions": 0,
456 - "default": null,
457 - "generated": null,
458 - "identity": null,
459 - "name": "updated_at",
460 - "entityType": "columns",
461 - "schema": "public",
462 - "table": "relay_environment_credentials"
463 - },
464 - {
465 - "type": "varchar(191)",
466 - "typeSchema": null,
467 - "notNull": true,
468 - "dimensions": 0,
469 - "default": null,
470 - "generated": null,
471 - "identity": null,
472 - "name": "user_id",
473 - "entityType": "columns",
474 - "schema": "public",
475 - "table": "relay_environment_links"
476 - },
477 - {
478 - "type": "varchar(191)",
479 - "typeSchema": null,
480 - "notNull": true,
481 - "dimensions": 0,
482 - "default": null,
483 - "generated": null,
484 - "identity": null,
485 - "name": "environment_id",
486 - "entityType": "columns",
487 - "schema": "public",
488 - "table": "relay_environment_links"
489 - },
490 - {
491 - "type": "text",
492 - "typeSchema": null,
493 - "notNull": true,
494 - "dimensions": 0,
495 - "default": "'T3 Environment'",
496 - "generated": null,
497 - "identity": null,
498 - "name": "environment_label",
499 - "entityType": "columns",
500 - "schema": "public",
501 - "table": "relay_environment_links"
502 - },
503 - {
504 - "type": "text",
505 - "typeSchema": null,
506 - "notNull": true,
507 - "dimensions": 0,
508 - "default": null,
509 - "generated": null,
510 - "identity": null,
511 - "name": "environment_public_key",
512 - "entityType": "columns",
513 - "schema": "public",
514 - "table": "relay_environment_links"
515 - },
516 - {
517 - "type": "text",
518 - "typeSchema": null,
519 - "notNull": true,
520 - "dimensions": 0,
521 - "default": null,
522 - "generated": null,
523 - "identity": null,
524 - "name": "endpoint_http_base_url",
525 - "entityType": "columns",
526 - "schema": "public",
527 - "table": "relay_environment_links"
528 - },
529 - {
530 - "type": "text",
531 - "typeSchema": null,
532 - "notNull": true,
533 - "dimensions": 0,
534 - "default": null,
535 - "generated": null,
536 - "identity": null,
537 - "name": "endpoint_ws_base_url",
538 - "entityType": "columns",
539 - "schema": "public",
540 - "table": "relay_environment_links"
541 - },
542 - {
543 - "type": "varchar(32)",
544 - "typeSchema": null,
545 - "notNull": true,
546 - "dimensions": 0,
547 - "default": null,
548 - "generated": null,
549 - "identity": null,
550 - "name": "endpoint_provider_kind",
551 - "entityType": "columns",
552 - "schema": "public",
553 - "table": "relay_environment_links"
554 - },
555 - {
556 - "type": "boolean",
557 - "typeSchema": null,
558 - "notNull": true,
559 - "dimensions": 0,
560 - "default": "true",
561 - "generated": null,
562 - "identity": null,
563 - "name": "notifications_enabled",
564 - "entityType": "columns",
565 - "schema": "public",
566 - "table": "relay_environment_links"
567 - },
568 - {
569 - "type": "boolean",
570 - "typeSchema": null,
571 - "notNull": true,
572 - "dimensions": 0,
573 - "default": "true",
574 - "generated": null,
575 - "identity": null,
576 - "name": "live_activities_enabled",
577 - "entityType": "columns",
578 - "schema": "public",
579 - "table": "relay_environment_links"
580 - },
581 - {
582 - "type": "boolean",
583 - "typeSchema": null,
584 - "notNull": true,
585 - "dimensions": 0,
586 - "default": "false",
587 - "generated": null,
588 - "identity": null,
589 - "name": "managed_tunnels_enabled",
590 - "entityType": "columns",
591 - "schema": "public",
592 - "table": "relay_environment_links"
593 - },
594 - {
595 - "type": "varchar(191)",
596 - "typeSchema": null,
597 - "notNull": false,
598 - "dimensions": 0,
599 - "default": null,
600 - "generated": null,
601 - "identity": null,
602 - "name": "created_by_device_id",
603 - "entityType": "columns",
604 - "schema": "public",
605 - "table": "relay_environment_links"
606 - },
607 - {
608 - "type": "varchar(64)",
609 - "typeSchema": null,
610 - "notNull": false,
611 - "dimensions": 0,
612 - "default": null,
613 - "generated": null,
614 - "identity": null,
615 - "name": "revoked_at",
616 - "entityType": "columns",
617 - "schema": "public",
618 - "table": "relay_environment_links"
619 - },
620 - {
621 - "type": "varchar(64)",
622 - "typeSchema": null,
623 - "notNull": true,
624 - "dimensions": 0,
625 - "default": null,
626 - "generated": null,
627 - "identity": null,
628 - "name": "created_at",
629 - "entityType": "columns",
630 - "schema": "public",
631 - "table": "relay_environment_links"
632 - },
633 - {
634 - "type": "varchar(64)",
635 - "typeSchema": null,
636 - "notNull": true,
637 - "dimensions": 0,
638 - "default": null,
639 - "generated": null,
640 - "identity": null,
641 - "name": "updated_at",
642 - "entityType": "columns",
643 - "schema": "public",
644 - "table": "relay_environment_links"
645 - },
646 - {
647 - "type": "varchar(255)",
648 - "typeSchema": null,
649 - "notNull": true,
650 - "dimensions": 0,
651 - "default": null,
652 - "generated": null,
653 - "identity": null,
654 - "name": "user_id",
655 - "entityType": "columns",
656 - "schema": "public",
657 - "table": "relay_live_activities"
658 - },
659 - {
660 - "type": "varchar(255)",
661 - "typeSchema": null,
662 - "notNull": true,
663 - "dimensions": 0,
664 - "default": null,
665 - "generated": null,
666 - "identity": null,
667 - "name": "device_id",
668 - "entityType": "columns",
669 - "schema": "public",
670 - "table": "relay_live_activities"
671 - },
672 - {
673 - "type": "text",
674 - "typeSchema": null,
675 - "notNull": false,
676 - "dimensions": 0,
677 - "default": null,
678 - "generated": null,
679 - "identity": null,
680 - "name": "activity_push_token",
681 - "entityType": "columns",
682 - "schema": "public",
683 - "table": "relay_live_activities"
684 - },
685 - {
686 - "type": "varchar(64)",
687 - "typeSchema": null,
688 - "notNull": false,
689 - "dimensions": 0,
690 - "default": null,
691 - "generated": null,
692 - "identity": null,
693 - "name": "remote_start_queued_at",
694 - "entityType": "columns",
695 - "schema": "public",
696 - "table": "relay_live_activities"
697 - },
698 - {
699 - "type": "varchar(64)",
700 - "typeSchema": null,
701 - "notNull": false,
702 - "dimensions": 0,
703 - "default": null,
704 - "generated": null,
705 - "identity": null,
706 - "name": "remote_started_at",
707 - "entityType": "columns",
708 - "schema": "public",
709 - "table": "relay_live_activities"
710 - },
711 - {
712 - "type": "varchar(64)",
713 - "typeSchema": null,
714 - "notNull": false,
715 - "dimensions": 0,
716 - "default": null,
717 - "generated": null,
718 - "identity": null,
719 - "name": "ended_at",
720 - "entityType": "columns",
721 - "schema": "public",
722 - "table": "relay_live_activities"
723 - },
724 - {
725 - "type": "jsonb",
726 - "typeSchema": null,
727 - "notNull": false,
728 - "dimensions": 0,
729 - "default": null,
730 - "generated": null,
731 - "identity": null,
732 - "name": "last_aggregate_json",
733 - "entityType": "columns",
734 - "schema": "public",
735 - "table": "relay_live_activities"
736 - },
737 - {
738 - "type": "varchar(64)",
739 - "typeSchema": null,
740 - "notNull": false,
741 - "dimensions": 0,
742 - "default": null,
743 - "generated": null,
744 - "identity": null,
745 - "name": "last_live_activity_delivery_at",
746 - "entityType": "columns",
747 - "schema": "public",
748 - "table": "relay_live_activities"
749 - },
750 - {
751 - "type": "varchar(64)",
752 - "typeSchema": null,
753 - "notNull": true,
754 - "dimensions": 0,
755 - "default": null,
756 - "generated": null,
757 - "identity": null,
758 - "name": "created_at",
759 - "entityType": "columns",
760 - "schema": "public",
761 - "table": "relay_live_activities"
762 - },
763 - {
764 - "type": "varchar(64)",
765 - "typeSchema": null,
766 - "notNull": true,
767 - "dimensions": 0,
768 - "default": null,
769 - "generated": null,
770 - "identity": null,
771 - "name": "updated_at",
772 - "entityType": "columns",
773 - "schema": "public",
774 - "table": "relay_live_activities"
775 - },
776 - {
777 - "type": "varchar(191)",
778 - "typeSchema": null,
779 - "notNull": true,
780 - "dimensions": 0,
781 - "default": null,
782 - "generated": null,
783 - "identity": null,
784 - "name": "user_id",
785 - "entityType": "columns",
786 - "schema": "public",
787 - "table": "relay_managed_endpoint_allocations"
788 - },
789 - {
790 - "type": "varchar(191)",
791 - "typeSchema": null,
792 - "notNull": true,
793 - "dimensions": 0,
794 - "default": null,
795 - "generated": null,
796 - "identity": null,
797 - "name": "environment_id",
798 - "entityType": "columns",
799 - "schema": "public",
800 - "table": "relay_managed_endpoint_allocations"
801 - },
802 - {
803 - "type": "text",
804 - "typeSchema": null,
805 - "notNull": true,
806 - "dimensions": 0,
807 - "default": null,
808 - "generated": null,
809 - "identity": null,
810 - "name": "hostname",
811 - "entityType": "columns",
812 - "schema": "public",
813 - "table": "relay_managed_endpoint_allocations"
814 - },
815 - {
816 - "type": "varchar(191)",
817 - "typeSchema": null,
818 - "notNull": false,
819 - "dimensions": 0,
820 - "default": null,
821 - "generated": null,
822 - "identity": null,
823 - "name": "tunnel_id",
824 - "entityType": "columns",
825 - "schema": "public",
826 - "table": "relay_managed_endpoint_allocations"
827 - },
828 - {
829 - "type": "text",
830 - "typeSchema": null,
831 - "notNull": true,
832 - "dimensions": 0,
833 - "default": null,
834 - "generated": null,
835 - "identity": null,
836 - "name": "tunnel_name",
837 - "entityType": "columns",
838 - "schema": "public",
839 - "table": "relay_managed_endpoint_allocations"
840 - },
841 - {
842 - "type": "varchar(191)",
843 - "typeSchema": null,
844 - "notNull": false,
845 - "dimensions": 0,
846 - "default": null,
847 - "generated": null,
848 - "identity": null,
849 - "name": "dns_record_id",
850 - "entityType": "columns",
851 - "schema": "public",
852 - "table": "relay_managed_endpoint_allocations"
853 - },
854 - {
855 - "type": "varchar(64)",
856 - "typeSchema": null,
857 - "notNull": false,
858 - "dimensions": 0,
859 - "default": null,
860 - "generated": null,
861 - "identity": null,
862 - "name": "ready_at",
863 - "entityType": "columns",
864 - "schema": "public",
865 - "table": "relay_managed_endpoint_allocations"
866 - },
867 - {
868 - "type": "varchar(64)",
869 - "typeSchema": null,
870 - "notNull": true,
871 - "dimensions": 0,
872 - "default": null,
873 - "generated": null,
874 - "identity": null,
875 - "name": "created_at",
876 - "entityType": "columns",
877 - "schema": "public",
878 - "table": "relay_managed_endpoint_allocations"
879 - },
880 - {
881 - "type": "varchar(64)",
882 - "typeSchema": null,
883 - "notNull": true,
884 - "dimensions": 0,
885 - "default": null,
886 - "generated": null,
887 - "identity": null,
888 - "name": "updated_at",
889 - "entityType": "columns",
890 - "schema": "public",
891 - "table": "relay_managed_endpoint_allocations"
892 - },
893 - {
894 - "type": "varchar(191)",
895 - "typeSchema": null,
896 - "notNull": true,
897 - "dimensions": 0,
898 - "default": null,
899 - "generated": null,
900 - "identity": null,
901 - "name": "user_id",
902 - "entityType": "columns",
903 - "schema": "public",
904 - "table": "relay_managed_tunnel_limits"
905 - },
906 - {
907 - "type": "integer",
908 - "typeSchema": null,
909 - "notNull": true,
910 - "dimensions": 0,
911 - "default": null,
912 - "generated": null,
913 - "identity": null,
914 - "name": "max_tunnels",
915 - "entityType": "columns",
916 - "schema": "public",
917 - "table": "relay_managed_tunnel_limits"
918 - },
919 - {
920 - "type": "varchar(64)",
921 - "typeSchema": null,
922 - "notNull": true,
923 - "dimensions": 0,
924 - "default": null,
925 - "generated": null,
926 - "identity": null,
927 - "name": "created_at",
928 - "entityType": "columns",
929 - "schema": "public",
930 - "table": "relay_managed_tunnel_limits"
931 - },
932 - {
933 - "type": "varchar(64)",
934 - "typeSchema": null,
935 - "notNull": true,
936 - "dimensions": 0,
937 - "default": null,
938 - "generated": null,
939 - "identity": null,
940 - "name": "updated_at",
941 - "entityType": "columns",
942 - "schema": "public",
943 - "table": "relay_managed_tunnel_limits"
944 - },
945 - {
946 - "type": "varchar(255)",
947 - "typeSchema": null,
948 - "notNull": true,
949 - "dimensions": 0,
950 - "default": null,
951 - "generated": null,
952 - "identity": null,
953 - "name": "user_id",
954 - "entityType": "columns",
955 - "schema": "public",
956 - "table": "relay_mobile_devices"
957 - },
958 - {
959 - "type": "varchar(255)",
960 - "typeSchema": null,
961 - "notNull": true,
962 - "dimensions": 0,
963 - "default": null,
964 - "generated": null,
965 - "identity": null,
966 - "name": "device_id",
967 - "entityType": "columns",
968 - "schema": "public",
969 - "table": "relay_mobile_devices"
970 - },
971 - {
972 - "type": "text",
973 - "typeSchema": null,
974 - "notNull": true,
975 - "dimensions": 0,
976 - "default": "'iOS device'",
977 - "generated": null,
978 - "identity": null,
979 - "name": "label",
980 - "entityType": "columns",
981 - "schema": "public",
982 - "table": "relay_mobile_devices"
983 - },
984 - {
985 - "type": "varchar(16)",
986 - "typeSchema": null,
987 - "notNull": true,
988 - "dimensions": 0,
989 - "default": null,
990 - "generated": null,
991 - "identity": null,
992 - "name": "platform",
993 - "entityType": "columns",
994 - "schema": "public",
995 - "table": "relay_mobile_devices"
996 - },
997 - {
998 - "type": "integer",
999 - "typeSchema": null,
1000 - "notNull": false,
1001 - "dimensions": 0,
1002 - "default": null,
1003 - "generated": null,
1004 - "identity": null,
1005 - "name": "ios_major_version",
1006 - "entityType": "columns",
1007 - "schema": "public",
1008 - "table": "relay_mobile_devices"
1009 - },
1010 - {
1011 - "type": "integer",
1012 - "typeSchema": null,
1013 - "notNull": false,
1014 - "dimensions": 0,
1015 - "default": null,
1016 - "generated": null,
1017 - "identity": null,
1018 - "name": "android_api_level",
1019 - "entityType": "columns",
1020 - "schema": "public",
1021 - "table": "relay_mobile_devices"
1022 - },
1023 - {
1024 - "type": "varchar(64)",
1025 - "typeSchema": null,
1026 - "notNull": false,
1027 - "dimensions": 0,
1028 - "default": null,
1029 - "generated": null,
1030 - "identity": null,
1031 - "name": "app_version",
1032 - "entityType": "columns",
1033 - "schema": "public",
1034 - "table": "relay_mobile_devices"
1035 - },
1036 - {
1037 - "type": "varchar(255)",
1038 - "typeSchema": null,
1039 - "notNull": false,
1040 - "dimensions": 0,
1041 - "default": null,
1042 - "generated": null,
1043 - "identity": null,
1044 - "name": "bundle_id",
1045 - "entityType": "columns",
1046 - "schema": "public",
1047 - "table": "relay_mobile_devices"
1048 - },
1049 - {
1050 - "type": "varchar(16)",
1051 - "typeSchema": null,
1052 - "notNull": false,
1053 - "dimensions": 0,
1054 - "default": null,
1055 - "generated": null,
1056 - "identity": null,
1057 - "name": "aps_environment",
1058 - "entityType": "columns",
1059 - "schema": "public",
1060 - "table": "relay_mobile_devices"
1061 - },
1062 - {
1063 - "type": "text",
1064 - "typeSchema": null,
1065 - "notNull": false,
1066 - "dimensions": 0,
1067 - "default": null,
1068 - "generated": null,
1069 - "identity": null,
1070 - "name": "push_token",
1071 - "entityType": "columns",
1072 - "schema": "public",
1073 - "table": "relay_mobile_devices"
1074 - },
1075 - {
1076 - "type": "text",
1077 - "typeSchema": null,
1078 - "notNull": false,
1079 - "dimensions": 0,
1080 - "default": null,
1081 - "generated": null,
1082 - "identity": null,
1083 - "name": "push_to_start_token",
1084 - "entityType": "columns",
1085 - "schema": "public",
1086 - "table": "relay_mobile_devices"
1087 - },
1088 - {
1089 - "type": "jsonb",
1090 - "typeSchema": null,
1091 - "notNull": true,
1092 - "dimensions": 0,
1093 - "default": null,
1094 - "generated": null,
1095 - "identity": null,
1096 - "name": "preferences_json",
1097 - "entityType": "columns",
1098 - "schema": "public",
1099 - "table": "relay_mobile_devices"
1100 - },
1101 - {
1102 - "type": "varchar(64)",
1103 - "typeSchema": null,
1104 - "notNull": true,
1105 - "dimensions": 0,
1106 - "default": null,
1107 - "generated": null,
1108 - "identity": null,
1109 - "name": "created_at",
1110 - "entityType": "columns",
1111 - "schema": "public",
1112 - "table": "relay_mobile_devices"
1113 - },
1114 - {
1115 - "type": "varchar(64)",
1116 - "typeSchema": null,
1117 - "notNull": true,
1118 - "dimensions": 0,
1119 - "default": null,
1120 - "generated": null,
1121 - "identity": null,
1122 - "name": "updated_at",
1123 - "entityType": "columns",
1124 - "schema": "public",
1125 - "table": "relay_mobile_devices"
1126 - },
1127 - {
1128 - "nameExplicit": true,
1129 - "columns": [
1130 - {
1131 - "value": "updated_at",
1132 - "isExpression": false,
1133 - "asc": true,
1134 - "nullsFirst": false,
1135 - "opclass": null
1136 - }
1137 - ],
1138 - "isUnique": false,
1139 - "where": null,
1140 - "with": "",
1141 - "method": "btree",
1142 - "concurrently": false,
1143 - "name": "idx_relay_agent_activity_rows_updated",
1144 - "entityType": "indexes",
1145 - "schema": "public",
1146 - "table": "relay_agent_activity_rows"
1147 - },
1148 - {
1149 - "nameExplicit": true,
1150 - "columns": [
1151 - {
1152 - "value": "environment_id",
1153 - "isExpression": false,
1154 - "asc": true,
1155 - "nullsFirst": false,
1156 - "opclass": null
1157 - },
1158 - {
1159 - "value": "thread_id",
1160 - "isExpression": false,
1161 - "asc": true,
1162 - "nullsFirst": false,
1163 - "opclass": null
1164 - },
1165 - {
1166 - "value": "created_at",
1167 - "isExpression": false,
1168 - "asc": true,
1169 - "nullsFirst": false,
1170 - "opclass": null
1171 - }
1172 - ],
1173 - "isUnique": false,
1174 - "where": null,
1175 - "with": "",
1176 - "method": "btree",
1177 - "concurrently": false,
1178 - "name": "idx_relay_delivery_attempts_environment",
1179 - "entityType": "indexes",
1180 - "schema": "public",
1181 - "table": "relay_delivery_attempts"
1182 - },
1183 - {
1184 - "nameExplicit": true,
1185 - "columns": [
1186 - {
1187 - "value": "source_job_id",
1188 - "isExpression": false,
1189 - "asc": true,
1190 - "nullsFirst": false,
1191 - "opclass": null
1192 - }
1193 - ],
1194 - "isUnique": true,
1195 - "where": null,
1196 - "with": "",
1197 - "method": "btree",
1198 - "concurrently": false,
1199 - "name": "idx_relay_delivery_attempts_source_job",
1200 - "entityType": "indexes",
1201 - "schema": "public",
1202 - "table": "relay_delivery_attempts"
1203 - },
1204 - {
1205 - "nameExplicit": true,
1206 - "columns": [
1207 - {
1208 - "value": "expires_at",
1209 - "isExpression": false,
1210 - "asc": true,
1211 - "nullsFirst": false,
1212 - "opclass": null
1213 - }
1214 - ],
1215 - "isUnique": false,
1216 - "where": null,
1217 - "with": "",
1218 - "method": "btree",
1219 - "concurrently": false,
1220 - "name": "idx_relay_dpop_proofs_expires_at",
1221 - "entityType": "indexes",
1222 - "schema": "public",
1223 - "table": "relay_dpop_proofs"
1224 - },
1225 - {
1226 - "nameExplicit": true,
1227 - "columns": [
1228 - {
1229 - "value": "credential_hash",
1230 - "isExpression": false,
1231 - "asc": true,
1232 - "nullsFirst": false,
1233 - "opclass": null
1234 - }
1235 - ],
1236 - "isUnique": true,
1237 - "where": null,
1238 - "with": "",
1239 - "method": "btree",
1240 - "concurrently": false,
1241 - "name": "idx_relay_environment_credentials_hash",
1242 - "entityType": "indexes",
1243 - "schema": "public",
1244 - "table": "relay_environment_credentials"
1245 - },
1246 - {
1247 - "nameExplicit": true,
1248 - "columns": [
1249 - {
1250 - "value": "environment_id",
1251 - "isExpression": false,
1252 - "asc": true,
1253 - "nullsFirst": false,
1254 - "opclass": null
1255 - },
1256 - {
1257 - "value": "revoked_at",
1258 - "isExpression": false,
1259 - "asc": true,
1260 - "nullsFirst": false,
1261 - "opclass": null
1262 - }
1263 - ],
1264 - "isUnique": false,
1265 - "where": null,
1266 - "with": "",
1267 - "method": "btree",
1268 - "concurrently": false,
1269 - "name": "idx_relay_environment_credentials_environment",
1270 - "entityType": "indexes",
1271 - "schema": "public",
1272 - "table": "relay_environment_credentials"
1273 - },
1274 - {
1275 - "nameExplicit": true,
1276 - "columns": [
1277 - {
1278 - "value": "environment_id",
1279 - "isExpression": false,
1280 - "asc": true,
1281 - "nullsFirst": false,
1282 - "opclass": null
1283 - },
1284 - {
1285 - "value": "environment_public_key",
1286 - "isExpression": false,
1287 - "asc": true,
1288 - "nullsFirst": false,
1289 - "opclass": null
1290 - },
1291 - {
1292 - "value": "revoked_at",
1293 - "isExpression": false,
1294 - "asc": true,
1295 - "nullsFirst": false,
1296 - "opclass": null
1297 - }
1298 - ],
1299 - "isUnique": false,
1300 - "where": null,
1301 - "with": "",
1302 - "method": "btree",
1303 - "concurrently": false,
1304 - "name": "idx_relay_environment_credentials_environment_key",
1305 - "entityType": "indexes",
1306 - "schema": "public",
1307 - "table": "relay_environment_credentials"
1308 - },
1309 - {
1310 - "nameExplicit": true,
1311 - "columns": [
1312 - {
1313 - "value": "environment_id",
1314 - "isExpression": false,
1315 - "asc": true,
1316 - "nullsFirst": false,
1317 - "opclass": null
1318 - },
1319 - {
1320 - "value": "revoked_at",
1321 - "isExpression": false,
1322 - "asc": true,
1323 - "nullsFirst": false,
1324 - "opclass": null
1325 - }
1326 - ],
1327 - "isUnique": false,
1328 - "where": null,
1329 - "with": "",
1330 - "method": "btree",
1331 - "concurrently": false,
1332 - "name": "idx_relay_environment_links_environment",
1333 - "entityType": "indexes",
1334 - "schema": "public",
1335 - "table": "relay_environment_links"
1336 - },
1337 - {
1338 - "nameExplicit": true,
1339 - "columns": [
1340 - {
1341 - "value": "activity_push_token",
1342 - "isExpression": false,
1343 - "asc": true,
1344 - "nullsFirst": false,
1345 - "opclass": null
1346 - }
1347 - ],
1348 - "isUnique": true,
1349 - "where": null,
1350 - "with": "",
1351 - "method": "btree",
1352 - "concurrently": false,
1353 - "name": "idx_relay_live_activities_activity_push_token",
1354 - "entityType": "indexes",
1355 - "schema": "public",
1356 - "table": "relay_live_activities"
1357 - },
1358 - {
1359 - "nameExplicit": true,
1360 - "columns": [
1361 - {
1362 - "value": "hostname",
1363 - "isExpression": false,
1364 - "asc": true,
1365 - "nullsFirst": false,
1366 - "opclass": null
1367 - }
9 + "statementType": "add_column",
10 + "statementTarget": ["column", "public", "relay_mobile_devices", "android_api_level"],
11 + "writes": [
12 + "s|col|public.relay_mobile_devices.android_api_level",
13 + "n|col|public.relay_mobile_devices.android_api_level",
14 + "e|col|public.relay_mobile_devices.android_api_level"
15 ],
1369 - "isUnique": true,
1370 - "where": null,
1371 - "with": "",
1372 - "method": "btree",
1373 - "concurrently": false,
1374 - "name": "idx_relay_managed_endpoint_allocations_hostname",
1375 - "entityType": "indexes",
1376 - "schema": "public",
1377 - "table": "relay_managed_endpoint_allocations"
16 + "reads": ["n|tbl|public.relay_mobile_devices", "n|sch|public"]
17 },
18 {
1380 - "nameExplicit": true,
1381 - "columns": [
1382 - {
1383 - "value": "tunnel_name",
1384 - "isExpression": false,
1385 - "asc": true,
1386 - "nullsFirst": false,
1387 - "opclass": null
1388 - }
19 + "statementType": "alter_column",
20 + "statementTarget": ["column", "public", "relay_mobile_devices", "ios_major_version"],
21 + "writes": ["s|colprop|public.relay_mobile_devices.ios_major_version.notNull"],
22 + "reads": [
23 + "n|tbl|public.relay_mobile_devices",
24 + "n|sch|public",
25 + "n|col|public.relay_mobile_devices.ios_major_version"
26 ],
1390 - "isUnique": true,
1391 - "where": null,
1392 - "with": "",
1393 - "method": "btree",
1394 - "concurrently": false,
1395 - "name": "idx_relay_managed_endpoint_allocations_tunnel_name",
1396 - "entityType": "indexes",
1397 - "schema": "public",
1398 - "table": "relay_managed_endpoint_allocations"
1399 - },
1400 - {
1401 - "nameExplicit": true,
1402 - "columns": [
1403 - {
1404 - "value": "push_token",
1405 - "isExpression": false,
1406 - "asc": true,
1407 - "nullsFirst": false,
1408 - "opclass": null
1409 - }
1410 - ],
1411 - "isUnique": true,
1412 - "where": null,
1413 - "with": "",
1414 - "method": "btree",
1415 - "concurrently": false,
1416 - "name": "idx_relay_mobile_devices_push_token",
1417 - "entityType": "indexes",
1418 - "schema": "public",
1419 - "table": "relay_mobile_devices"
1420 - },
1421 - {
1422 - "nameExplicit": true,
1423 - "columns": [
1424 - {
1425 - "value": "push_to_start_token",
1426 - "isExpression": false,
1427 - "asc": true,
1428 - "nullsFirst": false,
1429 - "opclass": null
1430 - }
1431 - ],
1432 - "isUnique": true,
1433 - "where": null,
1434 - "with": "",
1435 - "method": "btree",
1436 - "concurrently": false,
1437 - "name": "idx_relay_mobile_devices_push_to_start_token",
1438 - "entityType": "indexes",
1439 - "schema": "public",
1440 - "table": "relay_mobile_devices"
1441 - },
1442 - {
1443 - "columns": ["environment_id", "environment_public_key", "thread_id"],
1444 - "nameExplicit": false,
1445 - "name": "relay_agent_activity_rows_pkey",
1446 - "entityType": "pks",
1447 - "schema": "public",
1448 - "table": "relay_agent_activity_rows"
1449 - },
1450 - {
1451 - "columns": ["thumbprint", "jti"],
1452 - "nameExplicit": false,
1453 - "name": "relay_dpop_proofs_pkey",
1454 - "entityType": "pks",
1455 - "schema": "public",
1456 - "table": "relay_dpop_proofs"
1457 - },
1458 - {
1459 - "columns": ["user_id", "environment_id"],
1460 - "nameExplicit": false,
1461 - "name": "relay_environment_links_pkey",
1462 - "entityType": "pks",
1463 - "schema": "public",
1464 - "table": "relay_environment_links"
1465 - },
1466 - {
1467 - "columns": ["user_id", "device_id"],
1468 - "nameExplicit": false,
1469 - "name": "relay_live_activities_pkey",
1470 - "entityType": "pks",
1471 - "schema": "public",
1472 - "table": "relay_live_activities"
1473 - },
1474 - {
1475 - "columns": ["user_id", "environment_id"],
1476 - "nameExplicit": false,
1477 - "name": "relay_managed_endpoint_allocations_pkey",
1478 - "entityType": "pks",
1479 - "schema": "public",
1480 - "table": "relay_managed_endpoint_allocations"
1481 - },
1482 - {
1483 - "columns": ["user_id", "device_id"],
1484 - "nameExplicit": false,
1485 - "name": "relay_mobile_devices_pkey",
1486 - "entityType": "pks",
1487 - "schema": "public",
1488 - "table": "relay_mobile_devices"
1489 - },
1490 - {
1491 - "columns": ["id"],
1492 - "nameExplicit": false,
1493 - "name": "relay_delivery_attempts_pkey",
1494 - "schema": "public",
1495 - "table": "relay_delivery_attempts",
1496 - "entityType": "pks"
1497 - },
1498 - {
1499 - "columns": ["credential_id"],
1500 - "nameExplicit": false,
1501 - "name": "relay_environment_credentials_pkey",
1502 - "schema": "public",
1503 - "table": "relay_environment_credentials",
1504 - "entityType": "pks"
1505 - },
1506 - {
1507 - "columns": ["user_id"],
1508 - "nameExplicit": false,
1509 - "name": "relay_managed_tunnel_limits_pkey",
1510 - "schema": "public",
1511 - "table": "relay_managed_tunnel_limits",
1512 - "entityType": "pks"
27 + "sqlHash": "b777cbc1f38bf2c6"
28 }
29 ],
1515 - "renames": []
30 + "deltas": [
31 + {
32 + "op": "create",
33 + "row": {
34 + "schema": "public",
35 + "table": "relay_mobile_devices",
36 + "name": "android_api_level",
37 + "type": "integer",
38 + "typeSchema": null,
39 + "notNull": false,
40 + "dimensions": 0,
41 + "default": null,
42 + "generated": null,
43 + "identity": null,
44 + "entityType": "columns"
45 + }
46 + },
47 + {
48 + "op": "alter",
49 + "key": "columns\u0000[\"public\",\"relay_mobile_devices\",\"ios_major_version\"]",
50 + "set": {
51 + "notNull": false
52 + }
53 + }
54 + ]
55 }
infra/relay/migrations/postgres/20260918175607_long_thread_ids/snapshot.json
+37 -1500
@@ -1,1516 +1,53 @@
1 {
2 - "version": "8",
2 + "type": "diff",
3 + "version": "9",
4 "dialect": "postgres",
5 "id": "4b6d0d21-8d78-4499-9dde-b42bcf633d05",
6 "prevIds": ["1109ed23-036c-4c39-a459-52422a7ffd99"],
6 - "ddl": [
7 + "footprints": [
8 {
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_managed_endpoint_allocations",
46 - "entityType": "tables",
47 - "schema": "public"
48 - },
49 - {
50 - "isRlsEnabled": false,
51 - "name": "relay_managed_tunnel_limits",
52 - "entityType": "tables",
53 - "schema": "public"
54 - },
55 - {
56 - "isRlsEnabled": false,
57 - "name": "relay_mobile_devices",
58 - "entityType": "tables",
59 - "schema": "public"
60 - },
61 - {
62 - "type": "varchar(191)",
63 - "typeSchema": null,
64 - "notNull": true,
65 - "dimensions": 0,
66 - "default": null,
67 - "generated": null,
68 - "identity": null,
69 - "name": "environment_id",
70 - "entityType": "columns",
71 - "schema": "public",
72 - "table": "relay_agent_activity_rows"
73 - },
74 - {
75 - "type": "text",
76 - "typeSchema": null,
77 - "notNull": true,
78 - "dimensions": 0,
79 - "default": null,
80 - "generated": null,
81 - "identity": null,
82 - "name": "environment_public_key",
83 - "entityType": "columns",
84 - "schema": "public",
85 - "table": "relay_agent_activity_rows"
86 - },
87 - {
88 - "type": "varchar(512)",
89 - "typeSchema": null,
90 - "notNull": true,
91 - "dimensions": 0,
92 - "default": null,
93 - "generated": null,
94 - "identity": null,
95 - "name": "thread_id",
96 - "entityType": "columns",
97 - "schema": "public",
98 - "table": "relay_agent_activity_rows"
99 - },
100 - {
101 - "type": "jsonb",
102 - "typeSchema": null,
103 - "notNull": true,
104 - "dimensions": 0,
105 - "default": null,
106 - "generated": null,
107 - "identity": null,
108 - "name": "state_json",
109 - "entityType": "columns",
110 - "schema": "public",
111 - "table": "relay_agent_activity_rows"
112 - },
113 - {
114 - "type": "varchar(64)",
115 - "typeSchema": null,
116 - "notNull": true,
117 - "dimensions": 0,
118 - "default": null,
119 - "generated": null,
120 - "identity": null,
121 - "name": "updated_at",
122 - "entityType": "columns",
123 - "schema": "public",
124 - "table": "relay_agent_activity_rows"
125 - },
126 - {
127 - "type": "varchar(64)",
128 - "typeSchema": null,
129 - "notNull": true,
130 - "dimensions": 0,
131 - "default": null,
132 - "generated": null,
133 - "identity": null,
134 - "name": "created_at",
135 - "entityType": "columns",
136 - "schema": "public",
137 - "table": "relay_agent_activity_rows"
138 - },
139 - {
140 - "type": "varchar(36)",
141 - "typeSchema": null,
142 - "notNull": true,
143 - "dimensions": 0,
144 - "default": null,
145 - "generated": null,
146 - "identity": null,
147 - "name": "id",
148 - "entityType": "columns",
149 - "schema": "public",
150 - "table": "relay_delivery_attempts"
151 - },
152 - {
153 - "type": "varchar(64)",
154 - "typeSchema": null,
155 - "notNull": true,
156 - "dimensions": 0,
157 - "default": null,
158 - "generated": null,
159 - "identity": null,
160 - "name": "created_at",
161 - "entityType": "columns",
162 - "schema": "public",
163 - "table": "relay_delivery_attempts"
164 - },
165 - {
166 - "type": "varchar(255)",
167 - "typeSchema": null,
168 - "notNull": false,
169 - "dimensions": 0,
170 - "default": null,
171 - "generated": null,
172 - "identity": null,
173 - "name": "user_id",
174 - "entityType": "columns",
175 - "schema": "public",
176 - "table": "relay_delivery_attempts"
177 - },
178 - {
179 - "type": "varchar(191)",
180 - "typeSchema": null,
181 - "notNull": false,
182 - "dimensions": 0,
183 - "default": null,
184 - "generated": null,
185 - "identity": null,
186 - "name": "environment_id",
187 - "entityType": "columns",
188 - "schema": "public",
189 - "table": "relay_delivery_attempts"
190 - },
191 - {
192 - "type": "varchar(512)",
193 - "typeSchema": null,
194 - "notNull": false,
195 - "dimensions": 0,
196 - "default": null,
197 - "generated": null,
198 - "identity": null,
199 - "name": "thread_id",
200 - "entityType": "columns",
201 - "schema": "public",
202 - "table": "relay_delivery_attempts"
203 - },
204 - {
205 - "type": "varchar(255)",
206 - "typeSchema": null,
207 - "notNull": false,
208 - "dimensions": 0,
209 - "default": null,
210 - "generated": null,
211 - "identity": null,
212 - "name": "device_id",
213 - "entityType": "columns",
214 - "schema": "public",
215 - "table": "relay_delivery_attempts"
216 - },
217 - {
218 - "type": "varchar(64)",
219 - "typeSchema": null,
220 - "notNull": true,
221 - "dimensions": 0,
222 - "default": null,
223 - "generated": null,
224 - "identity": null,
225 - "name": "kind",
226 - "entityType": "columns",
227 - "schema": "public",
228 - "table": "relay_delivery_attempts"
229 - },
230 - {
231 - "type": "varchar(64)",
232 - "typeSchema": null,
233 - "notNull": false,
234 - "dimensions": 0,
235 - "default": null,
236 - "generated": null,
237 - "identity": null,
238 - "name": "source_job_id",
239 - "entityType": "columns",
240 - "schema": "public",
241 - "table": "relay_delivery_attempts"
242 - },
243 - {
244 - "type": "varchar(16)",
245 - "typeSchema": null,
246 - "notNull": false,
247 - "dimensions": 0,
248 - "default": null,
249 - "generated": null,
250 - "identity": null,
251 - "name": "token_suffix",
252 - "entityType": "columns",
253 - "schema": "public",
254 - "table": "relay_delivery_attempts"
255 - },
256 - {
257 - "type": "integer",
258 - "typeSchema": null,
259 - "notNull": false,
260 - "dimensions": 0,
261 - "default": null,
262 - "generated": null,
263 - "identity": null,
264 - "name": "apns_status",
265 - "entityType": "columns",
266 - "schema": "public",
267 - "table": "relay_delivery_attempts"
268 - },
269 - {
270 - "type": "text",
271 - "typeSchema": null,
272 - "notNull": false,
273 - "dimensions": 0,
274 - "default": null,
275 - "generated": null,
276 - "identity": null,
277 - "name": "apns_reason",
278 - "entityType": "columns",
279 - "schema": "public",
280 - "table": "relay_delivery_attempts"
281 - },
282 - {
283 - "type": "varchar(128)",
284 - "typeSchema": null,
285 - "notNull": false,
286 - "dimensions": 0,
287 - "default": null,
288 - "generated": null,
289 - "identity": null,
290 - "name": "apns_id",
291 - "entityType": "columns",
292 - "schema": "public",
293 - "table": "relay_delivery_attempts"
294 - },
295 - {
296 - "type": "text",
297 - "typeSchema": null,
298 - "notNull": false,
299 - "dimensions": 0,
300 - "default": null,
301 - "generated": null,
302 - "identity": null,
303 - "name": "transport_error",
304 - "entityType": "columns",
305 - "schema": "public",
306 - "table": "relay_delivery_attempts"
307 - },
308 - {
309 - "type": "varchar(128)",
310 - "typeSchema": null,
311 - "notNull": true,
312 - "dimensions": 0,
313 - "default": null,
314 - "generated": null,
315 - "identity": null,
316 - "name": "thumbprint",
317 - "entityType": "columns",
318 - "schema": "public",
319 - "table": "relay_dpop_proofs"
320 - },
321 - {
322 - "type": "varchar(255)",
323 - "typeSchema": null,
324 - "notNull": true,
325 - "dimensions": 0,
326 - "default": null,
327 - "generated": null,
328 - "identity": null,
329 - "name": "jti",
330 - "entityType": "columns",
331 - "schema": "public",
332 - "table": "relay_dpop_proofs"
333 - },
334 - {
335 - "type": "integer",
336 - "typeSchema": null,
337 - "notNull": true,
338 - "dimensions": 0,
339 - "default": null,
340 - "generated": null,
341 - "identity": null,
342 - "name": "iat",
343 - "entityType": "columns",
344 - "schema": "public",
345 - "table": "relay_dpop_proofs"
346 - },
347 - {
348 - "type": "varchar(64)",
349 - "typeSchema": null,
350 - "notNull": true,
351 - "dimensions": 0,
352 - "default": null,
353 - "generated": null,
354 - "identity": null,
355 - "name": "expires_at",
356 - "entityType": "columns",
357 - "schema": "public",
358 - "table": "relay_dpop_proofs"
359 - },
360 - {
361 - "type": "varchar(64)",
362 - "typeSchema": null,
363 - "notNull": true,
364 - "dimensions": 0,
365 - "default": null,
366 - "generated": null,
367 - "identity": null,
368 - "name": "created_at",
369 - "entityType": "columns",
370 - "schema": "public",
371 - "table": "relay_dpop_proofs"
372 - },
373 - {
374 - "type": "varchar(64)",
375 - "typeSchema": null,
376 - "notNull": true,
377 - "dimensions": 0,
378 - "default": null,
379 - "generated": null,
380 - "identity": null,
381 - "name": "credential_id",
382 - "entityType": "columns",
383 - "schema": "public",
384 - "table": "relay_environment_credentials"
385 - },
386 - {
387 - "type": "varchar(191)",
388 - "typeSchema": null,
389 - "notNull": true,
390 - "dimensions": 0,
391 - "default": null,
392 - "generated": null,
393 - "identity": null,
394 - "name": "environment_id",
395 - "entityType": "columns",
396 - "schema": "public",
397 - "table": "relay_environment_credentials"
398 - },
399 - {
400 - "type": "text",
401 - "typeSchema": null,
402 - "notNull": true,
403 - "dimensions": 0,
404 - "default": null,
405 - "generated": null,
406 - "identity": null,
407 - "name": "environment_public_key",
408 - "entityType": "columns",
409 - "schema": "public",
410 - "table": "relay_environment_credentials"
411 - },
412 - {
413 - "type": "varchar(191)",
414 - "typeSchema": null,
415 - "notNull": true,
416 - "dimensions": 0,
417 - "default": null,
418 - "generated": null,
419 - "identity": null,
420 - "name": "credential_hash",
421 - "entityType": "columns",
422 - "schema": "public",
423 - "table": "relay_environment_credentials"
424 - },
425 - {
426 - "type": "varchar(64)",
427 - "typeSchema": null,
428 - "notNull": false,
429 - "dimensions": 0,
430 - "default": null,
431 - "generated": null,
432 - "identity": null,
433 - "name": "revoked_at",
434 - "entityType": "columns",
435 - "schema": "public",
436 - "table": "relay_environment_credentials"
437 - },
438 - {
439 - "type": "varchar(64)",
440 - "typeSchema": null,
441 - "notNull": true,
442 - "dimensions": 0,
443 - "default": null,
444 - "generated": null,
445 - "identity": null,
446 - "name": "created_at",
447 - "entityType": "columns",
448 - "schema": "public",
449 - "table": "relay_environment_credentials"
450 - },
451 - {
452 - "type": "varchar(64)",
453 - "typeSchema": null,
454 - "notNull": true,
455 - "dimensions": 0,
456 - "default": null,
457 - "generated": null,
458 - "identity": null,
459 - "name": "updated_at",
460 - "entityType": "columns",
461 - "schema": "public",
462 - "table": "relay_environment_credentials"
463 - },
464 - {
465 - "type": "varchar(191)",
466 - "typeSchema": null,
467 - "notNull": true,
468 - "dimensions": 0,
469 - "default": null,
470 - "generated": null,
471 - "identity": null,
472 - "name": "user_id",
473 - "entityType": "columns",
474 - "schema": "public",
475 - "table": "relay_environment_links"
476 - },
477 - {
478 - "type": "varchar(191)",
479 - "typeSchema": null,
480 - "notNull": true,
481 - "dimensions": 0,
482 - "default": null,
483 - "generated": null,
484 - "identity": null,
485 - "name": "environment_id",
486 - "entityType": "columns",
487 - "schema": "public",
488 - "table": "relay_environment_links"
489 - },
490 - {
491 - "type": "text",
492 - "typeSchema": null,
493 - "notNull": true,
494 - "dimensions": 0,
495 - "default": "'T3 Environment'",
496 - "generated": null,
497 - "identity": null,
498 - "name": "environment_label",
499 - "entityType": "columns",
500 - "schema": "public",
501 - "table": "relay_environment_links"
502 - },
503 - {
504 - "type": "text",
505 - "typeSchema": null,
506 - "notNull": true,
507 - "dimensions": 0,
508 - "default": null,
509 - "generated": null,
510 - "identity": null,
511 - "name": "environment_public_key",
512 - "entityType": "columns",
513 - "schema": "public",
514 - "table": "relay_environment_links"
515 - },
516 - {
517 - "type": "text",
518 - "typeSchema": null,
519 - "notNull": true,
520 - "dimensions": 0,
521 - "default": null,
522 - "generated": null,
523 - "identity": null,
524 - "name": "endpoint_http_base_url",
525 - "entityType": "columns",
526 - "schema": "public",
527 - "table": "relay_environment_links"
528 - },
529 - {
530 - "type": "text",
531 - "typeSchema": null,
532 - "notNull": true,
533 - "dimensions": 0,
534 - "default": null,
535 - "generated": null,
536 - "identity": null,
537 - "name": "endpoint_ws_base_url",
538 - "entityType": "columns",
539 - "schema": "public",
540 - "table": "relay_environment_links"
541 - },
542 - {
543 - "type": "varchar(32)",
544 - "typeSchema": null,
545 - "notNull": true,
546 - "dimensions": 0,
547 - "default": null,
548 - "generated": null,
549 - "identity": null,
550 - "name": "endpoint_provider_kind",
551 - "entityType": "columns",
552 - "schema": "public",
553 - "table": "relay_environment_links"
554 - },
555 - {
556 - "type": "boolean",
557 - "typeSchema": null,
558 - "notNull": true,
559 - "dimensions": 0,
560 - "default": "true",
561 - "generated": null,
562 - "identity": null,
563 - "name": "notifications_enabled",
564 - "entityType": "columns",
565 - "schema": "public",
566 - "table": "relay_environment_links"
567 - },
568 - {
569 - "type": "boolean",
570 - "typeSchema": null,
571 - "notNull": true,
572 - "dimensions": 0,
573 - "default": "true",
574 - "generated": null,
575 - "identity": null,
576 - "name": "live_activities_enabled",
577 - "entityType": "columns",
578 - "schema": "public",
579 - "table": "relay_environment_links"
580 - },
581 - {
582 - "type": "boolean",
583 - "typeSchema": null,
584 - "notNull": true,
585 - "dimensions": 0,
586 - "default": "false",
587 - "generated": null,
588 - "identity": null,
589 - "name": "managed_tunnels_enabled",
590 - "entityType": "columns",
591 - "schema": "public",
592 - "table": "relay_environment_links"
593 - },
594 - {
595 - "type": "varchar(191)",
596 - "typeSchema": null,
597 - "notNull": false,
598 - "dimensions": 0,
599 - "default": null,
600 - "generated": null,
601 - "identity": null,
602 - "name": "created_by_device_id",
603 - "entityType": "columns",
604 - "schema": "public",
605 - "table": "relay_environment_links"
606 - },
607 - {
608 - "type": "varchar(64)",
609 - "typeSchema": null,
610 - "notNull": false,
611 - "dimensions": 0,
612 - "default": null,
613 - "generated": null,
614 - "identity": null,
615 - "name": "revoked_at",
616 - "entityType": "columns",
617 - "schema": "public",
618 - "table": "relay_environment_links"
619 - },
620 - {
621 - "type": "varchar(64)",
622 - "typeSchema": null,
623 - "notNull": true,
624 - "dimensions": 0,
625 - "default": null,
626 - "generated": null,
627 - "identity": null,
628 - "name": "created_at",
629 - "entityType": "columns",
630 - "schema": "public",
631 - "table": "relay_environment_links"
632 - },
633 - {
634 - "type": "varchar(64)",
635 - "typeSchema": null,
636 - "notNull": true,
637 - "dimensions": 0,
638 - "default": null,
639 - "generated": null,
640 - "identity": null,
641 - "name": "updated_at",
642 - "entityType": "columns",
643 - "schema": "public",
644 - "table": "relay_environment_links"
645 - },
646 - {
647 - "type": "varchar(255)",
648 - "typeSchema": null,
649 - "notNull": true,
650 - "dimensions": 0,
651 - "default": null,
652 - "generated": null,
653 - "identity": null,
654 - "name": "user_id",
655 - "entityType": "columns",
656 - "schema": "public",
657 - "table": "relay_live_activities"
658 - },
659 - {
660 - "type": "varchar(255)",
661 - "typeSchema": null,
662 - "notNull": true,
663 - "dimensions": 0,
664 - "default": null,
665 - "generated": null,
666 - "identity": null,
667 - "name": "device_id",
668 - "entityType": "columns",
669 - "schema": "public",
670 - "table": "relay_live_activities"
671 - },
672 - {
673 - "type": "text",
674 - "typeSchema": null,
675 - "notNull": false,
676 - "dimensions": 0,
677 - "default": null,
678 - "generated": null,
679 - "identity": null,
680 - "name": "activity_push_token",
681 - "entityType": "columns",
682 - "schema": "public",
683 - "table": "relay_live_activities"
684 - },
685 - {
686 - "type": "varchar(64)",
687 - "typeSchema": null,
688 - "notNull": false,
689 - "dimensions": 0,
690 - "default": null,
691 - "generated": null,
692 - "identity": null,
693 - "name": "remote_start_queued_at",
694 - "entityType": "columns",
695 - "schema": "public",
696 - "table": "relay_live_activities"
697 - },
698 - {
699 - "type": "varchar(64)",
700 - "typeSchema": null,
701 - "notNull": false,
702 - "dimensions": 0,
703 - "default": null,
704 - "generated": null,
705 - "identity": null,
706 - "name": "remote_started_at",
707 - "entityType": "columns",
708 - "schema": "public",
709 - "table": "relay_live_activities"
710 - },
711 - {
712 - "type": "varchar(64)",
713 - "typeSchema": null,
714 - "notNull": false,
715 - "dimensions": 0,
716 - "default": null,
717 - "generated": null,
718 - "identity": null,
719 - "name": "ended_at",
720 - "entityType": "columns",
721 - "schema": "public",
722 - "table": "relay_live_activities"
723 - },
724 - {
725 - "type": "jsonb",
726 - "typeSchema": null,
727 - "notNull": false,
728 - "dimensions": 0,
729 - "default": null,
730 - "generated": null,
731 - "identity": null,
732 - "name": "last_aggregate_json",
733 - "entityType": "columns",
734 - "schema": "public",
735 - "table": "relay_live_activities"
736 - },
737 - {
738 - "type": "varchar(64)",
739 - "typeSchema": null,
740 - "notNull": false,
741 - "dimensions": 0,
742 - "default": null,
743 - "generated": null,
744 - "identity": null,
745 - "name": "last_live_activity_delivery_at",
746 - "entityType": "columns",
747 - "schema": "public",
748 - "table": "relay_live_activities"
749 - },
750 - {
751 - "type": "varchar(64)",
752 - "typeSchema": null,
753 - "notNull": true,
754 - "dimensions": 0,
755 - "default": null,
756 - "generated": null,
757 - "identity": null,
758 - "name": "created_at",
759 - "entityType": "columns",
760 - "schema": "public",
761 - "table": "relay_live_activities"
762 - },
763 - {
764 - "type": "varchar(64)",
765 - "typeSchema": null,
766 - "notNull": true,
767 - "dimensions": 0,
768 - "default": null,
769 - "generated": null,
770 - "identity": null,
771 - "name": "updated_at",
772 - "entityType": "columns",
773 - "schema": "public",
774 - "table": "relay_live_activities"
775 - },
776 - {
777 - "type": "varchar(191)",
778 - "typeSchema": null,
779 - "notNull": true,
780 - "dimensions": 0,
781 - "default": null,
782 - "generated": null,
783 - "identity": null,
784 - "name": "user_id",
785 - "entityType": "columns",
786 - "schema": "public",
787 - "table": "relay_managed_endpoint_allocations"
788 - },
789 - {
790 - "type": "varchar(191)",
791 - "typeSchema": null,
792 - "notNull": true,
793 - "dimensions": 0,
794 - "default": null,
795 - "generated": null,
796 - "identity": null,
797 - "name": "environment_id",
798 - "entityType": "columns",
799 - "schema": "public",
800 - "table": "relay_managed_endpoint_allocations"
801 - },
802 - {
803 - "type": "text",
804 - "typeSchema": null,
805 - "notNull": true,
806 - "dimensions": 0,
807 - "default": null,
808 - "generated": null,
809 - "identity": null,
810 - "name": "hostname",
811 - "entityType": "columns",
812 - "schema": "public",
813 - "table": "relay_managed_endpoint_allocations"
814 - },
815 - {
816 - "type": "varchar(191)",
817 - "typeSchema": null,
818 - "notNull": false,
819 - "dimensions": 0,
820 - "default": null,
821 - "generated": null,
822 - "identity": null,
823 - "name": "tunnel_id",
824 - "entityType": "columns",
825 - "schema": "public",
826 - "table": "relay_managed_endpoint_allocations"
827 - },
828 - {
829 - "type": "text",
830 - "typeSchema": null,
831 - "notNull": true,
832 - "dimensions": 0,
833 - "default": null,
834 - "generated": null,
835 - "identity": null,
836 - "name": "tunnel_name",
837 - "entityType": "columns",
838 - "schema": "public",
839 - "table": "relay_managed_endpoint_allocations"
840 - },
841 - {
842 - "type": "varchar(191)",
843 - "typeSchema": null,
844 - "notNull": false,
845 - "dimensions": 0,
846 - "default": null,
847 - "generated": null,
848 - "identity": null,
849 - "name": "dns_record_id",
850 - "entityType": "columns",
851 - "schema": "public",
852 - "table": "relay_managed_endpoint_allocations"
853 - },
854 - {
855 - "type": "varchar(64)",
856 - "typeSchema": null,
857 - "notNull": false,
858 - "dimensions": 0,
859 - "default": null,
860 - "generated": null,
861 - "identity": null,
862 - "name": "ready_at",
863 - "entityType": "columns",
864 - "schema": "public",
865 - "table": "relay_managed_endpoint_allocations"
866 - },
867 - {
868 - "type": "varchar(64)",
869 - "typeSchema": null,
870 - "notNull": true,
871 - "dimensions": 0,
872 - "default": null,
873 - "generated": null,
874 - "identity": null,
875 - "name": "created_at",
876 - "entityType": "columns",
877 - "schema": "public",
878 - "table": "relay_managed_endpoint_allocations"
879 - },
880 - {
881 - "type": "varchar(64)",
882 - "typeSchema": null,
883 - "notNull": true,
884 - "dimensions": 0,
885 - "default": null,
886 - "generated": null,
887 - "identity": null,
888 - "name": "updated_at",
889 - "entityType": "columns",
890 - "schema": "public",
891 - "table": "relay_managed_endpoint_allocations"
892 - },
893 - {
894 - "type": "varchar(191)",
895 - "typeSchema": null,
896 - "notNull": true,
897 - "dimensions": 0,
898 - "default": null,
899 - "generated": null,
900 - "identity": null,
901 - "name": "user_id",
902 - "entityType": "columns",
903 - "schema": "public",
904 - "table": "relay_managed_tunnel_limits"
905 - },
906 - {
907 - "type": "integer",
908 - "typeSchema": null,
909 - "notNull": true,
910 - "dimensions": 0,
911 - "default": null,
912 - "generated": null,
913 - "identity": null,
914 - "name": "max_tunnels",
915 - "entityType": "columns",
916 - "schema": "public",
917 - "table": "relay_managed_tunnel_limits"
918 - },
919 - {
920 - "type": "varchar(64)",
921 - "typeSchema": null,
922 - "notNull": true,
923 - "dimensions": 0,
924 - "default": null,
925 - "generated": null,
926 - "identity": null,
927 - "name": "created_at",
928 - "entityType": "columns",
929 - "schema": "public",
930 - "table": "relay_managed_tunnel_limits"
931 - },
932 - {
933 - "type": "varchar(64)",
934 - "typeSchema": null,
935 - "notNull": true,
936 - "dimensions": 0,
937 - "default": null,
938 - "generated": null,
939 - "identity": null,
940 - "name": "updated_at",
941 - "entityType": "columns",
942 - "schema": "public",
943 - "table": "relay_managed_tunnel_limits"
944 - },
945 - {
946 - "type": "varchar(255)",
947 - "typeSchema": null,
948 - "notNull": true,
949 - "dimensions": 0,
950 - "default": null,
951 - "generated": null,
952 - "identity": null,
953 - "name": "user_id",
954 - "entityType": "columns",
955 - "schema": "public",
956 - "table": "relay_mobile_devices"
957 - },
958 - {
959 - "type": "varchar(255)",
960 - "typeSchema": null,
961 - "notNull": true,
962 - "dimensions": 0,
963 - "default": null,
964 - "generated": null,
965 - "identity": null,
966 - "name": "device_id",
967 - "entityType": "columns",
968 - "schema": "public",
969 - "table": "relay_mobile_devices"
970 - },
971 - {
972 - "type": "text",
973 - "typeSchema": null,
974 - "notNull": true,
975 - "dimensions": 0,
976 - "default": "'iOS device'",
977 - "generated": null,
978 - "identity": null,
979 - "name": "label",
980 - "entityType": "columns",
981 - "schema": "public",
982 - "table": "relay_mobile_devices"
983 - },
984 - {
985 - "type": "varchar(16)",
986 - "typeSchema": null,
987 - "notNull": true,
988 - "dimensions": 0,
989 - "default": null,
990 - "generated": null,
991 - "identity": null,
992 - "name": "platform",
993 - "entityType": "columns",
994 - "schema": "public",
995 - "table": "relay_mobile_devices"
996 - },
997 - {
998 - "type": "integer",
999 - "typeSchema": null,
1000 - "notNull": false,
1001 - "dimensions": 0,
1002 - "default": null,
1003 - "generated": null,
1004 - "identity": null,
1005 - "name": "ios_major_version",
1006 - "entityType": "columns",
1007 - "schema": "public",
1008 - "table": "relay_mobile_devices"
1009 - },
1010 - {
1011 - "type": "integer",
1012 - "typeSchema": null,
1013 - "notNull": false,
1014 - "dimensions": 0,
1015 - "default": null,
1016 - "generated": null,
1017 - "identity": null,
1018 - "name": "android_api_level",
1019 - "entityType": "columns",
1020 - "schema": "public",
1021 - "table": "relay_mobile_devices"
1022 - },
1023 - {
1024 - "type": "varchar(64)",
1025 - "typeSchema": null,
1026 - "notNull": false,
1027 - "dimensions": 0,
1028 - "default": null,
1029 - "generated": null,
1030 - "identity": null,
1031 - "name": "app_version",
1032 - "entityType": "columns",
1033 - "schema": "public",
1034 - "table": "relay_mobile_devices"
1035 - },
1036 - {
1037 - "type": "varchar(255)",
1038 - "typeSchema": null,
1039 - "notNull": false,
1040 - "dimensions": 0,
1041 - "default": null,
1042 - "generated": null,
1043 - "identity": null,
1044 - "name": "bundle_id",
1045 - "entityType": "columns",
1046 - "schema": "public",
1047 - "table": "relay_mobile_devices"
1048 - },
1049 - {
1050 - "type": "varchar(16)",
1051 - "typeSchema": null,
1052 - "notNull": false,
1053 - "dimensions": 0,
1054 - "default": null,
1055 - "generated": null,
1056 - "identity": null,
1057 - "name": "aps_environment",
1058 - "entityType": "columns",
1059 - "schema": "public",
1060 - "table": "relay_mobile_devices"
1061 - },
1062 - {
1063 - "type": "text",
1064 - "typeSchema": null,
1065 - "notNull": false,
1066 - "dimensions": 0,
1067 - "default": null,
1068 - "generated": null,
1069 - "identity": null,
1070 - "name": "push_token",
1071 - "entityType": "columns",
1072 - "schema": "public",
1073 - "table": "relay_mobile_devices"
1074 - },
1075 - {
1076 - "type": "text",
1077 - "typeSchema": null,
1078 - "notNull": false,
1079 - "dimensions": 0,
1080 - "default": null,
1081 - "generated": null,
1082 - "identity": null,
1083 - "name": "push_to_start_token",
1084 - "entityType": "columns",
1085 - "schema": "public",
1086 - "table": "relay_mobile_devices"
1087 - },
1088 - {
1089 - "type": "jsonb",
1090 - "typeSchema": null,
1091 - "notNull": true,
1092 - "dimensions": 0,
1093 - "default": null,
1094 - "generated": null,
1095 - "identity": null,
1096 - "name": "preferences_json",
1097 - "entityType": "columns",
1098 - "schema": "public",
1099 - "table": "relay_mobile_devices"
1100 - },
1101 - {
1102 - "type": "varchar(64)",
1103 - "typeSchema": null,
1104 - "notNull": true,
1105 - "dimensions": 0,
1106 - "default": null,
1107 - "generated": null,
1108 - "identity": null,
1109 - "name": "created_at",
1110 - "entityType": "columns",
1111 - "schema": "public",
1112 - "table": "relay_mobile_devices"
1113 - },
1114 - {
1115 - "type": "varchar(64)",
1116 - "typeSchema": null,
1117 - "notNull": true,
1118 - "dimensions": 0,
1119 - "default": null,
1120 - "generated": null,
1121 - "identity": null,
1122 - "name": "updated_at",
1123 - "entityType": "columns",
1124 - "schema": "public",
1125 - "table": "relay_mobile_devices"
1126 - },
1127 - {
1128 - "nameExplicit": true,
1129 - "columns": [
1130 - {
1131 - "value": "updated_at",
1132 - "isExpression": false,
1133 - "asc": true,
1134 - "nullsFirst": false,
1135 - "opclass": null
1136 - }
9 + "statementType": "alter_column",
10 + "statementTarget": ["column", "public", "relay_agent_activity_rows", "thread_id"],
11 + "writes": [
12 + "s|colprop|public.relay_agent_activity_rows.thread_id.type",
13 + "s|colprop|public.relay_agent_activity_rows.thread_id.default"
14 ],
1138 - "isUnique": false,
1139 - "where": null,
1140 - "with": "",
1141 - "method": "btree",
1142 - "concurrently": false,
1143 - "name": "idx_relay_agent_activity_rows_updated",
1144 - "entityType": "indexes",
1145 - "schema": "public",
1146 - "table": "relay_agent_activity_rows"
1147 - },
1148 - {
1149 - "nameExplicit": true,
1150 - "columns": [
1151 - {
1152 - "value": "environment_id",
1153 - "isExpression": false,
1154 - "asc": true,
1155 - "nullsFirst": false,
1156 - "opclass": null
1157 - },
1158 - {
1159 - "value": "thread_id",
1160 - "isExpression": false,
1161 - "asc": true,
1162 - "nullsFirst": false,
1163 - "opclass": null
1164 - },
1165 - {
1166 - "value": "created_at",
1167 - "isExpression": false,
1168 - "asc": true,
1169 - "nullsFirst": false,
1170 - "opclass": null
1171 - }
15 + "reads": [
16 + "n|tbl|public.relay_agent_activity_rows",
17 + "n|sch|public",
18 + "n|col|public.relay_agent_activity_rows.thread_id"
19 ],
1173 - "isUnique": false,
1174 - "where": null,
1175 - "with": "",
1176 - "method": "btree",
1177 - "concurrently": false,
1178 - "name": "idx_relay_delivery_attempts_environment",
1179 - "entityType": "indexes",
1180 - "schema": "public",
1181 - "table": "relay_delivery_attempts"
20 + "sqlHash": "df6de7390e33e593"
21 },
22 {
1184 - "nameExplicit": true,
1185 - "columns": [
1186 - {
1187 - "value": "source_job_id",
1188 - "isExpression": false,
1189 - "asc": true,
1190 - "nullsFirst": false,
1191 - "opclass": null
1192 - }
23 + "statementType": "alter_column",
24 + "statementTarget": ["column", "public", "relay_delivery_attempts", "thread_id"],
25 + "writes": [
26 + "s|colprop|public.relay_delivery_attempts.thread_id.type",
27 + "s|colprop|public.relay_delivery_attempts.thread_id.default"
28 ],
1194 - "isUnique": true,
1195 - "where": null,
1196 - "with": "",
1197 - "method": "btree",
1198 - "concurrently": false,
1199 - "name": "idx_relay_delivery_attempts_source_job",
1200 - "entityType": "indexes",
1201 - "schema": "public",
1202 - "table": "relay_delivery_attempts"
1203 - },
1204 - {
1205 - "nameExplicit": true,
1206 - "columns": [
1207 - {
1208 - "value": "expires_at",
1209 - "isExpression": false,
1210 - "asc": true,
1211 - "nullsFirst": false,
1212 - "opclass": null
1213 - }
1214 - ],
1215 - "isUnique": false,
1216 - "where": null,
1217 - "with": "",
1218 - "method": "btree",
1219 - "concurrently": false,
1220 - "name": "idx_relay_dpop_proofs_expires_at",
1221 - "entityType": "indexes",
1222 - "schema": "public",
1223 - "table": "relay_dpop_proofs"
1224 - },
1225 - {
1226 - "nameExplicit": true,
1227 - "columns": [
1228 - {
1229 - "value": "credential_hash",
1230 - "isExpression": false,
1231 - "asc": true,
1232 - "nullsFirst": false,
1233 - "opclass": null
1234 - }
29 + "reads": [
30 + "n|tbl|public.relay_delivery_attempts",
31 + "n|sch|public",
32 + "n|col|public.relay_delivery_attempts.thread_id"
33 ],
1236 - "isUnique": true,
1237 - "where": null,
1238 - "with": "",
1239 - "method": "btree",
1240 - "concurrently": false,
1241 - "name": "idx_relay_environment_credentials_hash",
1242 - "entityType": "indexes",
1243 - "schema": "public",
1244 - "table": "relay_environment_credentials"
1245 - },
1246 - {
1247 - "nameExplicit": true,
1248 - "columns": [
1249 - {
1250 - "value": "environment_id",
1251 - "isExpression": false,
1252 - "asc": true,
1253 - "nullsFirst": false,
1254 - "opclass": null
1255 - },
1256 - {
1257 - "value": "revoked_at",
1258 - "isExpression": false,
1259 - "asc": true,
1260 - "nullsFirst": false,
1261 - "opclass": null
1262 - }
1263 - ],
1264 - "isUnique": false,
1265 - "where": null,
1266 - "with": "",
1267 - "method": "btree",
1268 - "concurrently": false,
1269 - "name": "idx_relay_environment_credentials_environment",
1270 - "entityType": "indexes",
1271 - "schema": "public",
1272 - "table": "relay_environment_credentials"
1273 - },
1274 - {
1275 - "nameExplicit": true,
1276 - "columns": [
1277 - {
1278 - "value": "environment_id",
1279 - "isExpression": false,
1280 - "asc": true,
1281 - "nullsFirst": false,
1282 - "opclass": null
1283 - },
1284 - {
1285 - "value": "environment_public_key",
1286 - "isExpression": false,
1287 - "asc": true,
1288 - "nullsFirst": false,
1289 - "opclass": null
1290 - },
1291 - {
1292 - "value": "revoked_at",
1293 - "isExpression": false,
1294 - "asc": true,
1295 - "nullsFirst": false,
1296 - "opclass": null
1297 - }
1298 - ],
1299 - "isUnique": false,
1300 - "where": null,
1301 - "with": "",
1302 - "method": "btree",
1303 - "concurrently": false,
1304 - "name": "idx_relay_environment_credentials_environment_key",
1305 - "entityType": "indexes",
1306 - "schema": "public",
1307 - "table": "relay_environment_credentials"
1308 - },
1309 - {
1310 - "nameExplicit": true,
1311 - "columns": [
1312 - {
1313 - "value": "environment_id",
1314 - "isExpression": false,
1315 - "asc": true,
1316 - "nullsFirst": false,
1317 - "opclass": null
1318 - },
1319 - {
1320 - "value": "revoked_at",
1321 - "isExpression": false,
1322 - "asc": true,
1323 - "nullsFirst": false,
1324 - "opclass": null
1325 - }
1326 - ],
1327 - "isUnique": false,
1328 - "where": null,
1329 - "with": "",
1330 - "method": "btree",
1331 - "concurrently": false,
1332 - "name": "idx_relay_environment_links_environment",
1333 - "entityType": "indexes",
1334 - "schema": "public",
1335 - "table": "relay_environment_links"
1336 - },
1337 - {
1338 - "nameExplicit": true,
1339 - "columns": [
1340 - {
1341 - "value": "activity_push_token",
1342 - "isExpression": false,
1343 - "asc": true,
1344 - "nullsFirst": false,
1345 - "opclass": null
1346 - }
1347 - ],
1348 - "isUnique": true,
1349 - "where": null,
1350 - "with": "",
1351 - "method": "btree",
1352 - "concurrently": false,
1353 - "name": "idx_relay_live_activities_activity_push_token",
1354 - "entityType": "indexes",
1355 - "schema": "public",
1356 - "table": "relay_live_activities"
1357 - },
1358 - {
1359 - "nameExplicit": true,
1360 - "columns": [
1361 - {
1362 - "value": "hostname",
1363 - "isExpression": false,
1364 - "asc": true,
1365 - "nullsFirst": false,
1366 - "opclass": null
1367 - }
1368 - ],
1369 - "isUnique": true,
1370 - "where": null,
1371 - "with": "",
1372 - "method": "btree",
1373 - "concurrently": false,
1374 - "name": "idx_relay_managed_endpoint_allocations_hostname",
1375 - "entityType": "indexes",
1376 - "schema": "public",
1377 - "table": "relay_managed_endpoint_allocations"
1378 - },
1379 - {
1380 - "nameExplicit": true,
1381 - "columns": [
1382 - {
1383 - "value": "tunnel_name",
1384 - "isExpression": false,
1385 - "asc": true,
1386 - "nullsFirst": false,
1387 - "opclass": null
1388 - }
1389 - ],
1390 - "isUnique": true,
1391 - "where": null,
1392 - "with": "",
1393 - "method": "btree",
1394 - "concurrently": false,
1395 - "name": "idx_relay_managed_endpoint_allocations_tunnel_name",
1396 - "entityType": "indexes",
1397 - "schema": "public",
1398 - "table": "relay_managed_endpoint_allocations"
1399 - },
1400 - {
1401 - "nameExplicit": true,
1402 - "columns": [
1403 - {
1404 - "value": "push_token",
1405 - "isExpression": false,
1406 - "asc": true,
1407 - "nullsFirst": false,
1408 - "opclass": null
1409 - }
1410 - ],
1411 - "isUnique": true,
1412 - "where": null,
1413 - "with": "",
1414 - "method": "btree",
1415 - "concurrently": false,
1416 - "name": "idx_relay_mobile_devices_push_token",
1417 - "entityType": "indexes",
1418 - "schema": "public",
1419 - "table": "relay_mobile_devices"
1420 - },
1421 - {
1422 - "nameExplicit": true,
1423 - "columns": [
1424 - {
1425 - "value": "push_to_start_token",
1426 - "isExpression": false,
1427 - "asc": true,
1428 - "nullsFirst": false,
1429 - "opclass": null
1430 - }
1431 - ],
1432 - "isUnique": true,
1433 - "where": null,
1434 - "with": "",
1435 - "method": "btree",
1436 - "concurrently": false,
1437 - "name": "idx_relay_mobile_devices_push_to_start_token",
1438 - "entityType": "indexes",
1439 - "schema": "public",
1440 - "table": "relay_mobile_devices"
1441 - },
1442 - {
1443 - "columns": ["environment_id", "environment_public_key", "thread_id"],
1444 - "nameExplicit": false,
1445 - "name": "relay_agent_activity_rows_pkey",
1446 - "entityType": "pks",
1447 - "schema": "public",
1448 - "table": "relay_agent_activity_rows"
1449 - },
1450 - {
1451 - "columns": ["thumbprint", "jti"],
1452 - "nameExplicit": false,
1453 - "name": "relay_dpop_proofs_pkey",
1454 - "entityType": "pks",
1455 - "schema": "public",
1456 - "table": "relay_dpop_proofs"
1457 - },
1458 - {
1459 - "columns": ["user_id", "environment_id"],
1460 - "nameExplicit": false,
1461 - "name": "relay_environment_links_pkey",
1462 - "entityType": "pks",
1463 - "schema": "public",
1464 - "table": "relay_environment_links"
1465 - },
1466 - {
1467 - "columns": ["user_id", "device_id"],
1468 - "nameExplicit": false,
1469 - "name": "relay_live_activities_pkey",
1470 - "entityType": "pks",
1471 - "schema": "public",
1472 - "table": "relay_live_activities"
1473 - },
1474 - {
1475 - "columns": ["user_id", "environment_id"],
1476 - "nameExplicit": false,
1477 - "name": "relay_managed_endpoint_allocations_pkey",
1478 - "entityType": "pks",
1479 - "schema": "public",
1480 - "table": "relay_managed_endpoint_allocations"
1481 - },
1482 - {
1483 - "columns": ["user_id", "device_id"],
1484 - "nameExplicit": false,
1485 - "name": "relay_mobile_devices_pkey",
1486 - "entityType": "pks",
1487 - "schema": "public",
1488 - "table": "relay_mobile_devices"
1489 - },
1490 - {
1491 - "columns": ["id"],
1492 - "nameExplicit": false,
1493 - "name": "relay_delivery_attempts_pkey",
1494 - "schema": "public",
1495 - "table": "relay_delivery_attempts",
1496 - "entityType": "pks"
1497 - },
34 + "sqlHash": "81b2354fef2a0f7e"
35 + }
36 + ],
37 + "deltas": [
38 {
1499 - "columns": ["credential_id"],
1500 - "nameExplicit": false,
1501 - "name": "relay_environment_credentials_pkey",
1502 - "schema": "public",
1503 - "table": "relay_environment_credentials",
1504 - "entityType": "pks"
39 + "op": "alter",
40 + "key": "columns\u0000[\"public\",\"relay_agent_activity_rows\",\"thread_id\"]",
41 + "set": {
42 + "type": "varchar(512)"
43 + }
44 },
45 {
1507 - "columns": ["user_id"],
1508 - "nameExplicit": false,
1509 - "name": "relay_managed_tunnel_limits_pkey",
1510 - "schema": "public",
1511 - "table": "relay_managed_tunnel_limits",
1512 - "entityType": "pks"
46 + "op": "alter",
47 + "key": "columns\u0000[\"public\",\"relay_delivery_attempts\",\"thread_id\"]",
48 + "set": {
49 + "type": "varchar(512)"
50 + }
51 }
1514 - ],
1515 - "renames": []
52 + ]
53 }
infra/relay/migrations/postgres/20260919015455_managed_endpoint_recovery/snapshot.json
+106 -1549
@@ -1,1568 +1,125 @@
1 {
2 + "type": "diff",
3 + "version": "9",
4 "dialect": "postgres",
5 "id": "3809c51e-3821-4a08-818d-e5d28dd3e9b4",
6 "prevIds": ["4b6d0d21-8d78-4499-9dde-b42bcf633d05"],
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_managed_endpoint_allocations",
46 - "entityType": "tables",
47 - "schema": "public"
48 - },
49 - {
50 - "isRlsEnabled": false,
51 - "name": "relay_managed_tunnel_limits",
52 - "entityType": "tables",
53 - "schema": "public"
54 - },
55 - {
56 - "isRlsEnabled": false,
57 - "name": "relay_mobile_devices",
58 - "entityType": "tables",
59 - "schema": "public"
60 - },
61 - {
62 - "type": "varchar(191)",
63 - "typeSchema": null,
64 - "notNull": true,
65 - "dimensions": 0,
66 - "default": null,
67 - "generated": null,
68 - "identity": null,
69 - "name": "environment_id",
70 - "entityType": "columns",
71 - "schema": "public",
72 - "table": "relay_agent_activity_rows"
73 - },
74 - {
75 - "type": "text",
76 - "typeSchema": null,
77 - "notNull": true,
78 - "dimensions": 0,
79 - "default": null,
80 - "generated": null,
81 - "identity": null,
82 - "name": "environment_public_key",
83 - "entityType": "columns",
84 - "schema": "public",
85 - "table": "relay_agent_activity_rows"
86 - },
87 - {
88 - "type": "varchar(512)",
89 - "typeSchema": null,
90 - "notNull": true,
91 - "dimensions": 0,
92 - "default": null,
93 - "generated": null,
94 - "identity": null,
95 - "name": "thread_id",
96 - "entityType": "columns",
97 - "schema": "public",
98 - "table": "relay_agent_activity_rows"
99 - },
100 - {
101 - "type": "jsonb",
102 - "typeSchema": null,
103 - "notNull": true,
104 - "dimensions": 0,
105 - "default": null,
106 - "generated": null,
107 - "identity": null,
108 - "name": "state_json",
109 - "entityType": "columns",
110 - "schema": "public",
111 - "table": "relay_agent_activity_rows"
112 - },
113 - {
114 - "type": "varchar(64)",
115 - "typeSchema": null,
116 - "notNull": true,
117 - "dimensions": 0,
118 - "default": null,
119 - "generated": null,
120 - "identity": null,
121 - "name": "updated_at",
122 - "entityType": "columns",
123 - "schema": "public",
124 - "table": "relay_agent_activity_rows"
125 - },
126 - {
127 - "type": "varchar(64)",
128 - "typeSchema": null,
129 - "notNull": true,
130 - "dimensions": 0,
131 - "default": null,
132 - "generated": null,
133 - "identity": null,
134 - "name": "created_at",
135 - "entityType": "columns",
136 - "schema": "public",
137 - "table": "relay_agent_activity_rows"
138 - },
139 - {
140 - "type": "varchar(36)",
141 - "typeSchema": null,
142 - "notNull": true,
143 - "dimensions": 0,
144 - "default": null,
145 - "generated": null,
146 - "identity": null,
147 - "name": "id",
148 - "entityType": "columns",
149 - "schema": "public",
150 - "table": "relay_delivery_attempts"
151 - },
152 - {
153 - "type": "varchar(64)",
154 - "typeSchema": null,
155 - "notNull": true,
156 - "dimensions": 0,
157 - "default": null,
158 - "generated": null,
159 - "identity": null,
160 - "name": "created_at",
161 - "entityType": "columns",
162 - "schema": "public",
163 - "table": "relay_delivery_attempts"
164 - },
165 - {
166 - "type": "varchar(255)",
167 - "typeSchema": null,
168 - "notNull": false,
169 - "dimensions": 0,
170 - "default": null,
171 - "generated": null,
172 - "identity": null,
173 - "name": "user_id",
174 - "entityType": "columns",
175 - "schema": "public",
176 - "table": "relay_delivery_attempts"
177 - },
178 - {
179 - "type": "varchar(191)",
180 - "typeSchema": null,
181 - "notNull": false,
182 - "dimensions": 0,
183 - "default": null,
184 - "generated": null,
185 - "identity": null,
186 - "name": "environment_id",
187 - "entityType": "columns",
188 - "schema": "public",
189 - "table": "relay_delivery_attempts"
190 - },
191 - {
192 - "type": "varchar(512)",
193 - "typeSchema": null,
194 - "notNull": false,
195 - "dimensions": 0,
196 - "default": null,
197 - "generated": null,
198 - "identity": null,
199 - "name": "thread_id",
200 - "entityType": "columns",
201 - "schema": "public",
202 - "table": "relay_delivery_attempts"
203 - },
204 - {
205 - "type": "varchar(255)",
206 - "typeSchema": null,
207 - "notNull": false,
208 - "dimensions": 0,
209 - "default": null,
210 - "generated": null,
211 - "identity": null,
212 - "name": "device_id",
213 - "entityType": "columns",
214 - "schema": "public",
215 - "table": "relay_delivery_attempts"
216 - },
217 - {
218 - "type": "varchar(64)",
219 - "typeSchema": null,
220 - "notNull": true,
221 - "dimensions": 0,
222 - "default": null,
223 - "generated": null,
224 - "identity": null,
225 - "name": "kind",
226 - "entityType": "columns",
227 - "schema": "public",
228 - "table": "relay_delivery_attempts"
229 - },
230 - {
231 - "type": "varchar(64)",
232 - "typeSchema": null,
233 - "notNull": false,
234 - "dimensions": 0,
235 - "default": null,
236 - "generated": null,
237 - "identity": null,
238 - "name": "source_job_id",
239 - "entityType": "columns",
240 - "schema": "public",
241 - "table": "relay_delivery_attempts"
242 - },
243 - {
244 - "type": "varchar(16)",
245 - "typeSchema": null,
246 - "notNull": false,
247 - "dimensions": 0,
248 - "default": null,
249 - "generated": null,
250 - "identity": null,
251 - "name": "token_suffix",
252 - "entityType": "columns",
253 - "schema": "public",
254 - "table": "relay_delivery_attempts"
255 - },
256 - {
257 - "type": "integer",
258 - "typeSchema": null,
259 - "notNull": false,
260 - "dimensions": 0,
261 - "default": null,
262 - "generated": null,
263 - "identity": null,
264 - "name": "apns_status",
265 - "entityType": "columns",
266 - "schema": "public",
267 - "table": "relay_delivery_attempts"
268 - },
269 - {
270 - "type": "text",
271 - "typeSchema": null,
272 - "notNull": false,
273 - "dimensions": 0,
274 - "default": null,
275 - "generated": null,
276 - "identity": null,
277 - "name": "apns_reason",
278 - "entityType": "columns",
279 - "schema": "public",
280 - "table": "relay_delivery_attempts"
281 - },
282 - {
283 - "type": "varchar(128)",
284 - "typeSchema": null,
285 - "notNull": false,
286 - "dimensions": 0,
287 - "default": null,
288 - "generated": null,
289 - "identity": null,
290 - "name": "apns_id",
291 - "entityType": "columns",
292 - "schema": "public",
293 - "table": "relay_delivery_attempts"
294 - },
295 - {
296 - "type": "text",
297 - "typeSchema": null,
298 - "notNull": false,
299 - "dimensions": 0,
300 - "default": null,
301 - "generated": null,
302 - "identity": null,
303 - "name": "transport_error",
304 - "entityType": "columns",
305 - "schema": "public",
306 - "table": "relay_delivery_attempts"
307 - },
308 - {
309 - "type": "varchar(128)",
310 - "typeSchema": null,
311 - "notNull": true,
312 - "dimensions": 0,
313 - "default": null,
314 - "generated": null,
315 - "identity": null,
316 - "name": "thumbprint",
317 - "entityType": "columns",
318 - "schema": "public",
319 - "table": "relay_dpop_proofs"
320 - },
321 - {
322 - "type": "varchar(255)",
323 - "typeSchema": null,
324 - "notNull": true,
325 - "dimensions": 0,
326 - "default": null,
327 - "generated": null,
328 - "identity": null,
329 - "name": "jti",
330 - "entityType": "columns",
331 - "schema": "public",
332 - "table": "relay_dpop_proofs"
333 - },
334 - {
335 - "type": "integer",
336 - "typeSchema": null,
337 - "notNull": true,
338 - "dimensions": 0,
339 - "default": null,
340 - "generated": null,
341 - "identity": null,
342 - "name": "iat",
343 - "entityType": "columns",
344 - "schema": "public",
345 - "table": "relay_dpop_proofs"
346 - },
347 - {
348 - "type": "varchar(64)",
349 - "typeSchema": null,
350 - "notNull": true,
351 - "dimensions": 0,
352 - "default": null,
353 - "generated": null,
354 - "identity": null,
355 - "name": "expires_at",
356 - "entityType": "columns",
357 - "schema": "public",
358 - "table": "relay_dpop_proofs"
359 - },
360 - {
361 - "type": "varchar(64)",
362 - "typeSchema": null,
363 - "notNull": true,
364 - "dimensions": 0,
365 - "default": null,
366 - "generated": null,
367 - "identity": null,
368 - "name": "created_at",
369 - "entityType": "columns",
370 - "schema": "public",
371 - "table": "relay_dpop_proofs"
372 - },
373 - {
374 - "type": "varchar(64)",
375 - "typeSchema": null,
376 - "notNull": true,
377 - "dimensions": 0,
378 - "default": null,
379 - "generated": null,
380 - "identity": null,
381 - "name": "credential_id",
382 - "entityType": "columns",
383 - "schema": "public",
384 - "table": "relay_environment_credentials"
385 - },
386 - {
387 - "type": "varchar(191)",
388 - "typeSchema": null,
389 - "notNull": true,
390 - "dimensions": 0,
391 - "default": null,
392 - "generated": null,
393 - "identity": null,
394 - "name": "environment_id",
395 - "entityType": "columns",
396 - "schema": "public",
397 - "table": "relay_environment_credentials"
398 - },
399 - {
400 - "type": "text",
401 - "typeSchema": null,
402 - "notNull": true,
403 - "dimensions": 0,
404 - "default": null,
405 - "generated": null,
406 - "identity": null,
407 - "name": "environment_public_key",
408 - "entityType": "columns",
409 - "schema": "public",
410 - "table": "relay_environment_credentials"
411 - },
412 - {
413 - "type": "varchar(191)",
414 - "typeSchema": null,
415 - "notNull": true,
416 - "dimensions": 0,
417 - "default": null,
418 - "generated": null,
419 - "identity": null,
420 - "name": "credential_hash",
421 - "entityType": "columns",
422 - "schema": "public",
423 - "table": "relay_environment_credentials"
424 - },
425 - {
426 - "type": "varchar(64)",
427 - "typeSchema": null,
428 - "notNull": false,
429 - "dimensions": 0,
430 - "default": null,
431 - "generated": null,
432 - "identity": null,
433 - "name": "revoked_at",
434 - "entityType": "columns",
435 - "schema": "public",
436 - "table": "relay_environment_credentials"
437 - },
438 - {
439 - "type": "varchar(64)",
440 - "typeSchema": null,
441 - "notNull": true,
442 - "dimensions": 0,
443 - "default": null,
444 - "generated": null,
445 - "identity": null,
446 - "name": "created_at",
447 - "entityType": "columns",
448 - "schema": "public",
449 - "table": "relay_environment_credentials"
450 - },
451 - {
452 - "type": "varchar(64)",
453 - "typeSchema": null,
454 - "notNull": true,
455 - "dimensions": 0,
456 - "default": null,
457 - "generated": null,
458 - "identity": null,
459 - "name": "updated_at",
460 - "entityType": "columns",
461 - "schema": "public",
462 - "table": "relay_environment_credentials"
463 - },
464 - {
465 - "type": "varchar(191)",
466 - "typeSchema": null,
467 - "notNull": true,
468 - "dimensions": 0,
469 - "default": null,
470 - "generated": null,
471 - "identity": null,
472 - "name": "user_id",
473 - "entityType": "columns",
474 - "schema": "public",
475 - "table": "relay_environment_links"
476 - },
477 - {
478 - "type": "varchar(191)",
479 - "typeSchema": null,
480 - "notNull": true,
481 - "dimensions": 0,
482 - "default": null,
483 - "generated": null,
484 - "identity": null,
485 - "name": "environment_id",
486 - "entityType": "columns",
487 - "schema": "public",
488 - "table": "relay_environment_links"
489 - },
490 - {
491 - "type": "text",
492 - "typeSchema": null,
493 - "notNull": true,
494 - "dimensions": 0,
495 - "default": "'T3 Environment'",
496 - "generated": null,
497 - "identity": null,
498 - "name": "environment_label",
499 - "entityType": "columns",
500 - "schema": "public",
501 - "table": "relay_environment_links"
502 - },
503 - {
504 - "type": "text",
505 - "typeSchema": null,
506 - "notNull": true,
507 - "dimensions": 0,
508 - "default": null,
509 - "generated": null,
510 - "identity": null,
511 - "name": "environment_public_key",
512 - "entityType": "columns",
513 - "schema": "public",
514 - "table": "relay_environment_links"
515 - },
516 - {
517 - "type": "text",
518 - "typeSchema": null,
519 - "notNull": true,
520 - "dimensions": 0,
521 - "default": null,
522 - "generated": null,
523 - "identity": null,
524 - "name": "endpoint_http_base_url",
525 - "entityType": "columns",
526 - "schema": "public",
527 - "table": "relay_environment_links"
528 - },
529 - {
530 - "type": "text",
531 - "typeSchema": null,
532 - "notNull": true,
533 - "dimensions": 0,
534 - "default": null,
535 - "generated": null,
536 - "identity": null,
537 - "name": "endpoint_ws_base_url",
538 - "entityType": "columns",
539 - "schema": "public",
540 - "table": "relay_environment_links"
541 - },
542 - {
543 - "type": "varchar(32)",
544 - "typeSchema": null,
545 - "notNull": true,
546 - "dimensions": 0,
547 - "default": null,
548 - "generated": null,
549 - "identity": null,
550 - "name": "endpoint_provider_kind",
551 - "entityType": "columns",
552 - "schema": "public",
553 - "table": "relay_environment_links"
554 - },
555 - {
556 - "type": "boolean",
557 - "typeSchema": null,
558 - "notNull": true,
559 - "dimensions": 0,
560 - "default": "true",
561 - "generated": null,
562 - "identity": null,
563 - "name": "notifications_enabled",
564 - "entityType": "columns",
565 - "schema": "public",
566 - "table": "relay_environment_links"
567 - },
568 - {
569 - "type": "boolean",
570 - "typeSchema": null,
571 - "notNull": true,
572 - "dimensions": 0,
573 - "default": "true",
574 - "generated": null,
575 - "identity": null,
576 - "name": "live_activities_enabled",
577 - "entityType": "columns",
578 - "schema": "public",
579 - "table": "relay_environment_links"
580 - },
581 - {
582 - "type": "boolean",
583 - "typeSchema": null,
584 - "notNull": true,
585 - "dimensions": 0,
586 - "default": "false",
587 - "generated": null,
588 - "identity": null,
589 - "name": "managed_tunnels_enabled",
590 - "entityType": "columns",
591 - "schema": "public",
592 - "table": "relay_environment_links"
593 - },
594 - {
595 - "type": "varchar(191)",
596 - "typeSchema": null,
597 - "notNull": false,
598 - "dimensions": 0,
599 - "default": null,
600 - "generated": null,
601 - "identity": null,
602 - "name": "created_by_device_id",
603 - "entityType": "columns",
604 - "schema": "public",
605 - "table": "relay_environment_links"
606 - },
607 - {
608 - "type": "varchar(64)",
609 - "typeSchema": null,
610 - "notNull": false,
611 - "dimensions": 0,
612 - "default": null,
613 - "generated": null,
614 - "identity": null,
615 - "name": "revoked_at",
616 - "entityType": "columns",
617 - "schema": "public",
618 - "table": "relay_environment_links"
619 - },
620 - {
621 - "type": "varchar(64)",
622 - "typeSchema": null,
623 - "notNull": true,
624 - "dimensions": 0,
625 - "default": null,
626 - "generated": null,
627 - "identity": null,
628 - "name": "created_at",
629 - "entityType": "columns",
630 - "schema": "public",
631 - "table": "relay_environment_links"
632 - },
633 - {
634 - "type": "varchar(64)",
635 - "typeSchema": null,
636 - "notNull": true,
637 - "dimensions": 0,
638 - "default": null,
639 - "generated": null,
640 - "identity": null,
641 - "name": "updated_at",
642 - "entityType": "columns",
643 - "schema": "public",
644 - "table": "relay_environment_links"
645 - },
646 - {
647 - "type": "varchar(255)",
648 - "typeSchema": null,
649 - "notNull": true,
650 - "dimensions": 0,
651 - "default": null,
652 - "generated": null,
653 - "identity": null,
654 - "name": "user_id",
655 - "entityType": "columns",
656 - "schema": "public",
657 - "table": "relay_live_activities"
658 - },
659 - {
660 - "type": "varchar(255)",
661 - "typeSchema": null,
662 - "notNull": true,
663 - "dimensions": 0,
664 - "default": null,
665 - "generated": null,
666 - "identity": null,
667 - "name": "device_id",
668 - "entityType": "columns",
669 - "schema": "public",
670 - "table": "relay_live_activities"
671 - },
672 - {
673 - "type": "text",
674 - "typeSchema": null,
675 - "notNull": false,
676 - "dimensions": 0,
677 - "default": null,
678 - "generated": null,
679 - "identity": null,
680 - "name": "activity_push_token",
681 - "entityType": "columns",
682 - "schema": "public",
683 - "table": "relay_live_activities"
684 - },
685 - {
686 - "type": "varchar(64)",
687 - "typeSchema": null,
688 - "notNull": false,
689 - "dimensions": 0,
690 - "default": null,
691 - "generated": null,
692 - "identity": null,
693 - "name": "remote_start_queued_at",
694 - "entityType": "columns",
695 - "schema": "public",
696 - "table": "relay_live_activities"
697 - },
698 - {
699 - "type": "varchar(64)",
700 - "typeSchema": null,
701 - "notNull": false,
702 - "dimensions": 0,
703 - "default": null,
704 - "generated": null,
705 - "identity": null,
706 - "name": "remote_started_at",
707 - "entityType": "columns",
708 - "schema": "public",
709 - "table": "relay_live_activities"
710 - },
711 - {
712 - "type": "varchar(64)",
713 - "typeSchema": null,
714 - "notNull": false,
715 - "dimensions": 0,
716 - "default": null,
717 - "generated": null,
718 - "identity": null,
719 - "name": "ended_at",
720 - "entityType": "columns",
721 - "schema": "public",
722 - "table": "relay_live_activities"
723 - },
724 - {
725 - "type": "jsonb",
726 - "typeSchema": null,
727 - "notNull": false,
728 - "dimensions": 0,
729 - "default": null,
730 - "generated": null,
731 - "identity": null,
732 - "name": "last_aggregate_json",
733 - "entityType": "columns",
734 - "schema": "public",
735 - "table": "relay_live_activities"
736 - },
737 - {
738 - "type": "varchar(64)",
739 - "typeSchema": null,
740 - "notNull": false,
741 - "dimensions": 0,
742 - "default": null,
743 - "generated": null,
744 - "identity": null,
745 - "name": "last_live_activity_delivery_at",
746 - "entityType": "columns",
747 - "schema": "public",
748 - "table": "relay_live_activities"
749 - },
750 - {
751 - "type": "varchar(64)",
752 - "typeSchema": null,
753 - "notNull": true,
754 - "dimensions": 0,
755 - "default": null,
756 - "generated": null,
757 - "identity": null,
758 - "name": "created_at",
759 - "entityType": "columns",
760 - "schema": "public",
761 - "table": "relay_live_activities"
762 - },
763 - {
764 - "type": "varchar(64)",
765 - "typeSchema": null,
766 - "notNull": true,
767 - "dimensions": 0,
768 - "default": null,
769 - "generated": null,
770 - "identity": null,
771 - "name": "updated_at",
772 - "entityType": "columns",
773 - "schema": "public",
774 - "table": "relay_live_activities"
775 - },
776 - {
777 - "type": "varchar(191)",
778 - "typeSchema": null,
779 - "notNull": true,
780 - "dimensions": 0,
781 - "default": null,
782 - "generated": null,
783 - "identity": null,
784 - "name": "user_id",
785 - "entityType": "columns",
786 - "schema": "public",
787 - "table": "relay_managed_endpoint_allocations"
788 - },
789 - {
790 - "type": "varchar(191)",
791 - "typeSchema": null,
792 - "notNull": true,
793 - "dimensions": 0,
794 - "default": null,
795 - "generated": null,
796 - "identity": null,
797 - "name": "environment_id",
798 - "entityType": "columns",
799 - "schema": "public",
800 - "table": "relay_managed_endpoint_allocations"
801 - },
802 - {
803 - "type": "text",
804 - "typeSchema": null,
805 - "notNull": true,
806 - "dimensions": 0,
807 - "default": null,
808 - "generated": null,
809 - "identity": null,
810 - "name": "hostname",
811 - "entityType": "columns",
812 - "schema": "public",
813 - "table": "relay_managed_endpoint_allocations"
814 - },
815 - {
816 - "type": "varchar(191)",
817 - "typeSchema": null,
818 - "notNull": false,
819 - "dimensions": 0,
820 - "default": null,
821 - "generated": null,
822 - "identity": null,
823 - "name": "tunnel_id",
824 - "entityType": "columns",
825 - "schema": "public",
826 - "table": "relay_managed_endpoint_allocations"
827 - },
828 - {
829 - "type": "text",
830 - "typeSchema": null,
831 - "notNull": true,
832 - "dimensions": 0,
833 - "default": null,
834 - "generated": null,
835 - "identity": null,
836 - "name": "tunnel_name",
837 - "entityType": "columns",
838 - "schema": "public",
839 - "table": "relay_managed_endpoint_allocations"
840 - },
841 - {
842 - "type": "varchar(191)",
843 - "typeSchema": null,
844 - "notNull": false,
845 - "dimensions": 0,
846 - "default": null,
847 - "generated": null,
848 - "identity": null,
849 - "name": "dns_record_id",
850 - "entityType": "columns",
851 - "schema": "public",
852 - "table": "relay_managed_endpoint_allocations"
853 - },
854 - {
855 - "type": "varchar(64)",
856 - "typeSchema": null,
857 - "notNull": false,
858 - "dimensions": 0,
859 - "default": null,
860 - "generated": null,
861 - "identity": null,
862 - "name": "ready_at",
863 - "entityType": "columns",
864 - "schema": "public",
865 - "table": "relay_managed_endpoint_allocations"
866 - },
867 - {
868 - "type": "varchar(64)",
869 - "typeSchema": null,
870 - "notNull": false,
871 - "dimensions": 0,
872 - "default": null,
873 - "generated": null,
874 - "identity": null,
875 - "name": "recovery_enabled_at",
876 - "entityType": "columns",
877 - "schema": "public",
878 - "table": "relay_managed_endpoint_allocations"
879 - },
880 - {
881 - "type": "text",
882 - "typeSchema": null,
883 - "notNull": false,
884 - "dimensions": 0,
885 - "default": null,
886 - "generated": null,
887 - "identity": null,
888 - "name": "recovery_environment_public_key",
889 - "entityType": "columns",
890 - "schema": "public",
891 - "table": "relay_managed_endpoint_allocations"
892 - },
893 - {
894 - "type": "jsonb",
895 - "typeSchema": null,
896 - "notNull": false,
897 - "dimensions": 0,
898 - "default": null,
899 - "generated": null,
900 - "identity": null,
901 - "name": "origin",
902 - "entityType": "columns",
903 - "schema": "public",
904 - "table": "relay_managed_endpoint_allocations"
905 - },
906 - {
907 - "type": "integer",
908 - "typeSchema": null,
909 - "notNull": true,
910 - "dimensions": 0,
911 - "default": "0",
912 - "generated": null,
913 - "identity": null,
914 - "name": "generation",
915 - "entityType": "columns",
916 - "schema": "public",
917 - "table": "relay_managed_endpoint_allocations"
918 - },
919 - {
920 - "type": "varchar(64)",
921 - "typeSchema": null,
922 - "notNull": true,
923 - "dimensions": 0,
924 - "default": null,
925 - "generated": null,
926 - "identity": null,
927 - "name": "created_at",
928 - "entityType": "columns",
929 - "schema": "public",
930 - "table": "relay_managed_endpoint_allocations"
931 - },
932 - {
933 - "type": "varchar(64)",
934 - "typeSchema": null,
935 - "notNull": true,
936 - "dimensions": 0,
937 - "default": null,
938 - "generated": null,
939 - "identity": null,
940 - "name": "updated_at",
941 - "entityType": "columns",
942 - "schema": "public",
943 - "table": "relay_managed_endpoint_allocations"
944 - },
945 - {
946 - "type": "varchar(191)",
947 - "typeSchema": null,
948 - "notNull": true,
949 - "dimensions": 0,
950 - "default": null,
951 - "generated": null,
952 - "identity": null,
953 - "name": "user_id",
954 - "entityType": "columns",
955 - "schema": "public",
956 - "table": "relay_managed_tunnel_limits"
957 - },
958 - {
959 - "type": "integer",
960 - "typeSchema": null,
961 - "notNull": true,
962 - "dimensions": 0,
963 - "default": null,
964 - "generated": null,
965 - "identity": null,
966 - "name": "max_tunnels",
967 - "entityType": "columns",
968 - "schema": "public",
969 - "table": "relay_managed_tunnel_limits"
970 - },
971 - {
972 - "type": "varchar(64)",
973 - "typeSchema": null,
974 - "notNull": true,
975 - "dimensions": 0,
976 - "default": null,
977 - "generated": null,
978 - "identity": null,
979 - "name": "created_at",
980 - "entityType": "columns",
981 - "schema": "public",
982 - "table": "relay_managed_tunnel_limits"
983 - },
984 - {
985 - "type": "varchar(64)",
986 - "typeSchema": null,
987 - "notNull": true,
988 - "dimensions": 0,
989 - "default": null,
990 - "generated": null,
991 - "identity": null,
992 - "name": "updated_at",
993 - "entityType": "columns",
994 - "schema": "public",
995 - "table": "relay_managed_tunnel_limits"
996 - },
997 - {
998 - "type": "varchar(255)",
999 - "typeSchema": null,
1000 - "notNull": true,
1001 - "dimensions": 0,
1002 - "default": null,
1003 - "generated": null,
1004 - "identity": null,
1005 - "name": "user_id",
1006 - "entityType": "columns",
1007 - "schema": "public",
1008 - "table": "relay_mobile_devices"
1009 - },
1010 - {
1011 - "type": "varchar(255)",
1012 - "typeSchema": null,
1013 - "notNull": true,
1014 - "dimensions": 0,
1015 - "default": null,
1016 - "generated": null,
1017 - "identity": null,
1018 - "name": "device_id",
1019 - "entityType": "columns",
1020 - "schema": "public",
1021 - "table": "relay_mobile_devices"
1022 - },
1023 - {
1024 - "type": "text",
1025 - "typeSchema": null,
1026 - "notNull": true,
1027 - "dimensions": 0,
1028 - "default": "'iOS device'",
1029 - "generated": null,
1030 - "identity": null,
1031 - "name": "label",
1032 - "entityType": "columns",
1033 - "schema": "public",
1034 - "table": "relay_mobile_devices"
1035 - },
1036 - {
1037 - "type": "varchar(16)",
1038 - "typeSchema": null,
1039 - "notNull": true,
1040 - "dimensions": 0,
1041 - "default": null,
1042 - "generated": null,
1043 - "identity": null,
1044 - "name": "platform",
1045 - "entityType": "columns",
1046 - "schema": "public",
1047 - "table": "relay_mobile_devices"
1048 - },
1049 - {
1050 - "type": "integer",
1051 - "typeSchema": null,
1052 - "notNull": false,
1053 - "dimensions": 0,
1054 - "default": null,
1055 - "generated": null,
1056 - "identity": null,
1057 - "name": "ios_major_version",
1058 - "entityType": "columns",
1059 - "schema": "public",
1060 - "table": "relay_mobile_devices"
1061 - },
1062 - {
1063 - "type": "integer",
1064 - "typeSchema": null,
1065 - "notNull": false,
1066 - "dimensions": 0,
1067 - "default": null,
1068 - "generated": null,
1069 - "identity": null,
1070 - "name": "android_api_level",
1071 - "entityType": "columns",
1072 - "schema": "public",
1073 - "table": "relay_mobile_devices"
1074 - },
1075 - {
1076 - "type": "varchar(64)",
1077 - "typeSchema": null,
1078 - "notNull": false,
1079 - "dimensions": 0,
1080 - "default": null,
1081 - "generated": null,
1082 - "identity": null,
1083 - "name": "app_version",
1084 - "entityType": "columns",
1085 - "schema": "public",
1086 - "table": "relay_mobile_devices"
1087 - },
1088 - {
1089 - "type": "varchar(255)",
1090 - "typeSchema": null,
1091 - "notNull": false,
1092 - "dimensions": 0,
1093 - "default": null,
1094 - "generated": null,
1095 - "identity": null,
1096 - "name": "bundle_id",
1097 - "entityType": "columns",
1098 - "schema": "public",
1099 - "table": "relay_mobile_devices"
1100 - },
1101 - {
1102 - "type": "varchar(16)",
1103 - "typeSchema": null,
1104 - "notNull": false,
1105 - "dimensions": 0,
1106 - "default": null,
1107 - "generated": null,
1108 - "identity": null,
1109 - "name": "aps_environment",
1110 - "entityType": "columns",
1111 - "schema": "public",
1112 - "table": "relay_mobile_devices"
1113 - },
1114 - {
1115 - "type": "text",
1116 - "typeSchema": null,
1117 - "notNull": false,
1118 - "dimensions": 0,
1119 - "default": null,
1120 - "generated": null,
1121 - "identity": null,
1122 - "name": "push_token",
1123 - "entityType": "columns",
1124 - "schema": "public",
1125 - "table": "relay_mobile_devices"
1126 - },
1127 - {
1128 - "type": "text",
1129 - "typeSchema": null,
1130 - "notNull": false,
1131 - "dimensions": 0,
1132 - "default": null,
1133 - "generated": null,
1134 - "identity": null,
1135 - "name": "push_to_start_token",
1136 - "entityType": "columns",
1137 - "schema": "public",
1138 - "table": "relay_mobile_devices"
1139 - },
1140 - {
1141 - "type": "jsonb",
1142 - "typeSchema": null,
1143 - "notNull": true,
1144 - "dimensions": 0,
1145 - "default": null,
1146 - "generated": null,
1147 - "identity": null,
1148 - "name": "preferences_json",
1149 - "entityType": "columns",
1150 - "schema": "public",
1151 - "table": "relay_mobile_devices"
1152 - },
1153 - {
1154 - "type": "varchar(64)",
1155 - "typeSchema": null,
1156 - "notNull": true,
1157 - "dimensions": 0,
1158 - "default": null,
1159 - "generated": null,
1160 - "identity": null,
1161 - "name": "created_at",
1162 - "entityType": "columns",
1163 - "schema": "public",
1164 - "table": "relay_mobile_devices"
1165 - },
1166 - {
1167 - "type": "varchar(64)",
1168 - "typeSchema": null,
1169 - "notNull": true,
1170 - "dimensions": 0,
1171 - "default": null,
1172 - "generated": null,
1173 - "identity": null,
1174 - "name": "updated_at",
1175 - "entityType": "columns",
1176 - "schema": "public",
1177 - "table": "relay_mobile_devices"
1178 - },
1179 - {
1180 - "nameExplicit": true,
1181 - "columns": [
1182 - {
1183 - "value": "updated_at",
1184 - "isExpression": false,
1185 - "asc": true,
1186 - "nullsFirst": false,
1187 - "opclass": null
1188 - }
1189 - ],
1190 - "isUnique": false,
1191 - "where": null,
1192 - "with": "",
1193 - "method": "btree",
1194 - "concurrently": false,
1195 - "name": "idx_relay_agent_activity_rows_updated",
1196 - "entityType": "indexes",
1197 - "schema": "public",
1198 - "table": "relay_agent_activity_rows"
1199 - },
1200 - {
1201 - "nameExplicit": true,
1202 - "columns": [
1203 - {
1204 - "value": "environment_id",
1205 - "isExpression": false,
1206 - "asc": true,
1207 - "nullsFirst": false,
1208 - "opclass": null
1209 - },
1210 - {
1211 - "value": "thread_id",
1212 - "isExpression": false,
1213 - "asc": true,
1214 - "nullsFirst": false,
1215 - "opclass": null
1216 - },
1217 - {
1218 - "value": "created_at",
1219 - "isExpression": false,
1220 - "asc": true,
1221 - "nullsFirst": false,
1222 - "opclass": null
1223 - }
1224 - ],
1225 - "isUnique": false,
1226 - "where": null,
1227 - "with": "",
1228 - "method": "btree",
1229 - "concurrently": false,
1230 - "name": "idx_relay_delivery_attempts_environment",
1231 - "entityType": "indexes",
1232 - "schema": "public",
1233 - "table": "relay_delivery_attempts"
1234 - },
1235 - {
1236 - "nameExplicit": true,
1237 - "columns": [
1238 - {
1239 - "value": "source_job_id",
1240 - "isExpression": false,
1241 - "asc": true,
1242 - "nullsFirst": false,
1243 - "opclass": null
1244 - }
1245 - ],
1246 - "isUnique": true,
1247 - "where": null,
1248 - "with": "",
1249 - "method": "btree",
1250 - "concurrently": false,
1251 - "name": "idx_relay_delivery_attempts_source_job",
1252 - "entityType": "indexes",
1253 - "schema": "public",
1254 - "table": "relay_delivery_attempts"
1255 - },
1256 - {
1257 - "nameExplicit": true,
1258 - "columns": [
1259 - {
1260 - "value": "expires_at",
1261 - "isExpression": false,
1262 - "asc": true,
1263 - "nullsFirst": false,
1264 - "opclass": null
1265 - }
1266 - ],
1267 - "isUnique": false,
1268 - "where": null,
1269 - "with": "",
1270 - "method": "btree",
1271 - "concurrently": false,
1272 - "name": "idx_relay_dpop_proofs_expires_at",
1273 - "entityType": "indexes",
1274 - "schema": "public",
1275 - "table": "relay_dpop_proofs"
1276 - },
1277 - {
1278 - "nameExplicit": true,
1279 - "columns": [
1280 - {
1281 - "value": "credential_hash",
1282 - "isExpression": false,
1283 - "asc": true,
1284 - "nullsFirst": false,
1285 - "opclass": null
1286 - }
1287 - ],
1288 - "isUnique": true,
1289 - "where": null,
1290 - "with": "",
1291 - "method": "btree",
1292 - "concurrently": false,
1293 - "name": "idx_relay_environment_credentials_hash",
1294 - "entityType": "indexes",
1295 - "schema": "public",
1296 - "table": "relay_environment_credentials"
1297 - },
1298 - {
1299 - "nameExplicit": true,
1300 - "columns": [
1301 - {
1302 - "value": "environment_id",
1303 - "isExpression": false,
1304 - "asc": true,
1305 - "nullsFirst": false,
1306 - "opclass": null
1307 - },
1308 - {
1309 - "value": "revoked_at",
1310 - "isExpression": false,
1311 - "asc": true,
1312 - "nullsFirst": false,
1313 - "opclass": null
1314 - }
7 + "footprints": [
8 + {
9 + "statementType": "add_column",
10 + "statementTarget": [
11 + "column",
12 + "public",
13 + "relay_managed_endpoint_allocations",
14 + "recovery_enabled_at"
15 ],
1316 - "isUnique": false,
1317 - "where": null,
1318 - "with": "",
1319 - "method": "btree",
1320 - "concurrently": false,
1321 - "name": "idx_relay_environment_credentials_environment",
1322 - "entityType": "indexes",
1323 - "schema": "public",
1324 - "table": "relay_environment_credentials"
1325 - },
1326 - {
1327 - "nameExplicit": true,
1328 - "columns": [
1329 - {
1330 - "value": "environment_id",
1331 - "isExpression": false,
1332 - "asc": true,
1333 - "nullsFirst": false,
1334 - "opclass": null
1335 - },
1336 - {
1337 - "value": "environment_public_key",
1338 - "isExpression": false,
1339 - "asc": true,
1340 - "nullsFirst": false,
1341 - "opclass": null
1342 - },
1343 - {
1344 - "value": "revoked_at",
1345 - "isExpression": false,
1346 - "asc": true,
1347 - "nullsFirst": false,
1348 - "opclass": null
1349 - }
1350 - ],
1351 - "isUnique": false,
1352 - "where": null,
1353 - "with": "",
1354 - "method": "btree",
1355 - "concurrently": false,
1356 - "name": "idx_relay_environment_credentials_environment_key",
1357 - "entityType": "indexes",
1358 - "schema": "public",
1359 - "table": "relay_environment_credentials"
1360 - },
1361 - {
1362 - "nameExplicit": true,
1363 - "columns": [
1364 - {
1365 - "value": "environment_id",
1366 - "isExpression": false,
1367 - "asc": true,
1368 - "nullsFirst": false,
1369 - "opclass": null
1370 - },
1371 - {
1372 - "value": "revoked_at",
1373 - "isExpression": false,
1374 - "asc": true,
1375 - "nullsFirst": false,
1376 - "opclass": null
1377 - }
16 + "writes": [
17 + "s|col|public.relay_managed_endpoint_allocations.recovery_enabled_at",
18 + "n|col|public.relay_managed_endpoint_allocations.recovery_enabled_at",
19 + "e|col|public.relay_managed_endpoint_allocations.recovery_enabled_at"
20 ],
1379 - "isUnique": false,
1380 - "where": null,
1381 - "with": "",
1382 - "method": "btree",
1383 - "concurrently": false,
1384 - "name": "idx_relay_environment_links_environment",
1385 - "entityType": "indexes",
1386 - "schema": "public",
1387 - "table": "relay_environment_links"
21 + "reads": ["n|tbl|public.relay_managed_endpoint_allocations", "n|sch|public"]
22 },
23 {
1390 - "nameExplicit": true,
1391 - "columns": [
1392 - {
1393 - "value": "activity_push_token",
1394 - "isExpression": false,
1395 - "asc": true,
1396 - "nullsFirst": false,
1397 - "opclass": null
1398 - }
24 + "statementType": "add_column",
25 + "statementTarget": [
26 + "column",
27 + "public",
28 + "relay_managed_endpoint_allocations",
29 + "recovery_environment_public_key"
30 ],
1400 - "isUnique": true,
1401 - "where": null,
1402 - "with": "",
1403 - "method": "btree",
1404 - "concurrently": false,
1405 - "name": "idx_relay_live_activities_activity_push_token",
1406 - "entityType": "indexes",
1407 - "schema": "public",
1408 - "table": "relay_live_activities"
1409 - },
1410 - {
1411 - "nameExplicit": true,
1412 - "columns": [
1413 - {
1414 - "value": "hostname",
1415 - "isExpression": false,
1416 - "asc": true,
1417 - "nullsFirst": false,
1418 - "opclass": null
1419 - }
31 + "writes": [
32 + "s|col|public.relay_managed_endpoint_allocations.recovery_environment_public_key",
33 + "n|col|public.relay_managed_endpoint_allocations.recovery_environment_public_key",
34 + "e|col|public.relay_managed_endpoint_allocations.recovery_environment_public_key"
35 ],
1421 - "isUnique": true,
1422 - "where": null,
1423 - "with": "",
1424 - "method": "btree",
1425 - "concurrently": false,
1426 - "name": "idx_relay_managed_endpoint_allocations_hostname",
1427 - "entityType": "indexes",
1428 - "schema": "public",
1429 - "table": "relay_managed_endpoint_allocations"
36 + "reads": ["n|tbl|public.relay_managed_endpoint_allocations", "n|sch|public"]
37 },
38 {
1432 - "nameExplicit": true,
1433 - "columns": [
1434 - {
1435 - "value": "tunnel_name",
1436 - "isExpression": false,
1437 - "asc": true,
1438 - "nullsFirst": false,
1439 - "opclass": null
1440 - }
39 + "statementType": "add_column",
40 + "statementTarget": ["column", "public", "relay_managed_endpoint_allocations", "origin"],
41 + "writes": [
42 + "s|col|public.relay_managed_endpoint_allocations.origin",
43 + "n|col|public.relay_managed_endpoint_allocations.origin",
44 + "e|col|public.relay_managed_endpoint_allocations.origin"
45 ],
1442 - "isUnique": true,
1443 - "where": null,
1444 - "with": "",
1445 - "method": "btree",
1446 - "concurrently": false,
1447 - "name": "idx_relay_managed_endpoint_allocations_tunnel_name",
1448 - "entityType": "indexes",
1449 - "schema": "public",
1450 - "table": "relay_managed_endpoint_allocations"
46 + "reads": ["n|tbl|public.relay_managed_endpoint_allocations", "n|sch|public"]
47 },
48 {
1453 - "nameExplicit": true,
1454 - "columns": [
1455 - {
1456 - "value": "push_token",
1457 - "isExpression": false,
1458 - "asc": true,
1459 - "nullsFirst": false,
1460 - "opclass": null
1461 - }
49 + "statementType": "add_column",
50 + "statementTarget": ["column", "public", "relay_managed_endpoint_allocations", "generation"],
51 + "writes": [
52 + "s|col|public.relay_managed_endpoint_allocations.generation",
53 + "n|col|public.relay_managed_endpoint_allocations.generation",
54 + "e|col|public.relay_managed_endpoint_allocations.generation"
55 ],
1463 - "isUnique": true,
1464 - "where": null,
1465 - "with": "",
1466 - "method": "btree",
1467 - "concurrently": false,
1468 - "name": "idx_relay_mobile_devices_push_token",
1469 - "entityType": "indexes",
1470 - "schema": "public",
1471 - "table": "relay_mobile_devices"
1472 - },
1473 - {
1474 - "nameExplicit": true,
1475 - "columns": [
1476 - {
1477 - "value": "push_to_start_token",
1478 - "isExpression": false,
1479 - "asc": true,
1480 - "nullsFirst": false,
1481 - "opclass": null
1482 - }
1483 - ],
1484 - "isUnique": true,
1485 - "where": null,
1486 - "with": "",
1487 - "method": "btree",
1488 - "concurrently": false,
1489 - "name": "idx_relay_mobile_devices_push_to_start_token",
1490 - "entityType": "indexes",
1491 - "schema": "public",
1492 - "table": "relay_mobile_devices"
1493 - },
1494 - {
1495 - "columns": ["environment_id", "environment_public_key", "thread_id"],
1496 - "nameExplicit": false,
1497 - "name": "relay_agent_activity_rows_pkey",
1498 - "entityType": "pks",
1499 - "schema": "public",
1500 - "table": "relay_agent_activity_rows"
1501 - },
1502 - {
1503 - "columns": ["thumbprint", "jti"],
1504 - "nameExplicit": false,
1505 - "name": "relay_dpop_proofs_pkey",
1506 - "entityType": "pks",
1507 - "schema": "public",
1508 - "table": "relay_dpop_proofs"
1509 - },
1510 - {
1511 - "columns": ["user_id", "environment_id"],
1512 - "nameExplicit": false,
1513 - "name": "relay_environment_links_pkey",
1514 - "entityType": "pks",
1515 - "schema": "public",
1516 - "table": "relay_environment_links"
1517 - },
1518 - {
1519 - "columns": ["user_id", "device_id"],
1520 - "nameExplicit": false,
1521 - "name": "relay_live_activities_pkey",
1522 - "entityType": "pks",
1523 - "schema": "public",
1524 - "table": "relay_live_activities"
1525 - },
1526 - {
1527 - "columns": ["user_id", "environment_id"],
1528 - "nameExplicit": false,
1529 - "name": "relay_managed_endpoint_allocations_pkey",
1530 - "entityType": "pks",
1531 - "schema": "public",
1532 - "table": "relay_managed_endpoint_allocations"
1533 - },
1534 - {
1535 - "columns": ["user_id", "device_id"],
1536 - "nameExplicit": false,
1537 - "name": "relay_mobile_devices_pkey",
1538 - "entityType": "pks",
1539 - "schema": "public",
1540 - "table": "relay_mobile_devices"
1541 - },
1542 - {
1543 - "columns": ["id"],
1544 - "nameExplicit": false,
1545 - "name": "relay_delivery_attempts_pkey",
1546 - "schema": "public",
1547 - "table": "relay_delivery_attempts",
1548 - "entityType": "pks"
1549 - },
1550 - {
1551 - "columns": ["credential_id"],
1552 - "nameExplicit": false,
1553 - "name": "relay_environment_credentials_pkey",
1554 - "schema": "public",
1555 - "table": "relay_environment_credentials",
1556 - "entityType": "pks"
1557 - },
1558 - {
1559 - "columns": ["user_id"],
1560 - "nameExplicit": false,
1561 - "name": "relay_managed_tunnel_limits_pkey",
1562 - "schema": "public",
1563 - "table": "relay_managed_tunnel_limits",
1564 - "entityType": "pks"
56 + "reads": ["n|tbl|public.relay_managed_endpoint_allocations", "n|sch|public"]
57 }
58 ],
1567 - "renames": []
59 + "deltas": [
60 + {
61 + "op": "create",
62 + "row": {
63 + "schema": "public",
64 + "table": "relay_managed_endpoint_allocations",
65 + "name": "recovery_enabled_at",
66 + "type": "varchar(64)",
67 + "typeSchema": null,
68 + "notNull": false,
69 + "dimensions": 0,
70 + "default": null,
71 + "generated": null,
72 + "identity": null,
73 + "entityType": "columns"
74 + }
75 + },
76 + {
77 + "op": "create",
78 + "row": {
79 + "schema": "public",
80 + "table": "relay_managed_endpoint_allocations",
81 + "name": "recovery_environment_public_key",
82 + "type": "text",
83 + "typeSchema": null,
84 + "notNull": false,
85 + "dimensions": 0,
86 + "default": null,
87 + "generated": null,
88 + "identity": null,
89 + "entityType": "columns"
90 + }
91 + },
92 + {
93 + "op": "create",
94 + "row": {
95 + "schema": "public",
96 + "table": "relay_managed_endpoint_allocations",
97 + "name": "origin",
98 + "type": "jsonb",
99 + "typeSchema": null,
100 + "notNull": false,
101 + "dimensions": 0,
102 + "default": null,
103 + "generated": null,
104 + "identity": null,
105 + "entityType": "columns"
106 + }
107 + },
108 + {
109 + "op": "create",
110 + "row": {
111 + "schema": "public",
112 + "table": "relay_managed_endpoint_allocations",
113 + "name": "generation",
114 + "type": "integer",
115 + "typeSchema": null,
116 + "notNull": true,
117 + "dimensions": 0,
118 + "default": "0",
119 + "generated": null,
120 + "identity": null,
121 + "entityType": "columns"
122 + }
123 + }
124 + ]
125 }
infra/relay/migrations/postgres/20261004061459_hold_webhooks_while_offline/snapshot.json
+32 -1571
@@ -1,1581 +1,42 @@
1 {
2 - "version": "8",
2 + "type": "diff",
3 + "version": "9",
4 "dialect": "postgres",
5 "id": "13972659-45db-4ce9-9818-523b450bceca",
6 "prevIds": ["3809c51e-3821-4a08-818d-e5d28dd3e9b4"],
6 - "ddl": [
7 + "footprints": [
8 {
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_managed_endpoint_allocations",
46 - "entityType": "tables",
47 - "schema": "public"
48 - },
49 - {
50 - "isRlsEnabled": false,
51 - "name": "relay_managed_tunnel_limits",
52 - "entityType": "tables",
53 - "schema": "public"
54 - },
55 - {
56 - "isRlsEnabled": false,
57 - "name": "relay_mobile_devices",
58 - "entityType": "tables",
59 - "schema": "public"
60 - },
61 - {
62 - "type": "varchar(191)",
63 - "typeSchema": null,
64 - "notNull": true,
65 - "dimensions": 0,
66 - "default": null,
67 - "generated": null,
68 - "identity": null,
69 - "name": "environment_id",
70 - "entityType": "columns",
71 - "schema": "public",
72 - "table": "relay_agent_activity_rows"
73 - },
74 - {
75 - "type": "text",
76 - "typeSchema": null,
77 - "notNull": true,
78 - "dimensions": 0,
79 - "default": null,
80 - "generated": null,
81 - "identity": null,
82 - "name": "environment_public_key",
83 - "entityType": "columns",
84 - "schema": "public",
85 - "table": "relay_agent_activity_rows"
86 - },
87 - {
88 - "type": "varchar(512)",
89 - "typeSchema": null,
90 - "notNull": true,
91 - "dimensions": 0,
92 - "default": null,
93 - "generated": null,
94 - "identity": null,
95 - "name": "thread_id",
96 - "entityType": "columns",
97 - "schema": "public",
98 - "table": "relay_agent_activity_rows"
99 - },
100 - {
101 - "type": "jsonb",
102 - "typeSchema": null,
103 - "notNull": true,
104 - "dimensions": 0,
105 - "default": null,
106 - "generated": null,
107 - "identity": null,
108 - "name": "state_json",
109 - "entityType": "columns",
110 - "schema": "public",
111 - "table": "relay_agent_activity_rows"
112 - },
113 - {
114 - "type": "varchar(64)",
115 - "typeSchema": null,
116 - "notNull": true,
117 - "dimensions": 0,
118 - "default": null,
119 - "generated": null,
120 - "identity": null,
121 - "name": "updated_at",
122 - "entityType": "columns",
123 - "schema": "public",
124 - "table": "relay_agent_activity_rows"
125 - },
126 - {
127 - "type": "varchar(64)",
128 - "typeSchema": null,
129 - "notNull": true,
130 - "dimensions": 0,
131 - "default": null,
132 - "generated": null,
133 - "identity": null,
134 - "name": "created_at",
135 - "entityType": "columns",
136 - "schema": "public",
137 - "table": "relay_agent_activity_rows"
138 - },
139 - {
140 - "type": "varchar(36)",
141 - "typeSchema": null,
142 - "notNull": true,
143 - "dimensions": 0,
144 - "default": null,
145 - "generated": null,
146 - "identity": null,
147 - "name": "id",
148 - "entityType": "columns",
149 - "schema": "public",
150 - "table": "relay_delivery_attempts"
151 - },
152 - {
153 - "type": "varchar(64)",
154 - "typeSchema": null,
155 - "notNull": true,
156 - "dimensions": 0,
157 - "default": null,
158 - "generated": null,
159 - "identity": null,
160 - "name": "created_at",
161 - "entityType": "columns",
162 - "schema": "public",
163 - "table": "relay_delivery_attempts"
164 - },
165 - {
166 - "type": "varchar(255)",
167 - "typeSchema": null,
168 - "notNull": false,
169 - "dimensions": 0,
170 - "default": null,
171 - "generated": null,
172 - "identity": null,
173 - "name": "user_id",
174 - "entityType": "columns",
175 - "schema": "public",
176 - "table": "relay_delivery_attempts"
177 - },
178 - {
179 - "type": "varchar(191)",
180 - "typeSchema": null,
181 - "notNull": false,
182 - "dimensions": 0,
183 - "default": null,
184 - "generated": null,
185 - "identity": null,
186 - "name": "environment_id",
187 - "entityType": "columns",
188 - "schema": "public",
189 - "table": "relay_delivery_attempts"
190 - },
191 - {
192 - "type": "varchar(512)",
193 - "typeSchema": null,
194 - "notNull": false,
195 - "dimensions": 0,
196 - "default": null,
197 - "generated": null,
198 - "identity": null,
199 - "name": "thread_id",
200 - "entityType": "columns",
201 - "schema": "public",
202 - "table": "relay_delivery_attempts"
203 - },
204 - {
205 - "type": "varchar(255)",
206 - "typeSchema": null,
207 - "notNull": false,
208 - "dimensions": 0,
209 - "default": null,
210 - "generated": null,
211 - "identity": null,
212 - "name": "device_id",
213 - "entityType": "columns",
214 - "schema": "public",
215 - "table": "relay_delivery_attempts"
216 - },
217 - {
218 - "type": "varchar(64)",
219 - "typeSchema": null,
220 - "notNull": true,
221 - "dimensions": 0,
222 - "default": null,
223 - "generated": null,
224 - "identity": null,
225 - "name": "kind",
226 - "entityType": "columns",
227 - "schema": "public",
228 - "table": "relay_delivery_attempts"
229 - },
230 - {
231 - "type": "varchar(64)",
232 - "typeSchema": null,
233 - "notNull": false,
234 - "dimensions": 0,
235 - "default": null,
236 - "generated": null,
237 - "identity": null,
238 - "name": "source_job_id",
239 - "entityType": "columns",
240 - "schema": "public",
241 - "table": "relay_delivery_attempts"
242 - },
243 - {
244 - "type": "varchar(16)",
245 - "typeSchema": null,
246 - "notNull": false,
247 - "dimensions": 0,
248 - "default": null,
249 - "generated": null,
250 - "identity": null,
251 - "name": "token_suffix",
252 - "entityType": "columns",
253 - "schema": "public",
254 - "table": "relay_delivery_attempts"
255 - },
256 - {
257 - "type": "integer",
258 - "typeSchema": null,
259 - "notNull": false,
260 - "dimensions": 0,
261 - "default": null,
262 - "generated": null,
263 - "identity": null,
264 - "name": "apns_status",
265 - "entityType": "columns",
266 - "schema": "public",
267 - "table": "relay_delivery_attempts"
268 - },
269 - {
270 - "type": "text",
271 - "typeSchema": null,
272 - "notNull": false,
273 - "dimensions": 0,
274 - "default": null,
275 - "generated": null,
276 - "identity": null,
277 - "name": "apns_reason",
278 - "entityType": "columns",
279 - "schema": "public",
280 - "table": "relay_delivery_attempts"
281 - },
282 - {
283 - "type": "varchar(128)",
284 - "typeSchema": null,
285 - "notNull": false,
286 - "dimensions": 0,
287 - "default": null,
288 - "generated": null,
289 - "identity": null,
290 - "name": "apns_id",
291 - "entityType": "columns",
292 - "schema": "public",
293 - "table": "relay_delivery_attempts"
294 - },
295 - {
296 - "type": "text",
297 - "typeSchema": null,
298 - "notNull": false,
299 - "dimensions": 0,
300 - "default": null,
301 - "generated": null,
302 - "identity": null,
303 - "name": "transport_error",
304 - "entityType": "columns",
305 - "schema": "public",
306 - "table": "relay_delivery_attempts"
307 - },
308 - {
309 - "type": "varchar(128)",
310 - "typeSchema": null,
311 - "notNull": true,
312 - "dimensions": 0,
313 - "default": null,
314 - "generated": null,
315 - "identity": null,
316 - "name": "thumbprint",
317 - "entityType": "columns",
318 - "schema": "public",
319 - "table": "relay_dpop_proofs"
320 - },
321 - {
322 - "type": "varchar(255)",
323 - "typeSchema": null,
324 - "notNull": true,
325 - "dimensions": 0,
326 - "default": null,
327 - "generated": null,
328 - "identity": null,
329 - "name": "jti",
330 - "entityType": "columns",
331 - "schema": "public",
332 - "table": "relay_dpop_proofs"
333 - },
334 - {
335 - "type": "integer",
336 - "typeSchema": null,
337 - "notNull": true,
338 - "dimensions": 0,
339 - "default": null,
340 - "generated": null,
341 - "identity": null,
342 - "name": "iat",
343 - "entityType": "columns",
344 - "schema": "public",
345 - "table": "relay_dpop_proofs"
346 - },
347 - {
348 - "type": "varchar(64)",
349 - "typeSchema": null,
350 - "notNull": true,
351 - "dimensions": 0,
352 - "default": null,
353 - "generated": null,
354 - "identity": null,
355 - "name": "expires_at",
356 - "entityType": "columns",
357 - "schema": "public",
358 - "table": "relay_dpop_proofs"
359 - },
360 - {
361 - "type": "varchar(64)",
362 - "typeSchema": null,
363 - "notNull": true,
364 - "dimensions": 0,
365 - "default": null,
366 - "generated": null,
367 - "identity": null,
368 - "name": "created_at",
369 - "entityType": "columns",
370 - "schema": "public",
371 - "table": "relay_dpop_proofs"
372 - },
373 - {
374 - "type": "varchar(64)",
375 - "typeSchema": null,
376 - "notNull": true,
377 - "dimensions": 0,
378 - "default": null,
379 - "generated": null,
380 - "identity": null,
381 - "name": "credential_id",
382 - "entityType": "columns",
383 - "schema": "public",
384 - "table": "relay_environment_credentials"
385 - },
386 - {
387 - "type": "varchar(191)",
388 - "typeSchema": null,
389 - "notNull": true,
390 - "dimensions": 0,
391 - "default": null,
392 - "generated": null,
393 - "identity": null,
394 - "name": "environment_id",
395 - "entityType": "columns",
396 - "schema": "public",
397 - "table": "relay_environment_credentials"
398 - },
399 - {
400 - "type": "text",
401 - "typeSchema": null,
402 - "notNull": true,
403 - "dimensions": 0,
404 - "default": null,
405 - "generated": null,
406 - "identity": null,
407 - "name": "environment_public_key",
408 - "entityType": "columns",
409 - "schema": "public",
410 - "table": "relay_environment_credentials"
411 - },
412 - {
413 - "type": "varchar(191)",
414 - "typeSchema": null,
415 - "notNull": true,
416 - "dimensions": 0,
417 - "default": null,
418 - "generated": null,
419 - "identity": null,
420 - "name": "credential_hash",
421 - "entityType": "columns",
422 - "schema": "public",
423 - "table": "relay_environment_credentials"
424 - },
425 - {
426 - "type": "varchar(64)",
427 - "typeSchema": null,
428 - "notNull": false,
429 - "dimensions": 0,
430 - "default": null,
431 - "generated": null,
432 - "identity": null,
433 - "name": "revoked_at",
434 - "entityType": "columns",
435 - "schema": "public",
436 - "table": "relay_environment_credentials"
437 - },
438 - {
439 - "type": "varchar(64)",
440 - "typeSchema": null,
441 - "notNull": true,
442 - "dimensions": 0,
443 - "default": null,
444 - "generated": null,
445 - "identity": null,
446 - "name": "created_at",
447 - "entityType": "columns",
448 - "schema": "public",
449 - "table": "relay_environment_credentials"
450 - },
451 - {
452 - "type": "varchar(64)",
453 - "typeSchema": null,
454 - "notNull": true,
455 - "dimensions": 0,
456 - "default": null,
457 - "generated": null,
458 - "identity": null,
459 - "name": "updated_at",
460 - "entityType": "columns",
461 - "schema": "public",
462 - "table": "relay_environment_credentials"
463 - },
464 - {
465 - "type": "varchar(191)",
466 - "typeSchema": null,
467 - "notNull": true,
468 - "dimensions": 0,
469 - "default": null,
470 - "generated": null,
471 - "identity": null,
472 - "name": "user_id",
473 - "entityType": "columns",
474 - "schema": "public",
475 - "table": "relay_environment_links"
476 - },
477 - {
478 - "type": "varchar(191)",
479 - "typeSchema": null,
480 - "notNull": true,
481 - "dimensions": 0,
482 - "default": null,
483 - "generated": null,
484 - "identity": null,
485 - "name": "environment_id",
486 - "entityType": "columns",
487 - "schema": "public",
488 - "table": "relay_environment_links"
489 - },
490 - {
491 - "type": "text",
492 - "typeSchema": null,
493 - "notNull": true,
494 - "dimensions": 0,
495 - "default": "'T3 Environment'",
496 - "generated": null,
497 - "identity": null,
498 - "name": "environment_label",
499 - "entityType": "columns",
500 - "schema": "public",
501 - "table": "relay_environment_links"
502 - },
503 - {
504 - "type": "text",
505 - "typeSchema": null,
506 - "notNull": true,
507 - "dimensions": 0,
508 - "default": null,
509 - "generated": null,
510 - "identity": null,
511 - "name": "environment_public_key",
512 - "entityType": "columns",
513 - "schema": "public",
514 - "table": "relay_environment_links"
515 - },
516 - {
517 - "type": "text",
518 - "typeSchema": null,
519 - "notNull": true,
520 - "dimensions": 0,
521 - "default": null,
522 - "generated": null,
523 - "identity": null,
524 - "name": "endpoint_http_base_url",
525 - "entityType": "columns",
526 - "schema": "public",
527 - "table": "relay_environment_links"
528 - },
529 - {
530 - "type": "text",
531 - "typeSchema": null,
532 - "notNull": true,
533 - "dimensions": 0,
534 - "default": null,
535 - "generated": null,
536 - "identity": null,
537 - "name": "endpoint_ws_base_url",
538 - "entityType": "columns",
539 - "schema": "public",
540 - "table": "relay_environment_links"
541 - },
542 - {
543 - "type": "varchar(32)",
544 - "typeSchema": null,
545 - "notNull": true,
546 - "dimensions": 0,
547 - "default": null,
548 - "generated": null,
549 - "identity": null,
550 - "name": "endpoint_provider_kind",
551 - "entityType": "columns",
552 - "schema": "public",
553 - "table": "relay_environment_links"
554 - },
555 - {
556 - "type": "boolean",
557 - "typeSchema": null,
558 - "notNull": true,
559 - "dimensions": 0,
560 - "default": "true",
561 - "generated": null,
562 - "identity": null,
563 - "name": "notifications_enabled",
564 - "entityType": "columns",
565 - "schema": "public",
566 - "table": "relay_environment_links"
567 - },
568 - {
569 - "type": "boolean",
570 - "typeSchema": null,
571 - "notNull": true,
572 - "dimensions": 0,
573 - "default": "true",
574 - "generated": null,
575 - "identity": null,
576 - "name": "live_activities_enabled",
577 - "entityType": "columns",
578 - "schema": "public",
579 - "table": "relay_environment_links"
580 - },
581 - {
582 - "type": "boolean",
583 - "typeSchema": null,
584 - "notNull": true,
585 - "dimensions": 0,
586 - "default": "false",
587 - "generated": null,
588 - "identity": null,
589 - "name": "managed_tunnels_enabled",
590 - "entityType": "columns",
591 - "schema": "public",
592 - "table": "relay_environment_links"
593 - },
594 - {
595 - "type": "boolean",
596 - "typeSchema": null,
597 - "notNull": true,
598 - "dimensions": 0,
599 - "default": "false",
600 - "generated": null,
601 - "identity": null,
602 - "name": "hold_webhooks_while_offline",
603 - "entityType": "columns",
604 - "schema": "public",
605 - "table": "relay_environment_links"
606 - },
607 - {
608 - "type": "varchar(191)",
609 - "typeSchema": null,
610 - "notNull": false,
611 - "dimensions": 0,
612 - "default": null,
613 - "generated": null,
614 - "identity": null,
615 - "name": "created_by_device_id",
616 - "entityType": "columns",
617 - "schema": "public",
618 - "table": "relay_environment_links"
619 - },
620 - {
621 - "type": "varchar(64)",
622 - "typeSchema": null,
623 - "notNull": false,
624 - "dimensions": 0,
625 - "default": null,
626 - "generated": null,
627 - "identity": null,
628 - "name": "revoked_at",
629 - "entityType": "columns",
630 - "schema": "public",
631 - "table": "relay_environment_links"
632 - },
633 - {
634 - "type": "varchar(64)",
635 - "typeSchema": null,
636 - "notNull": true,
637 - "dimensions": 0,
638 - "default": null,
639 - "generated": null,
640 - "identity": null,
641 - "name": "created_at",
642 - "entityType": "columns",
643 - "schema": "public",
644 - "table": "relay_environment_links"
645 - },
646 - {
647 - "type": "varchar(64)",
648 - "typeSchema": null,
649 - "notNull": true,
650 - "dimensions": 0,
651 - "default": null,
652 - "generated": null,
653 - "identity": null,
654 - "name": "updated_at",
655 - "entityType": "columns",
656 - "schema": "public",
657 - "table": "relay_environment_links"
658 - },
659 - {
660 - "type": "varchar(255)",
661 - "typeSchema": null,
662 - "notNull": true,
663 - "dimensions": 0,
664 - "default": null,
665 - "generated": null,
666 - "identity": null,
667 - "name": "user_id",
668 - "entityType": "columns",
669 - "schema": "public",
670 - "table": "relay_live_activities"
671 - },
672 - {
673 - "type": "varchar(255)",
674 - "typeSchema": null,
675 - "notNull": true,
676 - "dimensions": 0,
677 - "default": null,
678 - "generated": null,
679 - "identity": null,
680 - "name": "device_id",
681 - "entityType": "columns",
682 - "schema": "public",
683 - "table": "relay_live_activities"
684 - },
685 - {
686 - "type": "text",
687 - "typeSchema": null,
688 - "notNull": false,
689 - "dimensions": 0,
690 - "default": null,
691 - "generated": null,
692 - "identity": null,
693 - "name": "activity_push_token",
694 - "entityType": "columns",
695 - "schema": "public",
696 - "table": "relay_live_activities"
697 - },
698 - {
699 - "type": "varchar(64)",
700 - "typeSchema": null,
701 - "notNull": false,
702 - "dimensions": 0,
703 - "default": null,
704 - "generated": null,
705 - "identity": null,
706 - "name": "remote_start_queued_at",
707 - "entityType": "columns",
708 - "schema": "public",
709 - "table": "relay_live_activities"
710 - },
711 - {
712 - "type": "varchar(64)",
713 - "typeSchema": null,
714 - "notNull": false,
715 - "dimensions": 0,
716 - "default": null,
717 - "generated": null,
718 - "identity": null,
719 - "name": "remote_started_at",
720 - "entityType": "columns",
721 - "schema": "public",
722 - "table": "relay_live_activities"
723 - },
724 - {
725 - "type": "varchar(64)",
726 - "typeSchema": null,
727 - "notNull": false,
728 - "dimensions": 0,
729 - "default": null,
730 - "generated": null,
731 - "identity": null,
732 - "name": "ended_at",
733 - "entityType": "columns",
734 - "schema": "public",
735 - "table": "relay_live_activities"
736 - },
737 - {
738 - "type": "jsonb",
739 - "typeSchema": null,
740 - "notNull": false,
741 - "dimensions": 0,
742 - "default": null,
743 - "generated": null,
744 - "identity": null,
745 - "name": "last_aggregate_json",
746 - "entityType": "columns",
747 - "schema": "public",
748 - "table": "relay_live_activities"
749 - },
750 - {
751 - "type": "varchar(64)",
752 - "typeSchema": null,
753 - "notNull": false,
754 - "dimensions": 0,
755 - "default": null,
756 - "generated": null,
757 - "identity": null,
758 - "name": "last_live_activity_delivery_at",
759 - "entityType": "columns",
760 - "schema": "public",
761 - "table": "relay_live_activities"
762 - },
763 - {
764 - "type": "varchar(64)",
765 - "typeSchema": null,
766 - "notNull": true,
767 - "dimensions": 0,
768 - "default": null,
769 - "generated": null,
770 - "identity": null,
771 - "name": "created_at",
772 - "entityType": "columns",
773 - "schema": "public",
774 - "table": "relay_live_activities"
775 - },
776 - {
777 - "type": "varchar(64)",
778 - "typeSchema": null,
779 - "notNull": true,
780 - "dimensions": 0,
781 - "default": null,
782 - "generated": null,
783 - "identity": null,
784 - "name": "updated_at",
785 - "entityType": "columns",
786 - "schema": "public",
787 - "table": "relay_live_activities"
788 - },
789 - {
790 - "type": "varchar(191)",
791 - "typeSchema": null,
792 - "notNull": true,
793 - "dimensions": 0,
794 - "default": null,
795 - "generated": null,
796 - "identity": null,
797 - "name": "user_id",
798 - "entityType": "columns",
799 - "schema": "public",
800 - "table": "relay_managed_endpoint_allocations"
801 - },
802 - {
803 - "type": "varchar(191)",
804 - "typeSchema": null,
805 - "notNull": true,
806 - "dimensions": 0,
807 - "default": null,
808 - "generated": null,
809 - "identity": null,
810 - "name": "environment_id",
811 - "entityType": "columns",
812 - "schema": "public",
813 - "table": "relay_managed_endpoint_allocations"
814 - },
815 - {
816 - "type": "text",
817 - "typeSchema": null,
818 - "notNull": true,
819 - "dimensions": 0,
820 - "default": null,
821 - "generated": null,
822 - "identity": null,
823 - "name": "hostname",
824 - "entityType": "columns",
825 - "schema": "public",
826 - "table": "relay_managed_endpoint_allocations"
827 - },
828 - {
829 - "type": "varchar(191)",
830 - "typeSchema": null,
831 - "notNull": false,
832 - "dimensions": 0,
833 - "default": null,
834 - "generated": null,
835 - "identity": null,
836 - "name": "tunnel_id",
837 - "entityType": "columns",
838 - "schema": "public",
839 - "table": "relay_managed_endpoint_allocations"
840 - },
841 - {
842 - "type": "text",
843 - "typeSchema": null,
844 - "notNull": true,
845 - "dimensions": 0,
846 - "default": null,
847 - "generated": null,
848 - "identity": null,
849 - "name": "tunnel_name",
850 - "entityType": "columns",
851 - "schema": "public",
852 - "table": "relay_managed_endpoint_allocations"
853 - },
854 - {
855 - "type": "varchar(191)",
856 - "typeSchema": null,
857 - "notNull": false,
858 - "dimensions": 0,
859 - "default": null,
860 - "generated": null,
861 - "identity": null,
862 - "name": "dns_record_id",
863 - "entityType": "columns",
864 - "schema": "public",
865 - "table": "relay_managed_endpoint_allocations"
866 - },
867 - {
868 - "type": "varchar(64)",
869 - "typeSchema": null,
870 - "notNull": false,
871 - "dimensions": 0,
872 - "default": null,
873 - "generated": null,
874 - "identity": null,
875 - "name": "ready_at",
876 - "entityType": "columns",
877 - "schema": "public",
878 - "table": "relay_managed_endpoint_allocations"
879 - },
880 - {
881 - "type": "varchar(64)",
882 - "typeSchema": null,
883 - "notNull": false,
884 - "dimensions": 0,
885 - "default": null,
886 - "generated": null,
887 - "identity": null,
888 - "name": "recovery_enabled_at",
889 - "entityType": "columns",
890 - "schema": "public",
891 - "table": "relay_managed_endpoint_allocations"
892 - },
893 - {
894 - "type": "text",
895 - "typeSchema": null,
896 - "notNull": false,
897 - "dimensions": 0,
898 - "default": null,
899 - "generated": null,
900 - "identity": null,
901 - "name": "recovery_environment_public_key",
902 - "entityType": "columns",
903 - "schema": "public",
904 - "table": "relay_managed_endpoint_allocations"
905 - },
906 - {
907 - "type": "jsonb",
908 - "typeSchema": null,
909 - "notNull": false,
910 - "dimensions": 0,
911 - "default": null,
912 - "generated": null,
913 - "identity": null,
914 - "name": "origin",
915 - "entityType": "columns",
916 - "schema": "public",
917 - "table": "relay_managed_endpoint_allocations"
918 - },
919 - {
920 - "type": "integer",
921 - "typeSchema": null,
922 - "notNull": true,
923 - "dimensions": 0,
924 - "default": "0",
925 - "generated": null,
926 - "identity": null,
927 - "name": "generation",
928 - "entityType": "columns",
929 - "schema": "public",
930 - "table": "relay_managed_endpoint_allocations"
931 - },
932 - {
933 - "type": "varchar(64)",
934 - "typeSchema": null,
935 - "notNull": true,
936 - "dimensions": 0,
937 - "default": null,
938 - "generated": null,
939 - "identity": null,
940 - "name": "created_at",
941 - "entityType": "columns",
942 - "schema": "public",
943 - "table": "relay_managed_endpoint_allocations"
944 - },
945 - {
946 - "type": "varchar(64)",
947 - "typeSchema": null,
948 - "notNull": true,
949 - "dimensions": 0,
950 - "default": null,
951 - "generated": null,
952 - "identity": null,
953 - "name": "updated_at",
954 - "entityType": "columns",
955 - "schema": "public",
956 - "table": "relay_managed_endpoint_allocations"
957 - },
958 - {
959 - "type": "varchar(191)",
960 - "typeSchema": null,
961 - "notNull": true,
962 - "dimensions": 0,
963 - "default": null,
964 - "generated": null,
965 - "identity": null,
966 - "name": "user_id",
967 - "entityType": "columns",
968 - "schema": "public",
969 - "table": "relay_managed_tunnel_limits"
970 - },
971 - {
972 - "type": "integer",
973 - "typeSchema": null,
974 - "notNull": true,
975 - "dimensions": 0,
976 - "default": null,
977 - "generated": null,
978 - "identity": null,
979 - "name": "max_tunnels",
980 - "entityType": "columns",
981 - "schema": "public",
982 - "table": "relay_managed_tunnel_limits"
983 - },
984 - {
985 - "type": "varchar(64)",
986 - "typeSchema": null,
987 - "notNull": true,
988 - "dimensions": 0,
989 - "default": null,
990 - "generated": null,
991 - "identity": null,
992 - "name": "created_at",
993 - "entityType": "columns",
994 - "schema": "public",
995 - "table": "relay_managed_tunnel_limits"
996 - },
997 - {
998 - "type": "varchar(64)",
999 - "typeSchema": null,
1000 - "notNull": true,
1001 - "dimensions": 0,
1002 - "default": null,
1003 - "generated": null,
1004 - "identity": null,
1005 - "name": "updated_at",
1006 - "entityType": "columns",
1007 - "schema": "public",
1008 - "table": "relay_managed_tunnel_limits"
1009 - },
1010 - {
1011 - "type": "varchar(255)",
1012 - "typeSchema": null,
1013 - "notNull": true,
1014 - "dimensions": 0,
1015 - "default": null,
1016 - "generated": null,
1017 - "identity": null,
1018 - "name": "user_id",
1019 - "entityType": "columns",
1020 - "schema": "public",
1021 - "table": "relay_mobile_devices"
1022 - },
1023 - {
1024 - "type": "varchar(255)",
1025 - "typeSchema": null,
1026 - "notNull": true,
1027 - "dimensions": 0,
1028 - "default": null,
1029 - "generated": null,
1030 - "identity": null,
1031 - "name": "device_id",
1032 - "entityType": "columns",
1033 - "schema": "public",
1034 - "table": "relay_mobile_devices"
1035 - },
1036 - {
1037 - "type": "text",
1038 - "typeSchema": null,
1039 - "notNull": true,
1040 - "dimensions": 0,
1041 - "default": "'iOS device'",
1042 - "generated": null,
1043 - "identity": null,
1044 - "name": "label",
1045 - "entityType": "columns",
1046 - "schema": "public",
1047 - "table": "relay_mobile_devices"
1048 - },
1049 - {
1050 - "type": "varchar(16)",
1051 - "typeSchema": null,
1052 - "notNull": true,
1053 - "dimensions": 0,
1054 - "default": null,
1055 - "generated": null,
1056 - "identity": null,
1057 - "name": "platform",
1058 - "entityType": "columns",
1059 - "schema": "public",
1060 - "table": "relay_mobile_devices"
1061 - },
1062 - {
1063 - "type": "integer",
1064 - "typeSchema": null,
1065 - "notNull": false,
1066 - "dimensions": 0,
1067 - "default": null,
1068 - "generated": null,
1069 - "identity": null,
1070 - "name": "ios_major_version",
1071 - "entityType": "columns",
1072 - "schema": "public",
1073 - "table": "relay_mobile_devices"
1074 - },
1075 - {
1076 - "type": "integer",
1077 - "typeSchema": null,
1078 - "notNull": false,
1079 - "dimensions": 0,
1080 - "default": null,
1081 - "generated": null,
1082 - "identity": null,
1083 - "name": "android_api_level",
1084 - "entityType": "columns",
1085 - "schema": "public",
1086 - "table": "relay_mobile_devices"
1087 - },
1088 - {
1089 - "type": "varchar(64)",
1090 - "typeSchema": null,
1091 - "notNull": false,
1092 - "dimensions": 0,
1093 - "default": null,
1094 - "generated": null,
1095 - "identity": null,
1096 - "name": "app_version",
1097 - "entityType": "columns",
1098 - "schema": "public",
1099 - "table": "relay_mobile_devices"
1100 - },
1101 - {
1102 - "type": "varchar(255)",
1103 - "typeSchema": null,
1104 - "notNull": false,
1105 - "dimensions": 0,
1106 - "default": null,
1107 - "generated": null,
1108 - "identity": null,
1109 - "name": "bundle_id",
1110 - "entityType": "columns",
1111 - "schema": "public",
1112 - "table": "relay_mobile_devices"
1113 - },
1114 - {
1115 - "type": "varchar(16)",
1116 - "typeSchema": null,
1117 - "notNull": false,
1118 - "dimensions": 0,
1119 - "default": null,
1120 - "generated": null,
1121 - "identity": null,
1122 - "name": "aps_environment",
1123 - "entityType": "columns",
1124 - "schema": "public",
1125 - "table": "relay_mobile_devices"
1126 - },
1127 - {
1128 - "type": "text",
1129 - "typeSchema": null,
1130 - "notNull": false,
1131 - "dimensions": 0,
1132 - "default": null,
1133 - "generated": null,
1134 - "identity": null,
1135 - "name": "push_token",
1136 - "entityType": "columns",
1137 - "schema": "public",
1138 - "table": "relay_mobile_devices"
1139 - },
1140 - {
1141 - "type": "text",
1142 - "typeSchema": null,
1143 - "notNull": false,
1144 - "dimensions": 0,
1145 - "default": null,
1146 - "generated": null,
1147 - "identity": null,
1148 - "name": "push_to_start_token",
1149 - "entityType": "columns",
1150 - "schema": "public",
1151 - "table": "relay_mobile_devices"
1152 - },
1153 - {
1154 - "type": "jsonb",
1155 - "typeSchema": null,
1156 - "notNull": true,
1157 - "dimensions": 0,
1158 - "default": null,
1159 - "generated": null,
1160 - "identity": null,
1161 - "name": "preferences_json",
1162 - "entityType": "columns",
1163 - "schema": "public",
1164 - "table": "relay_mobile_devices"
1165 - },
1166 - {
1167 - "type": "varchar(64)",
1168 - "typeSchema": null,
1169 - "notNull": true,
1170 - "dimensions": 0,
1171 - "default": null,
1172 - "generated": null,
1173 - "identity": null,
1174 - "name": "created_at",
1175 - "entityType": "columns",
1176 - "schema": "public",
1177 - "table": "relay_mobile_devices"
1178 - },
1179 - {
1180 - "type": "varchar(64)",
1181 - "typeSchema": null,
1182 - "notNull": true,
1183 - "dimensions": 0,
1184 - "default": null,
1185 - "generated": null,
1186 - "identity": null,
1187 - "name": "updated_at",
1188 - "entityType": "columns",
1189 - "schema": "public",
1190 - "table": "relay_mobile_devices"
1191 - },
1192 - {
1193 - "nameExplicit": true,
1194 - "columns": [
1195 - {
1196 - "value": "updated_at",
1197 - "isExpression": false,
1198 - "asc": true,
1199 - "nullsFirst": false,
1200 - "opclass": null
1201 - }
1202 - ],
1203 - "isUnique": false,
1204 - "where": null,
1205 - "with": "",
1206 - "method": "btree",
1207 - "concurrently": false,
1208 - "name": "idx_relay_agent_activity_rows_updated",
1209 - "entityType": "indexes",
1210 - "schema": "public",
1211 - "table": "relay_agent_activity_rows"
1212 - },
1213 - {
1214 - "nameExplicit": true,
1215 - "columns": [
1216 - {
1217 - "value": "environment_id",
1218 - "isExpression": false,
1219 - "asc": true,
1220 - "nullsFirst": false,
1221 - "opclass": null
1222 - },
1223 - {
1224 - "value": "thread_id",
1225 - "isExpression": false,
1226 - "asc": true,
1227 - "nullsFirst": false,
1228 - "opclass": null
1229 - },
1230 - {
1231 - "value": "created_at",
1232 - "isExpression": false,
1233 - "asc": true,
1234 - "nullsFirst": false,
1235 - "opclass": null
1236 - }
1237 - ],
1238 - "isUnique": false,
1239 - "where": null,
1240 - "with": "",
1241 - "method": "btree",
1242 - "concurrently": false,
1243 - "name": "idx_relay_delivery_attempts_environment",
1244 - "entityType": "indexes",
1245 - "schema": "public",
1246 - "table": "relay_delivery_attempts"
1247 - },
1248 - {
1249 - "nameExplicit": true,
1250 - "columns": [
1251 - {
1252 - "value": "source_job_id",
1253 - "isExpression": false,
1254 - "asc": true,
1255 - "nullsFirst": false,
1256 - "opclass": null
1257 - }
1258 - ],
1259 - "isUnique": true,
1260 - "where": null,
1261 - "with": "",
1262 - "method": "btree",
1263 - "concurrently": false,
1264 - "name": "idx_relay_delivery_attempts_source_job",
1265 - "entityType": "indexes",
1266 - "schema": "public",
1267 - "table": "relay_delivery_attempts"
1268 - },
1269 - {
1270 - "nameExplicit": true,
1271 - "columns": [
1272 - {
1273 - "value": "expires_at",
1274 - "isExpression": false,
1275 - "asc": true,
1276 - "nullsFirst": false,
1277 - "opclass": null
1278 - }
1279 - ],
1280 - "isUnique": false,
1281 - "where": null,
1282 - "with": "",
1283 - "method": "btree",
1284 - "concurrently": false,
1285 - "name": "idx_relay_dpop_proofs_expires_at",
1286 - "entityType": "indexes",
1287 - "schema": "public",
1288 - "table": "relay_dpop_proofs"
1289 - },
1290 - {
1291 - "nameExplicit": true,
1292 - "columns": [
1293 - {
1294 - "value": "credential_hash",
1295 - "isExpression": false,
1296 - "asc": true,
1297 - "nullsFirst": false,
1298 - "opclass": null
1299 - }
1300 - ],
1301 - "isUnique": true,
1302 - "where": null,
1303 - "with": "",
1304 - "method": "btree",
1305 - "concurrently": false,
1306 - "name": "idx_relay_environment_credentials_hash",
1307 - "entityType": "indexes",
1308 - "schema": "public",
1309 - "table": "relay_environment_credentials"
1310 - },
1311 - {
1312 - "nameExplicit": true,
1313 - "columns": [
1314 - {
1315 - "value": "environment_id",
1316 - "isExpression": false,
1317 - "asc": true,
1318 - "nullsFirst": false,
1319 - "opclass": null
1320 - },
1321 - {
1322 - "value": "revoked_at",
1323 - "isExpression": false,
1324 - "asc": true,
1325 - "nullsFirst": false,
1326 - "opclass": null
1327 - }
1328 - ],
1329 - "isUnique": false,
1330 - "where": null,
1331 - "with": "",
1332 - "method": "btree",
1333 - "concurrently": false,
1334 - "name": "idx_relay_environment_credentials_environment",
1335 - "entityType": "indexes",
1336 - "schema": "public",
1337 - "table": "relay_environment_credentials"
1338 - },
1339 - {
1340 - "nameExplicit": true,
1341 - "columns": [
1342 - {
1343 - "value": "environment_id",
1344 - "isExpression": false,
1345 - "asc": true,
1346 - "nullsFirst": false,
1347 - "opclass": null
1348 - },
1349 - {
1350 - "value": "environment_public_key",
1351 - "isExpression": false,
1352 - "asc": true,
1353 - "nullsFirst": false,
1354 - "opclass": null
1355 - },
1356 - {
1357 - "value": "revoked_at",
1358 - "isExpression": false,
1359 - "asc": true,
1360 - "nullsFirst": false,
1361 - "opclass": null
1362 - }
1363 - ],
1364 - "isUnique": false,
1365 - "where": null,
1366 - "with": "",
1367 - "method": "btree",
1368 - "concurrently": false,
1369 - "name": "idx_relay_environment_credentials_environment_key",
1370 - "entityType": "indexes",
1371 - "schema": "public",
1372 - "table": "relay_environment_credentials"
1373 - },
1374 - {
1375 - "nameExplicit": true,
1376 - "columns": [
1377 - {
1378 - "value": "environment_id",
1379 - "isExpression": false,
1380 - "asc": true,
1381 - "nullsFirst": false,
1382 - "opclass": null
1383 - },
1384 - {
1385 - "value": "revoked_at",
1386 - "isExpression": false,
1387 - "asc": true,
1388 - "nullsFirst": false,
1389 - "opclass": null
1390 - }
1391 - ],
1392 - "isUnique": false,
1393 - "where": null,
1394 - "with": "",
1395 - "method": "btree",
1396 - "concurrently": false,
1397 - "name": "idx_relay_environment_links_environment",
1398 - "entityType": "indexes",
1399 - "schema": "public",
1400 - "table": "relay_environment_links"
1401 - },
1402 - {
1403 - "nameExplicit": true,
1404 - "columns": [
1405 - {
1406 - "value": "activity_push_token",
1407 - "isExpression": false,
1408 - "asc": true,
1409 - "nullsFirst": false,
1410 - "opclass": null
1411 - }
1412 - ],
1413 - "isUnique": true,
1414 - "where": null,
1415 - "with": "",
1416 - "method": "btree",
1417 - "concurrently": false,
1418 - "name": "idx_relay_live_activities_activity_push_token",
1419 - "entityType": "indexes",
1420 - "schema": "public",
1421 - "table": "relay_live_activities"
1422 - },
1423 - {
1424 - "nameExplicit": true,
1425 - "columns": [
1426 - {
1427 - "value": "hostname",
1428 - "isExpression": false,
1429 - "asc": true,
1430 - "nullsFirst": false,
1431 - "opclass": null
1432 - }
1433 - ],
1434 - "isUnique": true,
1435 - "where": null,
1436 - "with": "",
1437 - "method": "btree",
1438 - "concurrently": false,
1439 - "name": "idx_relay_managed_endpoint_allocations_hostname",
1440 - "entityType": "indexes",
1441 - "schema": "public",
1442 - "table": "relay_managed_endpoint_allocations"
1443 - },
1444 - {
1445 - "nameExplicit": true,
1446 - "columns": [
1447 - {
1448 - "value": "tunnel_name",
1449 - "isExpression": false,
1450 - "asc": true,
1451 - "nullsFirst": false,
1452 - "opclass": null
1453 - }
1454 - ],
1455 - "isUnique": true,
1456 - "where": null,
1457 - "with": "",
1458 - "method": "btree",
1459 - "concurrently": false,
1460 - "name": "idx_relay_managed_endpoint_allocations_tunnel_name",
1461 - "entityType": "indexes",
1462 - "schema": "public",
1463 - "table": "relay_managed_endpoint_allocations"
1464 - },
1465 - {
1466 - "nameExplicit": true,
1467 - "columns": [
1468 - {
1469 - "value": "push_token",
1470 - "isExpression": false,
1471 - "asc": true,
1472 - "nullsFirst": false,
1473 - "opclass": null
1474 - }
9 + "statementType": "add_column",
10 + "statementTarget": [
11 + "column",
12 + "public",
13 + "relay_environment_links",
14 + "hold_webhooks_while_offline"
15 ],
1476 - "isUnique": true,
1477 - "where": null,
1478 - "with": "",
1479 - "method": "btree",
1480 - "concurrently": false,
1481 - "name": "idx_relay_mobile_devices_push_token",
1482 - "entityType": "indexes",
1483 - "schema": "public",
1484 - "table": "relay_mobile_devices"
1485 - },
1486 - {
1487 - "nameExplicit": true,
1488 - "columns": [
1489 - {
1490 - "value": "push_to_start_token",
1491 - "isExpression": false,
1492 - "asc": true,
1493 - "nullsFirst": false,
1494 - "opclass": null
1495 - }
16 + "writes": [
17 + "s|col|public.relay_environment_links.hold_webhooks_while_offline",
18 + "n|col|public.relay_environment_links.hold_webhooks_while_offline",
19 + "e|col|public.relay_environment_links.hold_webhooks_while_offline"
20 ],
1497 - "isUnique": true,
1498 - "where": null,
1499 - "with": "",
1500 - "method": "btree",
1501 - "concurrently": false,
1502 - "name": "idx_relay_mobile_devices_push_to_start_token",
1503 - "entityType": "indexes",
1504 - "schema": "public",
1505 - "table": "relay_mobile_devices"
1506 - },
1507 - {
1508 - "columns": ["environment_id", "environment_public_key", "thread_id"],
1509 - "nameExplicit": false,
1510 - "name": "relay_agent_activity_rows_pkey",
1511 - "entityType": "pks",
1512 - "schema": "public",
1513 - "table": "relay_agent_activity_rows"
1514 - },
1515 - {
1516 - "columns": ["thumbprint", "jti"],
1517 - "nameExplicit": false,
1518 - "name": "relay_dpop_proofs_pkey",
1519 - "entityType": "pks",
1520 - "schema": "public",
1521 - "table": "relay_dpop_proofs"
1522 - },
1523 - {
1524 - "columns": ["user_id", "environment_id"],
1525 - "nameExplicit": false,
1526 - "name": "relay_environment_links_pkey",
1527 - "entityType": "pks",
1528 - "schema": "public",
1529 - "table": "relay_environment_links"
1530 - },
1531 - {
1532 - "columns": ["user_id", "device_id"],
1533 - "nameExplicit": false,
1534 - "name": "relay_live_activities_pkey",
1535 - "entityType": "pks",
1536 - "schema": "public",
1537 - "table": "relay_live_activities"
1538 - },
1539 - {
1540 - "columns": ["user_id", "environment_id"],
1541 - "nameExplicit": false,
1542 - "name": "relay_managed_endpoint_allocations_pkey",
1543 - "entityType": "pks",
1544 - "schema": "public",
1545 - "table": "relay_managed_endpoint_allocations"
1546 - },
1547 - {
1548 - "columns": ["user_id", "device_id"],
1549 - "nameExplicit": false,
1550 - "name": "relay_mobile_devices_pkey",
1551 - "entityType": "pks",
1552 - "schema": "public",
1553 - "table": "relay_mobile_devices"
1554 - },
1555 - {
1556 - "columns": ["id"],
1557 - "nameExplicit": false,
1558 - "name": "relay_delivery_attempts_pkey",
1559 - "schema": "public",
1560 - "table": "relay_delivery_attempts",
1561 - "entityType": "pks"
1562 - },
1563 - {
1564 - "columns": ["credential_id"],
1565 - "nameExplicit": false,
1566 - "name": "relay_environment_credentials_pkey",
1567 - "schema": "public",
1568 - "table": "relay_environment_credentials",
1569 - "entityType": "pks"
1570 - },
1571 - {
1572 - "columns": ["user_id"],
1573 - "nameExplicit": false,
1574 - "name": "relay_managed_tunnel_limits_pkey",
1575 - "schema": "public",
1576 - "table": "relay_managed_tunnel_limits",
1577 - "entityType": "pks"
21 + "reads": ["n|tbl|public.relay_environment_links", "n|sch|public"]
22 }
23 ],
1580 - "renames": []
24 + "deltas": [
25 + {
26 + "op": "create",
27 + "row": {
28 + "schema": "public",
29 + "table": "relay_environment_links",
30 + "name": "hold_webhooks_while_offline",
31 + "type": "boolean",
32 + "typeSchema": null,
33 + "notNull": true,
34 + "dimensions": 0,
35 + "default": "false",
36 + "generated": null,
37 + "identity": null,
38 + "entityType": "columns"
39 + }
40 + }
41 + ]
42 }
infra/relay/migrations/postgres/20261005232034_managed_endpoint_tunnel_released_at/snapshot.json
+32 -1584
@@ -1,1594 +1,42 @@
1 {
2 - "version": "8",
2 + "type": "diff",
3 + "version": "9",
4 "dialect": "postgres",
5 "id": "7b10c420-1566-4dfc-8e9c-c73efa561d3b",
6 "prevIds": ["13972659-45db-4ce9-9818-523b450bceca"],
6 - "ddl": [
7 + "footprints": [
8 {
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_managed_endpoint_allocations",
46 - "entityType": "tables",
47 - "schema": "public"
48 - },
49 - {
50 - "isRlsEnabled": false,
51 - "name": "relay_managed_tunnel_limits",
52 - "entityType": "tables",
53 - "schema": "public"
54 - },
55 - {
56 - "isRlsEnabled": false,
57 - "name": "relay_mobile_devices",
58 - "entityType": "tables",
59 - "schema": "public"
60 - },
61 - {
62 - "type": "varchar(191)",
63 - "typeSchema": null,
64 - "notNull": true,
65 - "dimensions": 0,
66 - "default": null,
67 - "generated": null,
68 - "identity": null,
69 - "name": "environment_id",
70 - "entityType": "columns",
71 - "schema": "public",
72 - "table": "relay_agent_activity_rows"
73 - },
74 - {
75 - "type": "text",
76 - "typeSchema": null,
77 - "notNull": true,
78 - "dimensions": 0,
79 - "default": null,
80 - "generated": null,
81 - "identity": null,
82 - "name": "environment_public_key",
83 - "entityType": "columns",
84 - "schema": "public",
85 - "table": "relay_agent_activity_rows"
86 - },
87 - {
88 - "type": "varchar(512)",
89 - "typeSchema": null,
90 - "notNull": true,
91 - "dimensions": 0,
92 - "default": null,
93 - "generated": null,
94 - "identity": null,
95 - "name": "thread_id",
96 - "entityType": "columns",
97 - "schema": "public",
98 - "table": "relay_agent_activity_rows"
99 - },
100 - {
101 - "type": "jsonb",
102 - "typeSchema": null,
103 - "notNull": true,
104 - "dimensions": 0,
105 - "default": null,
106 - "generated": null,
107 - "identity": null,
108 - "name": "state_json",
109 - "entityType": "columns",
110 - "schema": "public",
111 - "table": "relay_agent_activity_rows"
112 - },
113 - {
114 - "type": "varchar(64)",
115 - "typeSchema": null,
116 - "notNull": true,
117 - "dimensions": 0,
118 - "default": null,
119 - "generated": null,
120 - "identity": null,
121 - "name": "updated_at",
122 - "entityType": "columns",
123 - "schema": "public",
124 - "table": "relay_agent_activity_rows"
125 - },
126 - {
127 - "type": "varchar(64)",
128 - "typeSchema": null,
129 - "notNull": true,
130 - "dimensions": 0,
131 - "default": null,
132 - "generated": null,
133 - "identity": null,
134 - "name": "created_at",
135 - "entityType": "columns",
136 - "schema": "public",
137 - "table": "relay_agent_activity_rows"
138 - },
139 - {
140 - "type": "varchar(36)",
141 - "typeSchema": null,
142 - "notNull": true,
143 - "dimensions": 0,
144 - "default": null,
145 - "generated": null,
146 - "identity": null,
147 - "name": "id",
148 - "entityType": "columns",
149 - "schema": "public",
150 - "table": "relay_delivery_attempts"
151 - },
152 - {
153 - "type": "varchar(64)",
154 - "typeSchema": null,
155 - "notNull": true,
156 - "dimensions": 0,
157 - "default": null,
158 - "generated": null,
159 - "identity": null,
160 - "name": "created_at",
161 - "entityType": "columns",
162 - "schema": "public",
163 - "table": "relay_delivery_attempts"
164 - },
165 - {
166 - "type": "varchar(255)",
167 - "typeSchema": null,
168 - "notNull": false,
169 - "dimensions": 0,
170 - "default": null,
171 - "generated": null,
172 - "identity": null,
173 - "name": "user_id",
174 - "entityType": "columns",
175 - "schema": "public",
176 - "table": "relay_delivery_attempts"
177 - },
178 - {
179 - "type": "varchar(191)",
180 - "typeSchema": null,
181 - "notNull": false,
182 - "dimensions": 0,
183 - "default": null,
184 - "generated": null,
185 - "identity": null,
186 - "name": "environment_id",
187 - "entityType": "columns",
188 - "schema": "public",
189 - "table": "relay_delivery_attempts"
190 - },
191 - {
192 - "type": "varchar(512)",
193 - "typeSchema": null,
194 - "notNull": false,
195 - "dimensions": 0,
196 - "default": null,
197 - "generated": null,
198 - "identity": null,
199 - "name": "thread_id",
200 - "entityType": "columns",
201 - "schema": "public",
202 - "table": "relay_delivery_attempts"
203 - },
204 - {
205 - "type": "varchar(255)",
206 - "typeSchema": null,
207 - "notNull": false,
208 - "dimensions": 0,
209 - "default": null,
210 - "generated": null,
211 - "identity": null,
212 - "name": "device_id",
213 - "entityType": "columns",
214 - "schema": "public",
215 - "table": "relay_delivery_attempts"
216 - },
217 - {
218 - "type": "varchar(64)",
219 - "typeSchema": null,
220 - "notNull": true,
221 - "dimensions": 0,
222 - "default": null,
223 - "generated": null,
224 - "identity": null,
225 - "name": "kind",
226 - "entityType": "columns",
227 - "schema": "public",
228 - "table": "relay_delivery_attempts"
229 - },
230 - {
231 - "type": "varchar(64)",
232 - "typeSchema": null,
233 - "notNull": false,
234 - "dimensions": 0,
235 - "default": null,
236 - "generated": null,
237 - "identity": null,
238 - "name": "source_job_id",
239 - "entityType": "columns",
240 - "schema": "public",
241 - "table": "relay_delivery_attempts"
242 - },
243 - {
244 - "type": "varchar(16)",
245 - "typeSchema": null,
246 - "notNull": false,
247 - "dimensions": 0,
248 - "default": null,
249 - "generated": null,
250 - "identity": null,
251 - "name": "token_suffix",
252 - "entityType": "columns",
253 - "schema": "public",
254 - "table": "relay_delivery_attempts"
255 - },
256 - {
257 - "type": "integer",
258 - "typeSchema": null,
259 - "notNull": false,
260 - "dimensions": 0,
261 - "default": null,
262 - "generated": null,
263 - "identity": null,
264 - "name": "apns_status",
265 - "entityType": "columns",
266 - "schema": "public",
267 - "table": "relay_delivery_attempts"
268 - },
269 - {
270 - "type": "text",
271 - "typeSchema": null,
272 - "notNull": false,
273 - "dimensions": 0,
274 - "default": null,
275 - "generated": null,
276 - "identity": null,
277 - "name": "apns_reason",
278 - "entityType": "columns",
279 - "schema": "public",
280 - "table": "relay_delivery_attempts"
281 - },
282 - {
283 - "type": "varchar(128)",
284 - "typeSchema": null,
285 - "notNull": false,
286 - "dimensions": 0,
287 - "default": null,
288 - "generated": null,
289 - "identity": null,
290 - "name": "apns_id",
291 - "entityType": "columns",
292 - "schema": "public",
293 - "table": "relay_delivery_attempts"
294 - },
295 - {
296 - "type": "text",
297 - "typeSchema": null,
298 - "notNull": false,
299 - "dimensions": 0,
300 - "default": null,
301 - "generated": null,
302 - "identity": null,
303 - "name": "transport_error",
304 - "entityType": "columns",
305 - "schema": "public",
306 - "table": "relay_delivery_attempts"
307 - },
308 - {
309 - "type": "varchar(128)",
310 - "typeSchema": null,
311 - "notNull": true,
312 - "dimensions": 0,
313 - "default": null,
314 - "generated": null,
315 - "identity": null,
316 - "name": "thumbprint",
317 - "entityType": "columns",
318 - "schema": "public",
319 - "table": "relay_dpop_proofs"
320 - },
321 - {
322 - "type": "varchar(255)",
323 - "typeSchema": null,
324 - "notNull": true,
325 - "dimensions": 0,
326 - "default": null,
327 - "generated": null,
328 - "identity": null,
329 - "name": "jti",
330 - "entityType": "columns",
331 - "schema": "public",
332 - "table": "relay_dpop_proofs"
333 - },
334 - {
335 - "type": "integer",
336 - "typeSchema": null,
337 - "notNull": true,
338 - "dimensions": 0,
339 - "default": null,
340 - "generated": null,
341 - "identity": null,
342 - "name": "iat",
343 - "entityType": "columns",
344 - "schema": "public",
345 - "table": "relay_dpop_proofs"
346 - },
347 - {
348 - "type": "varchar(64)",
349 - "typeSchema": null,
350 - "notNull": true,
351 - "dimensions": 0,
352 - "default": null,
353 - "generated": null,
354 - "identity": null,
355 - "name": "expires_at",
356 - "entityType": "columns",
357 - "schema": "public",
358 - "table": "relay_dpop_proofs"
359 - },
360 - {
361 - "type": "varchar(64)",
362 - "typeSchema": null,
363 - "notNull": true,
364 - "dimensions": 0,
365 - "default": null,
366 - "generated": null,
367 - "identity": null,
368 - "name": "created_at",
369 - "entityType": "columns",
370 - "schema": "public",
371 - "table": "relay_dpop_proofs"
372 - },
373 - {
374 - "type": "varchar(64)",
375 - "typeSchema": null,
376 - "notNull": true,
377 - "dimensions": 0,
378 - "default": null,
379 - "generated": null,
380 - "identity": null,
381 - "name": "credential_id",
382 - "entityType": "columns",
383 - "schema": "public",
384 - "table": "relay_environment_credentials"
385 - },
386 - {
387 - "type": "varchar(191)",
388 - "typeSchema": null,
389 - "notNull": true,
390 - "dimensions": 0,
391 - "default": null,
392 - "generated": null,
393 - "identity": null,
394 - "name": "environment_id",
395 - "entityType": "columns",
396 - "schema": "public",
397 - "table": "relay_environment_credentials"
398 - },
399 - {
400 - "type": "text",
401 - "typeSchema": null,
402 - "notNull": true,
403 - "dimensions": 0,
404 - "default": null,
405 - "generated": null,
406 - "identity": null,
407 - "name": "environment_public_key",
408 - "entityType": "columns",
409 - "schema": "public",
410 - "table": "relay_environment_credentials"
411 - },
412 - {
413 - "type": "varchar(191)",
414 - "typeSchema": null,
415 - "notNull": true,
416 - "dimensions": 0,
417 - "default": null,
418 - "generated": null,
419 - "identity": null,
420 - "name": "credential_hash",
421 - "entityType": "columns",
422 - "schema": "public",
423 - "table": "relay_environment_credentials"
424 - },
425 - {
426 - "type": "varchar(64)",
427 - "typeSchema": null,
428 - "notNull": false,
429 - "dimensions": 0,
430 - "default": null,
431 - "generated": null,
432 - "identity": null,
433 - "name": "revoked_at",
434 - "entityType": "columns",
435 - "schema": "public",
436 - "table": "relay_environment_credentials"
437 - },
438 - {
439 - "type": "varchar(64)",
440 - "typeSchema": null,
441 - "notNull": true,
442 - "dimensions": 0,
443 - "default": null,
444 - "generated": null,
445 - "identity": null,
446 - "name": "created_at",
447 - "entityType": "columns",
448 - "schema": "public",
449 - "table": "relay_environment_credentials"
450 - },
451 - {
452 - "type": "varchar(64)",
453 - "typeSchema": null,
454 - "notNull": true,
455 - "dimensions": 0,
456 - "default": null,
457 - "generated": null,
458 - "identity": null,
459 - "name": "updated_at",
460 - "entityType": "columns",
461 - "schema": "public",
462 - "table": "relay_environment_credentials"
463 - },
464 - {
465 - "type": "varchar(191)",
466 - "typeSchema": null,
467 - "notNull": true,
468 - "dimensions": 0,
469 - "default": null,
470 - "generated": null,
471 - "identity": null,
472 - "name": "user_id",
473 - "entityType": "columns",
474 - "schema": "public",
475 - "table": "relay_environment_links"
476 - },
477 - {
478 - "type": "varchar(191)",
479 - "typeSchema": null,
480 - "notNull": true,
481 - "dimensions": 0,
482 - "default": null,
483 - "generated": null,
484 - "identity": null,
485 - "name": "environment_id",
486 - "entityType": "columns",
487 - "schema": "public",
488 - "table": "relay_environment_links"
489 - },
490 - {
491 - "type": "text",
492 - "typeSchema": null,
493 - "notNull": true,
494 - "dimensions": 0,
495 - "default": "'T3 Environment'",
496 - "generated": null,
497 - "identity": null,
498 - "name": "environment_label",
499 - "entityType": "columns",
500 - "schema": "public",
501 - "table": "relay_environment_links"
502 - },
503 - {
504 - "type": "text",
505 - "typeSchema": null,
506 - "notNull": true,
507 - "dimensions": 0,
508 - "default": null,
509 - "generated": null,
510 - "identity": null,
511 - "name": "environment_public_key",
512 - "entityType": "columns",
513 - "schema": "public",
514 - "table": "relay_environment_links"
515 - },
516 - {
517 - "type": "text",
518 - "typeSchema": null,
519 - "notNull": true,
520 - "dimensions": 0,
521 - "default": null,
522 - "generated": null,
523 - "identity": null,
524 - "name": "endpoint_http_base_url",
525 - "entityType": "columns",
526 - "schema": "public",
527 - "table": "relay_environment_links"
528 - },
529 - {
530 - "type": "text",
531 - "typeSchema": null,
532 - "notNull": true,
533 - "dimensions": 0,
534 - "default": null,
535 - "generated": null,
536 - "identity": null,
537 - "name": "endpoint_ws_base_url",
538 - "entityType": "columns",
539 - "schema": "public",
540 - "table": "relay_environment_links"
541 - },
542 - {
543 - "type": "varchar(32)",
544 - "typeSchema": null,
545 - "notNull": true,
546 - "dimensions": 0,
547 - "default": null,
548 - "generated": null,
549 - "identity": null,
550 - "name": "endpoint_provider_kind",
551 - "entityType": "columns",
552 - "schema": "public",
553 - "table": "relay_environment_links"
554 - },
555 - {
556 - "type": "boolean",
557 - "typeSchema": null,
558 - "notNull": true,
559 - "dimensions": 0,
560 - "default": "true",
561 - "generated": null,
562 - "identity": null,
563 - "name": "notifications_enabled",
564 - "entityType": "columns",
565 - "schema": "public",
566 - "table": "relay_environment_links"
567 - },
568 - {
569 - "type": "boolean",
570 - "typeSchema": null,
571 - "notNull": true,
572 - "dimensions": 0,
573 - "default": "true",
574 - "generated": null,
575 - "identity": null,
576 - "name": "live_activities_enabled",
577 - "entityType": "columns",
578 - "schema": "public",
579 - "table": "relay_environment_links"
580 - },
581 - {
582 - "type": "boolean",
583 - "typeSchema": null,
584 - "notNull": true,
585 - "dimensions": 0,
586 - "default": "false",
587 - "generated": null,
588 - "identity": null,
589 - "name": "managed_tunnels_enabled",
590 - "entityType": "columns",
591 - "schema": "public",
592 - "table": "relay_environment_links"
593 - },
594 - {
595 - "type": "boolean",
596 - "typeSchema": null,
597 - "notNull": true,
598 - "dimensions": 0,
599 - "default": "false",
600 - "generated": null,
601 - "identity": null,
602 - "name": "hold_webhooks_while_offline",
603 - "entityType": "columns",
604 - "schema": "public",
605 - "table": "relay_environment_links"
606 - },
607 - {
608 - "type": "varchar(191)",
609 - "typeSchema": null,
610 - "notNull": false,
611 - "dimensions": 0,
612 - "default": null,
613 - "generated": null,
614 - "identity": null,
615 - "name": "created_by_device_id",
616 - "entityType": "columns",
617 - "schema": "public",
618 - "table": "relay_environment_links"
619 - },
620 - {
621 - "type": "varchar(64)",
622 - "typeSchema": null,
623 - "notNull": false,
624 - "dimensions": 0,
625 - "default": null,
626 - "generated": null,
627 - "identity": null,
628 - "name": "revoked_at",
629 - "entityType": "columns",
630 - "schema": "public",
631 - "table": "relay_environment_links"
632 - },
633 - {
634 - "type": "varchar(64)",
635 - "typeSchema": null,
636 - "notNull": true,
637 - "dimensions": 0,
638 - "default": null,
639 - "generated": null,
640 - "identity": null,
641 - "name": "created_at",
642 - "entityType": "columns",
643 - "schema": "public",
644 - "table": "relay_environment_links"
645 - },
646 - {
647 - "type": "varchar(64)",
648 - "typeSchema": null,
649 - "notNull": true,
650 - "dimensions": 0,
651 - "default": null,
652 - "generated": null,
653 - "identity": null,
654 - "name": "updated_at",
655 - "entityType": "columns",
656 - "schema": "public",
657 - "table": "relay_environment_links"
658 - },
659 - {
660 - "type": "varchar(255)",
661 - "typeSchema": null,
662 - "notNull": true,
663 - "dimensions": 0,
664 - "default": null,
665 - "generated": null,
666 - "identity": null,
667 - "name": "user_id",
668 - "entityType": "columns",
669 - "schema": "public",
670 - "table": "relay_live_activities"
671 - },
672 - {
673 - "type": "varchar(255)",
674 - "typeSchema": null,
675 - "notNull": true,
676 - "dimensions": 0,
677 - "default": null,
678 - "generated": null,
679 - "identity": null,
680 - "name": "device_id",
681 - "entityType": "columns",
682 - "schema": "public",
683 - "table": "relay_live_activities"
684 - },
685 - {
686 - "type": "text",
687 - "typeSchema": null,
688 - "notNull": false,
689 - "dimensions": 0,
690 - "default": null,
691 - "generated": null,
692 - "identity": null,
693 - "name": "activity_push_token",
694 - "entityType": "columns",
695 - "schema": "public",
696 - "table": "relay_live_activities"
697 - },
698 - {
699 - "type": "varchar(64)",
700 - "typeSchema": null,
701 - "notNull": false,
702 - "dimensions": 0,
703 - "default": null,
704 - "generated": null,
705 - "identity": null,
706 - "name": "remote_start_queued_at",
707 - "entityType": "columns",
708 - "schema": "public",
709 - "table": "relay_live_activities"
710 - },
711 - {
712 - "type": "varchar(64)",
713 - "typeSchema": null,
714 - "notNull": false,
715 - "dimensions": 0,
716 - "default": null,
717 - "generated": null,
718 - "identity": null,
719 - "name": "remote_started_at",
720 - "entityType": "columns",
721 - "schema": "public",
722 - "table": "relay_live_activities"
723 - },
724 - {
725 - "type": "varchar(64)",
726 - "typeSchema": null,
727 - "notNull": false,
728 - "dimensions": 0,
729 - "default": null,
730 - "generated": null,
731 - "identity": null,
732 - "name": "ended_at",
733 - "entityType": "columns",
734 - "schema": "public",
735 - "table": "relay_live_activities"
736 - },
737 - {
738 - "type": "jsonb",
739 - "typeSchema": null,
740 - "notNull": false,
741 - "dimensions": 0,
742 - "default": null,
743 - "generated": null,
744 - "identity": null,
745 - "name": "last_aggregate_json",
746 - "entityType": "columns",
747 - "schema": "public",
748 - "table": "relay_live_activities"
749 - },
750 - {
751 - "type": "varchar(64)",
752 - "typeSchema": null,
753 - "notNull": false,
754 - "dimensions": 0,
755 - "default": null,
756 - "generated": null,
757 - "identity": null,
758 - "name": "last_live_activity_delivery_at",
759 - "entityType": "columns",
760 - "schema": "public",
761 - "table": "relay_live_activities"
762 - },
763 - {
764 - "type": "varchar(64)",
765 - "typeSchema": null,
766 - "notNull": true,
767 - "dimensions": 0,
768 - "default": null,
769 - "generated": null,
770 - "identity": null,
771 - "name": "created_at",
772 - "entityType": "columns",
773 - "schema": "public",
774 - "table": "relay_live_activities"
775 - },
776 - {
777 - "type": "varchar(64)",
778 - "typeSchema": null,
779 - "notNull": true,
780 - "dimensions": 0,
781 - "default": null,
782 - "generated": null,
783 - "identity": null,
784 - "name": "updated_at",
785 - "entityType": "columns",
786 - "schema": "public",
787 - "table": "relay_live_activities"
788 - },
789 - {
790 - "type": "varchar(191)",
791 - "typeSchema": null,
792 - "notNull": true,
793 - "dimensions": 0,
794 - "default": null,
795 - "generated": null,
796 - "identity": null,
797 - "name": "user_id",
798 - "entityType": "columns",
799 - "schema": "public",
800 - "table": "relay_managed_endpoint_allocations"
801 - },
802 - {
803 - "type": "varchar(191)",
804 - "typeSchema": null,
805 - "notNull": true,
806 - "dimensions": 0,
807 - "default": null,
808 - "generated": null,
809 - "identity": null,
810 - "name": "environment_id",
811 - "entityType": "columns",
812 - "schema": "public",
813 - "table": "relay_managed_endpoint_allocations"
814 - },
815 - {
816 - "type": "text",
817 - "typeSchema": null,
818 - "notNull": true,
819 - "dimensions": 0,
820 - "default": null,
821 - "generated": null,
822 - "identity": null,
823 - "name": "hostname",
824 - "entityType": "columns",
825 - "schema": "public",
826 - "table": "relay_managed_endpoint_allocations"
827 - },
828 - {
829 - "type": "varchar(191)",
830 - "typeSchema": null,
831 - "notNull": false,
832 - "dimensions": 0,
833 - "default": null,
834 - "generated": null,
835 - "identity": null,
836 - "name": "tunnel_id",
837 - "entityType": "columns",
838 - "schema": "public",
839 - "table": "relay_managed_endpoint_allocations"
840 - },
841 - {
842 - "type": "text",
843 - "typeSchema": null,
844 - "notNull": true,
845 - "dimensions": 0,
846 - "default": null,
847 - "generated": null,
848 - "identity": null,
849 - "name": "tunnel_name",
850 - "entityType": "columns",
851 - "schema": "public",
852 - "table": "relay_managed_endpoint_allocations"
853 - },
854 - {
855 - "type": "varchar(191)",
856 - "typeSchema": null,
857 - "notNull": false,
858 - "dimensions": 0,
859 - "default": null,
860 - "generated": null,
861 - "identity": null,
862 - "name": "dns_record_id",
863 - "entityType": "columns",
864 - "schema": "public",
865 - "table": "relay_managed_endpoint_allocations"
866 - },
867 - {
868 - "type": "varchar(64)",
869 - "typeSchema": null,
870 - "notNull": false,
871 - "dimensions": 0,
872 - "default": null,
873 - "generated": null,
874 - "identity": null,
875 - "name": "ready_at",
876 - "entityType": "columns",
877 - "schema": "public",
878 - "table": "relay_managed_endpoint_allocations"
879 - },
880 - {
881 - "type": "varchar(64)",
882 - "typeSchema": null,
883 - "notNull": false,
884 - "dimensions": 0,
885 - "default": null,
886 - "generated": null,
887 - "identity": null,
888 - "name": "recovery_enabled_at",
889 - "entityType": "columns",
890 - "schema": "public",
891 - "table": "relay_managed_endpoint_allocations"
892 - },
893 - {
894 - "type": "text",
895 - "typeSchema": null,
896 - "notNull": false,
897 - "dimensions": 0,
898 - "default": null,
899 - "generated": null,
900 - "identity": null,
901 - "name": "recovery_environment_public_key",
902 - "entityType": "columns",
903 - "schema": "public",
904 - "table": "relay_managed_endpoint_allocations"
905 - },
906 - {
907 - "type": "varchar(64)",
908 - "typeSchema": null,
909 - "notNull": false,
910 - "dimensions": 0,
911 - "default": null,
912 - "generated": null,
913 - "identity": null,
914 - "name": "tunnel_released_at",
915 - "entityType": "columns",
916 - "schema": "public",
917 - "table": "relay_managed_endpoint_allocations"
918 - },
919 - {
920 - "type": "jsonb",
921 - "typeSchema": null,
922 - "notNull": false,
923 - "dimensions": 0,
924 - "default": null,
925 - "generated": null,
926 - "identity": null,
927 - "name": "origin",
928 - "entityType": "columns",
929 - "schema": "public",
930 - "table": "relay_managed_endpoint_allocations"
931 - },
932 - {
933 - "type": "integer",
934 - "typeSchema": null,
935 - "notNull": true,
936 - "dimensions": 0,
937 - "default": "0",
938 - "generated": null,
939 - "identity": null,
940 - "name": "generation",
941 - "entityType": "columns",
942 - "schema": "public",
943 - "table": "relay_managed_endpoint_allocations"
944 - },
945 - {
946 - "type": "varchar(64)",
947 - "typeSchema": null,
948 - "notNull": true,
949 - "dimensions": 0,
950 - "default": null,
951 - "generated": null,
952 - "identity": null,
953 - "name": "created_at",
954 - "entityType": "columns",
955 - "schema": "public",
956 - "table": "relay_managed_endpoint_allocations"
957 - },
958 - {
959 - "type": "varchar(64)",
960 - "typeSchema": null,
961 - "notNull": true,
962 - "dimensions": 0,
963 - "default": null,
964 - "generated": null,
965 - "identity": null,
966 - "name": "updated_at",
967 - "entityType": "columns",
968 - "schema": "public",
969 - "table": "relay_managed_endpoint_allocations"
970 - },
971 - {
972 - "type": "varchar(191)",
973 - "typeSchema": null,
974 - "notNull": true,
975 - "dimensions": 0,
976 - "default": null,
977 - "generated": null,
978 - "identity": null,
979 - "name": "user_id",
980 - "entityType": "columns",
981 - "schema": "public",
982 - "table": "relay_managed_tunnel_limits"
983 - },
984 - {
985 - "type": "integer",
986 - "typeSchema": null,
987 - "notNull": true,
988 - "dimensions": 0,
989 - "default": null,
990 - "generated": null,
991 - "identity": null,
992 - "name": "max_tunnels",
993 - "entityType": "columns",
994 - "schema": "public",
995 - "table": "relay_managed_tunnel_limits"
996 - },
997 - {
998 - "type": "varchar(64)",
999 - "typeSchema": null,
1000 - "notNull": true,
1001 - "dimensions": 0,
1002 - "default": null,
1003 - "generated": null,
1004 - "identity": null,
1005 - "name": "created_at",
1006 - "entityType": "columns",
1007 - "schema": "public",
1008 - "table": "relay_managed_tunnel_limits"
1009 - },
1010 - {
1011 - "type": "varchar(64)",
1012 - "typeSchema": null,
1013 - "notNull": true,
1014 - "dimensions": 0,
1015 - "default": null,
1016 - "generated": null,
1017 - "identity": null,
1018 - "name": "updated_at",
1019 - "entityType": "columns",
1020 - "schema": "public",
1021 - "table": "relay_managed_tunnel_limits"
1022 - },
1023 - {
1024 - "type": "varchar(255)",
1025 - "typeSchema": null,
1026 - "notNull": true,
1027 - "dimensions": 0,
1028 - "default": null,
1029 - "generated": null,
1030 - "identity": null,
1031 - "name": "user_id",
1032 - "entityType": "columns",
1033 - "schema": "public",
1034 - "table": "relay_mobile_devices"
1035 - },
1036 - {
1037 - "type": "varchar(255)",
1038 - "typeSchema": null,
1039 - "notNull": true,
1040 - "dimensions": 0,
1041 - "default": null,
1042 - "generated": null,
1043 - "identity": null,
1044 - "name": "device_id",
1045 - "entityType": "columns",
1046 - "schema": "public",
1047 - "table": "relay_mobile_devices"
1048 - },
1049 - {
1050 - "type": "text",
1051 - "typeSchema": null,
1052 - "notNull": true,
1053 - "dimensions": 0,
1054 - "default": "'iOS device'",
1055 - "generated": null,
1056 - "identity": null,
1057 - "name": "label",
1058 - "entityType": "columns",
1059 - "schema": "public",
1060 - "table": "relay_mobile_devices"
1061 - },
1062 - {
1063 - "type": "varchar(16)",
1064 - "typeSchema": null,
1065 - "notNull": true,
1066 - "dimensions": 0,
1067 - "default": null,
1068 - "generated": null,
1069 - "identity": null,
1070 - "name": "platform",
1071 - "entityType": "columns",
1072 - "schema": "public",
1073 - "table": "relay_mobile_devices"
1074 - },
1075 - {
1076 - "type": "integer",
1077 - "typeSchema": null,
1078 - "notNull": false,
1079 - "dimensions": 0,
1080 - "default": null,
1081 - "generated": null,
1082 - "identity": null,
1083 - "name": "ios_major_version",
1084 - "entityType": "columns",
1085 - "schema": "public",
1086 - "table": "relay_mobile_devices"
1087 - },
1088 - {
1089 - "type": "integer",
1090 - "typeSchema": null,
1091 - "notNull": false,
1092 - "dimensions": 0,
1093 - "default": null,
1094 - "generated": null,
1095 - "identity": null,
1096 - "name": "android_api_level",
1097 - "entityType": "columns",
1098 - "schema": "public",
1099 - "table": "relay_mobile_devices"
1100 - },
1101 - {
1102 - "type": "varchar(64)",
1103 - "typeSchema": null,
1104 - "notNull": false,
1105 - "dimensions": 0,
1106 - "default": null,
1107 - "generated": null,
1108 - "identity": null,
1109 - "name": "app_version",
1110 - "entityType": "columns",
1111 - "schema": "public",
1112 - "table": "relay_mobile_devices"
1113 - },
1114 - {
1115 - "type": "varchar(255)",
1116 - "typeSchema": null,
1117 - "notNull": false,
1118 - "dimensions": 0,
1119 - "default": null,
1120 - "generated": null,
1121 - "identity": null,
1122 - "name": "bundle_id",
1123 - "entityType": "columns",
1124 - "schema": "public",
1125 - "table": "relay_mobile_devices"
1126 - },
1127 - {
1128 - "type": "varchar(16)",
1129 - "typeSchema": null,
1130 - "notNull": false,
1131 - "dimensions": 0,
1132 - "default": null,
1133 - "generated": null,
1134 - "identity": null,
1135 - "name": "aps_environment",
1136 - "entityType": "columns",
1137 - "schema": "public",
1138 - "table": "relay_mobile_devices"
1139 - },
1140 - {
1141 - "type": "text",
1142 - "typeSchema": null,
1143 - "notNull": false,
1144 - "dimensions": 0,
1145 - "default": null,
1146 - "generated": null,
1147 - "identity": null,
1148 - "name": "push_token",
1149 - "entityType": "columns",
1150 - "schema": "public",
1151 - "table": "relay_mobile_devices"
1152 - },
1153 - {
1154 - "type": "text",
1155 - "typeSchema": null,
1156 - "notNull": false,
1157 - "dimensions": 0,
1158 - "default": null,
1159 - "generated": null,
1160 - "identity": null,
1161 - "name": "push_to_start_token",
1162 - "entityType": "columns",
1163 - "schema": "public",
1164 - "table": "relay_mobile_devices"
1165 - },
1166 - {
1167 - "type": "jsonb",
1168 - "typeSchema": null,
1169 - "notNull": true,
1170 - "dimensions": 0,
1171 - "default": null,
1172 - "generated": null,
1173 - "identity": null,
1174 - "name": "preferences_json",
1175 - "entityType": "columns",
1176 - "schema": "public",
1177 - "table": "relay_mobile_devices"
1178 - },
1179 - {
1180 - "type": "varchar(64)",
1181 - "typeSchema": null,
1182 - "notNull": true,
1183 - "dimensions": 0,
1184 - "default": null,
1185 - "generated": null,
1186 - "identity": null,
1187 - "name": "created_at",
1188 - "entityType": "columns",
1189 - "schema": "public",
1190 - "table": "relay_mobile_devices"
1191 - },
1192 - {
1193 - "type": "varchar(64)",
1194 - "typeSchema": null,
1195 - "notNull": true,
1196 - "dimensions": 0,
1197 - "default": null,
1198 - "generated": null,
1199 - "identity": null,
1200 - "name": "updated_at",
1201 - "entityType": "columns",
1202 - "schema": "public",
1203 - "table": "relay_mobile_devices"
1204 - },
1205 - {
1206 - "nameExplicit": true,
1207 - "columns": [
1208 - {
1209 - "value": "updated_at",
1210 - "isExpression": false,
1211 - "asc": true,
1212 - "nullsFirst": false,
1213 - "opclass": null
1214 - }
9 + "statementType": "add_column",
10 + "statementTarget": [
11 + "column",
12 + "public",
13 + "relay_managed_endpoint_allocations",
14 + "tunnel_released_at"
15 ],
1216 - "isUnique": false,
1217 - "where": null,
1218 - "with": "",
1219 - "method": "btree",
1220 - "concurrently": false,
1221 - "name": "idx_relay_agent_activity_rows_updated",
1222 - "entityType": "indexes",
1223 - "schema": "public",
1224 - "table": "relay_agent_activity_rows"
1225 - },
1226 - {
1227 - "nameExplicit": true,
1228 - "columns": [
1229 - {
1230 - "value": "environment_id",
1231 - "isExpression": false,
1232 - "asc": true,
1233 - "nullsFirst": false,
1234 - "opclass": null
1235 - },
1236 - {
1237 - "value": "thread_id",
1238 - "isExpression": false,
1239 - "asc": true,
1240 - "nullsFirst": false,
1241 - "opclass": null
1242 - },
1243 - {
1244 - "value": "created_at",
1245 - "isExpression": false,
1246 - "asc": true,
1247 - "nullsFirst": false,
1248 - "opclass": null
1249 - }
16 + "writes": [
17 + "s|col|public.relay_managed_endpoint_allocations.tunnel_released_at",
18 + "n|col|public.relay_managed_endpoint_allocations.tunnel_released_at",
19 + "e|col|public.relay_managed_endpoint_allocations.tunnel_released_at"
20 ],
1251 - "isUnique": false,
1252 - "where": null,
1253 - "with": "",
1254 - "method": "btree",
1255 - "concurrently": false,
1256 - "name": "idx_relay_delivery_attempts_environment",
1257 - "entityType": "indexes",
1258 - "schema": "public",
1259 - "table": "relay_delivery_attempts"
1260 - },
1261 - {
1262 - "nameExplicit": true,
1263 - "columns": [
1264 - {
1265 - "value": "source_job_id",
1266 - "isExpression": false,
1267 - "asc": true,
1268 - "nullsFirst": false,
1269 - "opclass": null
1270 - }
1271 - ],
1272 - "isUnique": true,
1273 - "where": null,
1274 - "with": "",
1275 - "method": "btree",
1276 - "concurrently": false,
1277 - "name": "idx_relay_delivery_attempts_source_job",
1278 - "entityType": "indexes",
1279 - "schema": "public",
1280 - "table": "relay_delivery_attempts"
1281 - },
1282 - {
1283 - "nameExplicit": true,
1284 - "columns": [
1285 - {
1286 - "value": "expires_at",
1287 - "isExpression": false,
1288 - "asc": true,
1289 - "nullsFirst": false,
1290 - "opclass": null
1291 - }
1292 - ],
1293 - "isUnique": false,
1294 - "where": null,
1295 - "with": "",
1296 - "method": "btree",
1297 - "concurrently": false,
1298 - "name": "idx_relay_dpop_proofs_expires_at",
1299 - "entityType": "indexes",
1300 - "schema": "public",
1301 - "table": "relay_dpop_proofs"
1302 - },
1303 - {
1304 - "nameExplicit": true,
1305 - "columns": [
1306 - {
1307 - "value": "credential_hash",
1308 - "isExpression": false,
1309 - "asc": true,
1310 - "nullsFirst": false,
1311 - "opclass": null
1312 - }
1313 - ],
1314 - "isUnique": true,
1315 - "where": null,
1316 - "with": "",
1317 - "method": "btree",
1318 - "concurrently": false,
1319 - "name": "idx_relay_environment_credentials_hash",
1320 - "entityType": "indexes",
1321 - "schema": "public",
1322 - "table": "relay_environment_credentials"
1323 - },
1324 - {
1325 - "nameExplicit": true,
1326 - "columns": [
1327 - {
1328 - "value": "environment_id",
1329 - "isExpression": false,
1330 - "asc": true,
1331 - "nullsFirst": false,
1332 - "opclass": null
1333 - },
1334 - {
1335 - "value": "revoked_at",
1336 - "isExpression": false,
1337 - "asc": true,
1338 - "nullsFirst": false,
1339 - "opclass": null
1340 - }
1341 - ],
1342 - "isUnique": false,
1343 - "where": null,
1344 - "with": "",
1345 - "method": "btree",
1346 - "concurrently": false,
1347 - "name": "idx_relay_environment_credentials_environment",
1348 - "entityType": "indexes",
1349 - "schema": "public",
1350 - "table": "relay_environment_credentials"
1351 - },
1352 - {
1353 - "nameExplicit": true,
1354 - "columns": [
1355 - {
1356 - "value": "environment_id",
1357 - "isExpression": false,
1358 - "asc": true,
1359 - "nullsFirst": false,
1360 - "opclass": null
1361 - },
1362 - {
1363 - "value": "environment_public_key",
1364 - "isExpression": false,
1365 - "asc": true,
1366 - "nullsFirst": false,
1367 - "opclass": null
1368 - },
1369 - {
1370 - "value": "revoked_at",
1371 - "isExpression": false,
1372 - "asc": true,
1373 - "nullsFirst": false,
1374 - "opclass": null
1375 - }
1376 - ],
1377 - "isUnique": false,
1378 - "where": null,
1379 - "with": "",
1380 - "method": "btree",
1381 - "concurrently": false,
1382 - "name": "idx_relay_environment_credentials_environment_key",
1383 - "entityType": "indexes",
1384 - "schema": "public",
1385 - "table": "relay_environment_credentials"
1386 - },
1387 - {
1388 - "nameExplicit": true,
1389 - "columns": [
1390 - {
1391 - "value": "environment_id",
1392 - "isExpression": false,
1393 - "asc": true,
1394 - "nullsFirst": false,
1395 - "opclass": null
1396 - },
1397 - {
1398 - "value": "revoked_at",
1399 - "isExpression": false,
1400 - "asc": true,
1401 - "nullsFirst": false,
1402 - "opclass": null
1403 - }
1404 - ],
1405 - "isUnique": false,
1406 - "where": null,
1407 - "with": "",
1408 - "method": "btree",
1409 - "concurrently": false,
1410 - "name": "idx_relay_environment_links_environment",
1411 - "entityType": "indexes",
1412 - "schema": "public",
1413 - "table": "relay_environment_links"
1414 - },
1415 - {
1416 - "nameExplicit": true,
1417 - "columns": [
1418 - {
1419 - "value": "activity_push_token",
1420 - "isExpression": false,
1421 - "asc": true,
1422 - "nullsFirst": false,
1423 - "opclass": null
1424 - }
1425 - ],
1426 - "isUnique": true,
1427 - "where": null,
1428 - "with": "",
1429 - "method": "btree",
1430 - "concurrently": false,
1431 - "name": "idx_relay_live_activities_activity_push_token",
1432 - "entityType": "indexes",
1433 - "schema": "public",
1434 - "table": "relay_live_activities"
1435 - },
1436 - {
1437 - "nameExplicit": true,
1438 - "columns": [
1439 - {
1440 - "value": "hostname",
1441 - "isExpression": false,
1442 - "asc": true,
1443 - "nullsFirst": false,
1444 - "opclass": null
1445 - }
1446 - ],
1447 - "isUnique": true,
1448 - "where": null,
1449 - "with": "",
1450 - "method": "btree",
1451 - "concurrently": false,
1452 - "name": "idx_relay_managed_endpoint_allocations_hostname",
1453 - "entityType": "indexes",
1454 - "schema": "public",
1455 - "table": "relay_managed_endpoint_allocations"
1456 - },
1457 - {
1458 - "nameExplicit": true,
1459 - "columns": [
1460 - {
1461 - "value": "tunnel_name",
1462 - "isExpression": false,
1463 - "asc": true,
1464 - "nullsFirst": false,
1465 - "opclass": null
1466 - }
1467 - ],
1468 - "isUnique": true,
1469 - "where": null,
1470 - "with": "",
1471 - "method": "btree",
1472 - "concurrently": false,
1473 - "name": "idx_relay_managed_endpoint_allocations_tunnel_name",
1474 - "entityType": "indexes",
1475 - "schema": "public",
1476 - "table": "relay_managed_endpoint_allocations"
1477 - },
1478 - {
1479 - "nameExplicit": true,
1480 - "columns": [
1481 - {
1482 - "value": "push_token",
1483 - "isExpression": false,
1484 - "asc": true,
1485 - "nullsFirst": false,
1486 - "opclass": null
1487 - }
1488 - ],
1489 - "isUnique": true,
1490 - "where": null,
1491 - "with": "",
1492 - "method": "btree",
1493 - "concurrently": false,
1494 - "name": "idx_relay_mobile_devices_push_token",
1495 - "entityType": "indexes",
1496 - "schema": "public",
1497 - "table": "relay_mobile_devices"
1498 - },
1499 - {
1500 - "nameExplicit": true,
1501 - "columns": [
1502 - {
1503 - "value": "push_to_start_token",
1504 - "isExpression": false,
1505 - "asc": true,
1506 - "nullsFirst": false,
1507 - "opclass": null
1508 - }
1509 - ],
1510 - "isUnique": true,
1511 - "where": null,
1512 - "with": "",
1513 - "method": "btree",
1514 - "concurrently": false,
1515 - "name": "idx_relay_mobile_devices_push_to_start_token",
1516 - "entityType": "indexes",
1517 - "schema": "public",
1518 - "table": "relay_mobile_devices"
1519 - },
1520 - {
1521 - "columns": ["environment_id", "environment_public_key", "thread_id"],
1522 - "nameExplicit": false,
1523 - "name": "relay_agent_activity_rows_pkey",
1524 - "entityType": "pks",
1525 - "schema": "public",
1526 - "table": "relay_agent_activity_rows"
1527 - },
1528 - {
1529 - "columns": ["thumbprint", "jti"],
1530 - "nameExplicit": false,
1531 - "name": "relay_dpop_proofs_pkey",
1532 - "entityType": "pks",
1533 - "schema": "public",
1534 - "table": "relay_dpop_proofs"
1535 - },
1536 - {
1537 - "columns": ["user_id", "environment_id"],
1538 - "nameExplicit": false,
1539 - "name": "relay_environment_links_pkey",
1540 - "entityType": "pks",
1541 - "schema": "public",
1542 - "table": "relay_environment_links"
1543 - },
1544 - {
1545 - "columns": ["user_id", "device_id"],
1546 - "nameExplicit": false,
1547 - "name": "relay_live_activities_pkey",
1548 - "entityType": "pks",
1549 - "schema": "public",
1550 - "table": "relay_live_activities"
1551 - },
1552 - {
1553 - "columns": ["user_id", "environment_id"],
1554 - "nameExplicit": false,
1555 - "name": "relay_managed_endpoint_allocations_pkey",
1556 - "entityType": "pks",
1557 - "schema": "public",
1558 - "table": "relay_managed_endpoint_allocations"
1559 - },
1560 - {
1561 - "columns": ["user_id", "device_id"],
1562 - "nameExplicit": false,
1563 - "name": "relay_mobile_devices_pkey",
1564 - "entityType": "pks",
1565 - "schema": "public",
1566 - "table": "relay_mobile_devices"
1567 - },
1568 - {
1569 - "columns": ["id"],
1570 - "nameExplicit": false,
1571 - "name": "relay_delivery_attempts_pkey",
1572 - "schema": "public",
1573 - "table": "relay_delivery_attempts",
1574 - "entityType": "pks"
1575 - },
1576 - {
1577 - "columns": ["credential_id"],
1578 - "nameExplicit": false,
1579 - "name": "relay_environment_credentials_pkey",
1580 - "schema": "public",
1581 - "table": "relay_environment_credentials",
1582 - "entityType": "pks"
1583 - },
1584 - {
1585 - "columns": ["user_id"],
1586 - "nameExplicit": false,
1587 - "name": "relay_managed_tunnel_limits_pkey",
1588 - "schema": "public",
1589 - "table": "relay_managed_tunnel_limits",
1590 - "entityType": "pks"
21 + "reads": ["n|tbl|public.relay_managed_endpoint_allocations", "n|sch|public"]
22 }
23 ],
1593 - "renames": []
24 + "deltas": [
25 + {
26 + "op": "create",
27 + "row": {
28 + "schema": "public",
29 + "table": "relay_managed_endpoint_allocations",
30 + "name": "tunnel_released_at",
31 + "type": "varchar(64)",
32 + "typeSchema": null,
33 + "notNull": false,
34 + "dimensions": 0,
35 + "default": null,
36 + "generated": null,
37 + "identity": null,
38 + "entityType": "columns"
39 + }
40 + }
41 + ]
42 }
infra/relay/migrations/postgres/20261020013101_upstream_api_pauses/snapshot.json
+68 -1626
@@ -1,1634 +1,76 @@
1 {
2 - "version": "8",
2 + "type": "diff",
3 + "version": "9",
4 "dialect": "postgres",
5 "id": "f8594baa-6f4a-4a0d-a7f0-0aa717dfe785",
6 "prevIds": ["7b10c420-1566-4dfc-8e9c-c73efa561d3b"],
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_managed_endpoint_allocations",
46 - "entityType": "tables",
47 - "schema": "public"
48 - },
49 - {
50 - "isRlsEnabled": false,
51 - "name": "relay_managed_tunnel_limits",
52 - "entityType": "tables",
53 - "schema": "public"
54 - },
55 - {
56 - "isRlsEnabled": false,
57 - "name": "relay_mobile_devices",
58 - "entityType": "tables",
59 - "schema": "public"
60 - },
61 - {
62 - "isRlsEnabled": false,
63 - "name": "relay_upstream_api_pauses",
64 - "entityType": "tables",
65 - "schema": "public"
66 - },
67 - {
68 - "type": "varchar(191)",
69 - "typeSchema": null,
70 - "notNull": true,
71 - "dimensions": 0,
72 - "default": null,
73 - "generated": null,
74 - "identity": null,
75 - "name": "environment_id",
76 - "entityType": "columns",
77 - "schema": "public",
78 - "table": "relay_agent_activity_rows"
79 - },
80 - {
81 - "type": "text",
82 - "typeSchema": null,
83 - "notNull": true,
84 - "dimensions": 0,
85 - "default": null,
86 - "generated": null,
87 - "identity": null,
88 - "name": "environment_public_key",
89 - "entityType": "columns",
90 - "schema": "public",
91 - "table": "relay_agent_activity_rows"
92 - },
93 - {
94 - "type": "varchar(512)",
95 - "typeSchema": null,
96 - "notNull": true,
97 - "dimensions": 0,
98 - "default": null,
99 - "generated": null,
100 - "identity": null,
101 - "name": "thread_id",
102 - "entityType": "columns",
103 - "schema": "public",
104 - "table": "relay_agent_activity_rows"
105 - },
106 - {
107 - "type": "jsonb",
108 - "typeSchema": null,
109 - "notNull": true,
110 - "dimensions": 0,
111 - "default": null,
112 - "generated": null,
113 - "identity": null,
114 - "name": "state_json",
115 - "entityType": "columns",
116 - "schema": "public",
117 - "table": "relay_agent_activity_rows"
118 - },
119 - {
120 - "type": "varchar(64)",
121 - "typeSchema": null,
122 - "notNull": true,
123 - "dimensions": 0,
124 - "default": null,
125 - "generated": null,
126 - "identity": null,
127 - "name": "updated_at",
128 - "entityType": "columns",
129 - "schema": "public",
130 - "table": "relay_agent_activity_rows"
131 - },
132 - {
133 - "type": "varchar(64)",
134 - "typeSchema": null,
135 - "notNull": true,
136 - "dimensions": 0,
137 - "default": null,
138 - "generated": null,
139 - "identity": null,
140 - "name": "created_at",
141 - "entityType": "columns",
142 - "schema": "public",
143 - "table": "relay_agent_activity_rows"
144 - },
145 - {
146 - "type": "varchar(36)",
147 - "typeSchema": null,
148 - "notNull": true,
149 - "dimensions": 0,
150 - "default": null,
151 - "generated": null,
152 - "identity": null,
153 - "name": "id",
154 - "entityType": "columns",
155 - "schema": "public",
156 - "table": "relay_delivery_attempts"
157 - },
158 - {
159 - "type": "varchar(64)",
160 - "typeSchema": null,
161 - "notNull": true,
162 - "dimensions": 0,
163 - "default": null,
164 - "generated": null,
165 - "identity": null,
166 - "name": "created_at",
167 - "entityType": "columns",
168 - "schema": "public",
169 - "table": "relay_delivery_attempts"
170 - },
171 - {
172 - "type": "varchar(255)",
173 - "typeSchema": null,
174 - "notNull": false,
175 - "dimensions": 0,
176 - "default": null,
177 - "generated": null,
178 - "identity": null,
179 - "name": "user_id",
180 - "entityType": "columns",
181 - "schema": "public",
182 - "table": "relay_delivery_attempts"
183 - },
184 - {
185 - "type": "varchar(191)",
186 - "typeSchema": null,
187 - "notNull": false,
188 - "dimensions": 0,
189 - "default": null,
190 - "generated": null,
191 - "identity": null,
192 - "name": "environment_id",
193 - "entityType": "columns",
194 - "schema": "public",
195 - "table": "relay_delivery_attempts"
196 - },
197 - {
198 - "type": "varchar(512)",
199 - "typeSchema": null,
200 - "notNull": false,
201 - "dimensions": 0,
202 - "default": null,
203 - "generated": null,
204 - "identity": null,
205 - "name": "thread_id",
206 - "entityType": "columns",
207 - "schema": "public",
208 - "table": "relay_delivery_attempts"
209 - },
210 - {
211 - "type": "varchar(255)",
212 - "typeSchema": null,
213 - "notNull": false,
214 - "dimensions": 0,
215 - "default": null,
216 - "generated": null,
217 - "identity": null,
218 - "name": "device_id",
219 - "entityType": "columns",
220 - "schema": "public",
221 - "table": "relay_delivery_attempts"
222 - },
223 - {
224 - "type": "varchar(64)",
225 - "typeSchema": null,
226 - "notNull": true,
227 - "dimensions": 0,
228 - "default": null,
229 - "generated": null,
230 - "identity": null,
231 - "name": "kind",
232 - "entityType": "columns",
233 - "schema": "public",
234 - "table": "relay_delivery_attempts"
235 - },
236 - {
237 - "type": "varchar(64)",
238 - "typeSchema": null,
239 - "notNull": false,
240 - "dimensions": 0,
241 - "default": null,
242 - "generated": null,
243 - "identity": null,
244 - "name": "source_job_id",
245 - "entityType": "columns",
246 - "schema": "public",
247 - "table": "relay_delivery_attempts"
248 - },
249 - {
250 - "type": "varchar(16)",
251 - "typeSchema": null,
252 - "notNull": false,
253 - "dimensions": 0,
254 - "default": null,
255 - "generated": null,
256 - "identity": null,
257 - "name": "token_suffix",
258 - "entityType": "columns",
259 - "schema": "public",
260 - "table": "relay_delivery_attempts"
261 - },
262 - {
263 - "type": "integer",
264 - "typeSchema": null,
265 - "notNull": false,
266 - "dimensions": 0,
267 - "default": null,
268 - "generated": null,
269 - "identity": null,
270 - "name": "apns_status",
271 - "entityType": "columns",
272 - "schema": "public",
273 - "table": "relay_delivery_attempts"
274 - },
275 - {
276 - "type": "text",
277 - "typeSchema": null,
278 - "notNull": false,
279 - "dimensions": 0,
280 - "default": null,
281 - "generated": null,
282 - "identity": null,
283 - "name": "apns_reason",
284 - "entityType": "columns",
285 - "schema": "public",
286 - "table": "relay_delivery_attempts"
287 - },
288 - {
289 - "type": "varchar(128)",
290 - "typeSchema": null,
291 - "notNull": false,
292 - "dimensions": 0,
293 - "default": null,
294 - "generated": null,
295 - "identity": null,
296 - "name": "apns_id",
297 - "entityType": "columns",
298 - "schema": "public",
299 - "table": "relay_delivery_attempts"
300 - },
301 - {
302 - "type": "text",
303 - "typeSchema": null,
304 - "notNull": false,
305 - "dimensions": 0,
306 - "default": null,
307 - "generated": null,
308 - "identity": null,
309 - "name": "transport_error",
310 - "entityType": "columns",
311 - "schema": "public",
312 - "table": "relay_delivery_attempts"
313 - },
314 - {
315 - "type": "varchar(128)",
316 - "typeSchema": null,
317 - "notNull": true,
318 - "dimensions": 0,
319 - "default": null,
320 - "generated": null,
321 - "identity": null,
322 - "name": "thumbprint",
323 - "entityType": "columns",
324 - "schema": "public",
325 - "table": "relay_dpop_proofs"
326 - },
327 - {
328 - "type": "varchar(255)",
329 - "typeSchema": null,
330 - "notNull": true,
331 - "dimensions": 0,
332 - "default": null,
333 - "generated": null,
334 - "identity": null,
335 - "name": "jti",
336 - "entityType": "columns",
337 - "schema": "public",
338 - "table": "relay_dpop_proofs"
339 - },
340 - {
341 - "type": "integer",
342 - "typeSchema": null,
343 - "notNull": true,
344 - "dimensions": 0,
345 - "default": null,
346 - "generated": null,
347 - "identity": null,
348 - "name": "iat",
349 - "entityType": "columns",
350 - "schema": "public",
351 - "table": "relay_dpop_proofs"
352 - },
353 - {
354 - "type": "varchar(64)",
355 - "typeSchema": null,
356 - "notNull": true,
357 - "dimensions": 0,
358 - "default": null,
359 - "generated": null,
360 - "identity": null,
361 - "name": "expires_at",
362 - "entityType": "columns",
363 - "schema": "public",
364 - "table": "relay_dpop_proofs"
365 - },
366 - {
367 - "type": "varchar(64)",
368 - "typeSchema": null,
369 - "notNull": true,
370 - "dimensions": 0,
371 - "default": null,
372 - "generated": null,
373 - "identity": null,
374 - "name": "created_at",
375 - "entityType": "columns",
376 - "schema": "public",
377 - "table": "relay_dpop_proofs"
378 - },
379 - {
380 - "type": "varchar(64)",
381 - "typeSchema": null,
382 - "notNull": true,
383 - "dimensions": 0,
384 - "default": null,
385 - "generated": null,
386 - "identity": null,
387 - "name": "credential_id",
388 - "entityType": "columns",
389 - "schema": "public",
390 - "table": "relay_environment_credentials"
391 - },
392 - {
393 - "type": "varchar(191)",
394 - "typeSchema": null,
395 - "notNull": true,
396 - "dimensions": 0,
397 - "default": null,
398 - "generated": null,
399 - "identity": null,
400 - "name": "environment_id",
401 - "entityType": "columns",
402 - "schema": "public",
403 - "table": "relay_environment_credentials"
404 - },
405 - {
406 - "type": "text",
407 - "typeSchema": null,
408 - "notNull": true,
409 - "dimensions": 0,
410 - "default": null,
411 - "generated": null,
412 - "identity": null,
413 - "name": "environment_public_key",
414 - "entityType": "columns",
415 - "schema": "public",
416 - "table": "relay_environment_credentials"
417 - },
418 - {
419 - "type": "varchar(191)",
420 - "typeSchema": null,
421 - "notNull": true,
422 - "dimensions": 0,
423 - "default": null,
424 - "generated": null,
425 - "identity": null,
426 - "name": "credential_hash",
427 - "entityType": "columns",
428 - "schema": "public",
429 - "table": "relay_environment_credentials"
430 - },
431 - {
432 - "type": "varchar(64)",
433 - "typeSchema": null,
434 - "notNull": false,
435 - "dimensions": 0,
436 - "default": null,
437 - "generated": null,
438 - "identity": null,
439 - "name": "revoked_at",
440 - "entityType": "columns",
441 - "schema": "public",
442 - "table": "relay_environment_credentials"
443 - },
444 - {
445 - "type": "varchar(64)",
446 - "typeSchema": null,
447 - "notNull": true,
448 - "dimensions": 0,
449 - "default": null,
450 - "generated": null,
451 - "identity": null,
452 - "name": "created_at",
453 - "entityType": "columns",
454 - "schema": "public",
455 - "table": "relay_environment_credentials"
456 - },
457 - {
458 - "type": "varchar(64)",
459 - "typeSchema": null,
460 - "notNull": true,
461 - "dimensions": 0,
462 - "default": null,
463 - "generated": null,
464 - "identity": null,
465 - "name": "updated_at",
466 - "entityType": "columns",
467 - "schema": "public",
468 - "table": "relay_environment_credentials"
469 - },
470 - {
471 - "type": "varchar(191)",
472 - "typeSchema": null,
473 - "notNull": true,
474 - "dimensions": 0,
475 - "default": null,
476 - "generated": null,
477 - "identity": null,
478 - "name": "user_id",
479 - "entityType": "columns",
480 - "schema": "public",
481 - "table": "relay_environment_links"
482 - },
483 - {
484 - "type": "varchar(191)",
485 - "typeSchema": null,
486 - "notNull": true,
487 - "dimensions": 0,
488 - "default": null,
489 - "generated": null,
490 - "identity": null,
491 - "name": "environment_id",
492 - "entityType": "columns",
493 - "schema": "public",
494 - "table": "relay_environment_links"
495 - },
496 - {
497 - "type": "text",
498 - "typeSchema": null,
499 - "notNull": true,
500 - "dimensions": 0,
501 - "default": "'T3 Environment'",
502 - "generated": null,
503 - "identity": null,
504 - "name": "environment_label",
505 - "entityType": "columns",
506 - "schema": "public",
507 - "table": "relay_environment_links"
508 - },
509 - {
510 - "type": "text",
511 - "typeSchema": null,
512 - "notNull": true,
513 - "dimensions": 0,
514 - "default": null,
515 - "generated": null,
516 - "identity": null,
517 - "name": "environment_public_key",
518 - "entityType": "columns",
519 - "schema": "public",
520 - "table": "relay_environment_links"
521 - },
522 - {
523 - "type": "text",
524 - "typeSchema": null,
525 - "notNull": true,
526 - "dimensions": 0,
527 - "default": null,
528 - "generated": null,
529 - "identity": null,
530 - "name": "endpoint_http_base_url",
531 - "entityType": "columns",
532 - "schema": "public",
533 - "table": "relay_environment_links"
534 - },
535 - {
536 - "type": "text",
537 - "typeSchema": null,
538 - "notNull": true,
539 - "dimensions": 0,
540 - "default": null,
541 - "generated": null,
542 - "identity": null,
543 - "name": "endpoint_ws_base_url",
544 - "entityType": "columns",
545 - "schema": "public",
546 - "table": "relay_environment_links"
547 - },
548 - {
549 - "type": "varchar(32)",
550 - "typeSchema": null,
551 - "notNull": true,
552 - "dimensions": 0,
553 - "default": null,
554 - "generated": null,
555 - "identity": null,
556 - "name": "endpoint_provider_kind",
557 - "entityType": "columns",
558 - "schema": "public",
559 - "table": "relay_environment_links"
560 - },
561 - {
562 - "type": "boolean",
563 - "typeSchema": null,
564 - "notNull": true,
565 - "dimensions": 0,
566 - "default": "true",
567 - "generated": null,
568 - "identity": null,
569 - "name": "notifications_enabled",
570 - "entityType": "columns",
571 - "schema": "public",
572 - "table": "relay_environment_links"
573 - },
574 - {
575 - "type": "boolean",
576 - "typeSchema": null,
577 - "notNull": true,
578 - "dimensions": 0,
579 - "default": "true",
580 - "generated": null,
581 - "identity": null,
582 - "name": "live_activities_enabled",
583 - "entityType": "columns",
584 - "schema": "public",
585 - "table": "relay_environment_links"
586 - },
587 - {
588 - "type": "boolean",
589 - "typeSchema": null,
590 - "notNull": true,
591 - "dimensions": 0,
592 - "default": "false",
593 - "generated": null,
594 - "identity": null,
595 - "name": "managed_tunnels_enabled",
596 - "entityType": "columns",
597 - "schema": "public",
598 - "table": "relay_environment_links"
599 - },
600 - {
601 - "type": "boolean",
602 - "typeSchema": null,
603 - "notNull": true,
604 - "dimensions": 0,
605 - "default": "false",
606 - "generated": null,
607 - "identity": null,
608 - "name": "hold_webhooks_while_offline",
609 - "entityType": "columns",
610 - "schema": "public",
611 - "table": "relay_environment_links"
612 - },
613 - {
614 - "type": "varchar(191)",
615 - "typeSchema": null,
616 - "notNull": false,
617 - "dimensions": 0,
618 - "default": null,
619 - "generated": null,
620 - "identity": null,
621 - "name": "created_by_device_id",
622 - "entityType": "columns",
623 - "schema": "public",
624 - "table": "relay_environment_links"
625 - },
626 - {
627 - "type": "varchar(64)",
628 - "typeSchema": null,
629 - "notNull": false,
630 - "dimensions": 0,
631 - "default": null,
632 - "generated": null,
633 - "identity": null,
634 - "name": "revoked_at",
635 - "entityType": "columns",
636 - "schema": "public",
637 - "table": "relay_environment_links"
638 - },
639 - {
640 - "type": "varchar(64)",
641 - "typeSchema": null,
642 - "notNull": true,
643 - "dimensions": 0,
644 - "default": null,
645 - "generated": null,
646 - "identity": null,
647 - "name": "created_at",
648 - "entityType": "columns",
649 - "schema": "public",
650 - "table": "relay_environment_links"
651 - },
652 - {
653 - "type": "varchar(64)",
654 - "typeSchema": null,
655 - "notNull": true,
656 - "dimensions": 0,
657 - "default": null,
658 - "generated": null,
659 - "identity": null,
660 - "name": "updated_at",
661 - "entityType": "columns",
662 - "schema": "public",
663 - "table": "relay_environment_links"
664 - },
665 - {
666 - "type": "varchar(255)",
667 - "typeSchema": null,
668 - "notNull": true,
669 - "dimensions": 0,
670 - "default": null,
671 - "generated": null,
672 - "identity": null,
673 - "name": "user_id",
674 - "entityType": "columns",
675 - "schema": "public",
676 - "table": "relay_live_activities"
677 - },
678 - {
679 - "type": "varchar(255)",
680 - "typeSchema": null,
681 - "notNull": true,
682 - "dimensions": 0,
683 - "default": null,
684 - "generated": null,
685 - "identity": null,
686 - "name": "device_id",
687 - "entityType": "columns",
688 - "schema": "public",
689 - "table": "relay_live_activities"
690 - },
691 - {
692 - "type": "text",
693 - "typeSchema": null,
694 - "notNull": false,
695 - "dimensions": 0,
696 - "default": null,
697 - "generated": null,
698 - "identity": null,
699 - "name": "activity_push_token",
700 - "entityType": "columns",
701 - "schema": "public",
702 - "table": "relay_live_activities"
703 - },
704 - {
705 - "type": "varchar(64)",
706 - "typeSchema": null,
707 - "notNull": false,
708 - "dimensions": 0,
709 - "default": null,
710 - "generated": null,
711 - "identity": null,
712 - "name": "remote_start_queued_at",
713 - "entityType": "columns",
714 - "schema": "public",
715 - "table": "relay_live_activities"
716 - },
717 - {
718 - "type": "varchar(64)",
719 - "typeSchema": null,
720 - "notNull": false,
721 - "dimensions": 0,
722 - "default": null,
723 - "generated": null,
724 - "identity": null,
725 - "name": "remote_started_at",
726 - "entityType": "columns",
727 - "schema": "public",
728 - "table": "relay_live_activities"
729 - },
730 - {
731 - "type": "varchar(64)",
732 - "typeSchema": null,
733 - "notNull": false,
734 - "dimensions": 0,
735 - "default": null,
736 - "generated": null,
737 - "identity": null,
738 - "name": "ended_at",
739 - "entityType": "columns",
740 - "schema": "public",
741 - "table": "relay_live_activities"
742 - },
743 - {
744 - "type": "jsonb",
745 - "typeSchema": null,
746 - "notNull": false,
747 - "dimensions": 0,
748 - "default": null,
749 - "generated": null,
750 - "identity": null,
751 - "name": "last_aggregate_json",
752 - "entityType": "columns",
753 - "schema": "public",
754 - "table": "relay_live_activities"
755 - },
756 - {
757 - "type": "varchar(64)",
758 - "typeSchema": null,
759 - "notNull": false,
760 - "dimensions": 0,
761 - "default": null,
762 - "generated": null,
763 - "identity": null,
764 - "name": "last_live_activity_delivery_at",
765 - "entityType": "columns",
766 - "schema": "public",
767 - "table": "relay_live_activities"
768 - },
769 - {
770 - "type": "varchar(64)",
771 - "typeSchema": null,
772 - "notNull": true,
773 - "dimensions": 0,
774 - "default": null,
775 - "generated": null,
776 - "identity": null,
777 - "name": "created_at",
778 - "entityType": "columns",
779 - "schema": "public",
780 - "table": "relay_live_activities"
781 - },
782 - {
783 - "type": "varchar(64)",
784 - "typeSchema": null,
785 - "notNull": true,
786 - "dimensions": 0,
787 - "default": null,
788 - "generated": null,
789 - "identity": null,
790 - "name": "updated_at",
791 - "entityType": "columns",
792 - "schema": "public",
793 - "table": "relay_live_activities"
794 - },
795 - {
796 - "type": "varchar(191)",
797 - "typeSchema": null,
798 - "notNull": true,
799 - "dimensions": 0,
800 - "default": null,
801 - "generated": null,
802 - "identity": null,
803 - "name": "user_id",
804 - "entityType": "columns",
805 - "schema": "public",
806 - "table": "relay_managed_endpoint_allocations"
807 - },
808 - {
809 - "type": "varchar(191)",
810 - "typeSchema": null,
811 - "notNull": true,
812 - "dimensions": 0,
813 - "default": null,
814 - "generated": null,
815 - "identity": null,
816 - "name": "environment_id",
817 - "entityType": "columns",
818 - "schema": "public",
819 - "table": "relay_managed_endpoint_allocations"
820 - },
821 - {
822 - "type": "text",
823 - "typeSchema": null,
824 - "notNull": true,
825 - "dimensions": 0,
826 - "default": null,
827 - "generated": null,
828 - "identity": null,
829 - "name": "hostname",
830 - "entityType": "columns",
831 - "schema": "public",
832 - "table": "relay_managed_endpoint_allocations"
833 - },
834 - {
835 - "type": "varchar(191)",
836 - "typeSchema": null,
837 - "notNull": false,
838 - "dimensions": 0,
839 - "default": null,
840 - "generated": null,
841 - "identity": null,
842 - "name": "tunnel_id",
843 - "entityType": "columns",
844 - "schema": "public",
845 - "table": "relay_managed_endpoint_allocations"
846 - },
847 - {
848 - "type": "text",
849 - "typeSchema": null,
850 - "notNull": true,
851 - "dimensions": 0,
852 - "default": null,
853 - "generated": null,
854 - "identity": null,
855 - "name": "tunnel_name",
856 - "entityType": "columns",
857 - "schema": "public",
858 - "table": "relay_managed_endpoint_allocations"
859 - },
860 - {
861 - "type": "varchar(191)",
862 - "typeSchema": null,
863 - "notNull": false,
864 - "dimensions": 0,
865 - "default": null,
866 - "generated": null,
867 - "identity": null,
868 - "name": "dns_record_id",
869 - "entityType": "columns",
870 - "schema": "public",
871 - "table": "relay_managed_endpoint_allocations"
872 - },
873 - {
874 - "type": "varchar(64)",
875 - "typeSchema": null,
876 - "notNull": false,
877 - "dimensions": 0,
878 - "default": null,
879 - "generated": null,
880 - "identity": null,
881 - "name": "ready_at",
882 - "entityType": "columns",
883 - "schema": "public",
884 - "table": "relay_managed_endpoint_allocations"
885 - },
886 - {
887 - "type": "varchar(64)",
888 - "typeSchema": null,
889 - "notNull": false,
890 - "dimensions": 0,
891 - "default": null,
892 - "generated": null,
893 - "identity": null,
894 - "name": "recovery_enabled_at",
895 - "entityType": "columns",
896 - "schema": "public",
897 - "table": "relay_managed_endpoint_allocations"
898 - },
899 - {
900 - "type": "text",
901 - "typeSchema": null,
902 - "notNull": false,
903 - "dimensions": 0,
904 - "default": null,
905 - "generated": null,
906 - "identity": null,
907 - "name": "recovery_environment_public_key",
908 - "entityType": "columns",
909 - "schema": "public",
910 - "table": "relay_managed_endpoint_allocations"
911 - },
912 - {
913 - "type": "varchar(64)",
914 - "typeSchema": null,
915 - "notNull": false,
916 - "dimensions": 0,
917 - "default": null,
918 - "generated": null,
919 - "identity": null,
920 - "name": "tunnel_released_at",
921 - "entityType": "columns",
922 - "schema": "public",
923 - "table": "relay_managed_endpoint_allocations"
924 - },
925 - {
926 - "type": "jsonb",
927 - "typeSchema": null,
928 - "notNull": false,
929 - "dimensions": 0,
930 - "default": null,
931 - "generated": null,
932 - "identity": null,
933 - "name": "origin",
934 - "entityType": "columns",
935 - "schema": "public",
936 - "table": "relay_managed_endpoint_allocations"
937 - },
938 - {
939 - "type": "integer",
940 - "typeSchema": null,
941 - "notNull": true,
942 - "dimensions": 0,
943 - "default": "0",
944 - "generated": null,
945 - "identity": null,
946 - "name": "generation",
947 - "entityType": "columns",
948 - "schema": "public",
949 - "table": "relay_managed_endpoint_allocations"
950 - },
951 - {
952 - "type": "varchar(64)",
953 - "typeSchema": null,
954 - "notNull": true,
955 - "dimensions": 0,
956 - "default": null,
957 - "generated": null,
958 - "identity": null,
959 - "name": "created_at",
960 - "entityType": "columns",
961 - "schema": "public",
962 - "table": "relay_managed_endpoint_allocations"
963 - },
964 - {
965 - "type": "varchar(64)",
966 - "typeSchema": null,
967 - "notNull": true,
968 - "dimensions": 0,
969 - "default": null,
970 - "generated": null,
971 - "identity": null,
972 - "name": "updated_at",
973 - "entityType": "columns",
974 - "schema": "public",
975 - "table": "relay_managed_endpoint_allocations"
976 - },
977 - {
978 - "type": "varchar(191)",
979 - "typeSchema": null,
980 - "notNull": true,
981 - "dimensions": 0,
982 - "default": null,
983 - "generated": null,
984 - "identity": null,
985 - "name": "user_id",
986 - "entityType": "columns",
987 - "schema": "public",
988 - "table": "relay_managed_tunnel_limits"
989 - },
990 - {
991 - "type": "integer",
992 - "typeSchema": null,
993 - "notNull": true,
994 - "dimensions": 0,
995 - "default": null,
996 - "generated": null,
997 - "identity": null,
998 - "name": "max_tunnels",
999 - "entityType": "columns",
1000 - "schema": "public",
1001 - "table": "relay_managed_tunnel_limits"
1002 - },
1003 - {
1004 - "type": "varchar(64)",
1005 - "typeSchema": null,
1006 - "notNull": true,
1007 - "dimensions": 0,
1008 - "default": null,
1009 - "generated": null,
1010 - "identity": null,
1011 - "name": "created_at",
1012 - "entityType": "columns",
1013 - "schema": "public",
1014 - "table": "relay_managed_tunnel_limits"
1015 - },
1016 - {
1017 - "type": "varchar(64)",
1018 - "typeSchema": null,
1019 - "notNull": true,
1020 - "dimensions": 0,
1021 - "default": null,
1022 - "generated": null,
1023 - "identity": null,
1024 - "name": "updated_at",
1025 - "entityType": "columns",
1026 - "schema": "public",
1027 - "table": "relay_managed_tunnel_limits"
1028 - },
1029 - {
1030 - "type": "varchar(255)",
1031 - "typeSchema": null,
1032 - "notNull": true,
1033 - "dimensions": 0,
1034 - "default": null,
1035 - "generated": null,
1036 - "identity": null,
1037 - "name": "user_id",
1038 - "entityType": "columns",
1039 - "schema": "public",
1040 - "table": "relay_mobile_devices"
1041 - },
1042 - {
1043 - "type": "varchar(255)",
1044 - "typeSchema": null,
1045 - "notNull": true,
1046 - "dimensions": 0,
1047 - "default": null,
1048 - "generated": null,
1049 - "identity": null,
1050 - "name": "device_id",
1051 - "entityType": "columns",
1052 - "schema": "public",
1053 - "table": "relay_mobile_devices"
1054 - },
1055 - {
1056 - "type": "text",
1057 - "typeSchema": null,
1058 - "notNull": true,
1059 - "dimensions": 0,
1060 - "default": "'iOS device'",
1061 - "generated": null,
1062 - "identity": null,
1063 - "name": "label",
1064 - "entityType": "columns",
1065 - "schema": "public",
1066 - "table": "relay_mobile_devices"
1067 - },
1068 - {
1069 - "type": "varchar(16)",
1070 - "typeSchema": null,
1071 - "notNull": true,
1072 - "dimensions": 0,
1073 - "default": null,
1074 - "generated": null,
1075 - "identity": null,
1076 - "name": "platform",
1077 - "entityType": "columns",
1078 - "schema": "public",
1079 - "table": "relay_mobile_devices"
1080 - },
1081 - {
1082 - "type": "integer",
1083 - "typeSchema": null,
1084 - "notNull": false,
1085 - "dimensions": 0,
1086 - "default": null,
1087 - "generated": null,
1088 - "identity": null,
1089 - "name": "ios_major_version",
1090 - "entityType": "columns",
1091 - "schema": "public",
1092 - "table": "relay_mobile_devices"
1093 - },
1094 - {
1095 - "type": "integer",
1096 - "typeSchema": null,
1097 - "notNull": false,
1098 - "dimensions": 0,
1099 - "default": null,
1100 - "generated": null,
1101 - "identity": null,
1102 - "name": "android_api_level",
1103 - "entityType": "columns",
1104 - "schema": "public",
1105 - "table": "relay_mobile_devices"
1106 - },
1107 - {
1108 - "type": "varchar(64)",
1109 - "typeSchema": null,
1110 - "notNull": false,
1111 - "dimensions": 0,
1112 - "default": null,
1113 - "generated": null,
1114 - "identity": null,
1115 - "name": "app_version",
1116 - "entityType": "columns",
1117 - "schema": "public",
1118 - "table": "relay_mobile_devices"
1119 - },
1120 - {
1121 - "type": "varchar(255)",
1122 - "typeSchema": null,
1123 - "notNull": false,
1124 - "dimensions": 0,
1125 - "default": null,
1126 - "generated": null,
1127 - "identity": null,
1128 - "name": "bundle_id",
1129 - "entityType": "columns",
1130 - "schema": "public",
1131 - "table": "relay_mobile_devices"
1132 - },
1133 - {
1134 - "type": "varchar(16)",
1135 - "typeSchema": null,
1136 - "notNull": false,
1137 - "dimensions": 0,
1138 - "default": null,
1139 - "generated": null,
1140 - "identity": null,
1141 - "name": "aps_environment",
1142 - "entityType": "columns",
1143 - "schema": "public",
1144 - "table": "relay_mobile_devices"
1145 - },
1146 - {
1147 - "type": "text",
1148 - "typeSchema": null,
1149 - "notNull": false,
1150 - "dimensions": 0,
1151 - "default": null,
1152 - "generated": null,
1153 - "identity": null,
1154 - "name": "push_token",
1155 - "entityType": "columns",
1156 - "schema": "public",
1157 - "table": "relay_mobile_devices"
1158 - },
1159 - {
1160 - "type": "text",
1161 - "typeSchema": null,
1162 - "notNull": false,
1163 - "dimensions": 0,
1164 - "default": null,
1165 - "generated": null,
1166 - "identity": null,
1167 - "name": "push_to_start_token",
1168 - "entityType": "columns",
1169 - "schema": "public",
1170 - "table": "relay_mobile_devices"
1171 - },
1172 - {
1173 - "type": "jsonb",
1174 - "typeSchema": null,
1175 - "notNull": true,
1176 - "dimensions": 0,
1177 - "default": null,
1178 - "generated": null,
1179 - "identity": null,
1180 - "name": "preferences_json",
1181 - "entityType": "columns",
1182 - "schema": "public",
1183 - "table": "relay_mobile_devices"
1184 - },
1185 - {
1186 - "type": "varchar(64)",
1187 - "typeSchema": null,
1188 - "notNull": true,
1189 - "dimensions": 0,
1190 - "default": null,
1191 - "generated": null,
1192 - "identity": null,
1193 - "name": "created_at",
1194 - "entityType": "columns",
1195 - "schema": "public",
1196 - "table": "relay_mobile_devices"
1197 - },
1198 - {
1199 - "type": "varchar(64)",
1200 - "typeSchema": null,
1201 - "notNull": true,
1202 - "dimensions": 0,
1203 - "default": null,
1204 - "generated": null,
1205 - "identity": null,
1206 - "name": "updated_at",
1207 - "entityType": "columns",
1208 - "schema": "public",
1209 - "table": "relay_mobile_devices"
1210 - },
1211 - {
1212 - "type": "varchar(64)",
1213 - "typeSchema": null,
1214 - "notNull": true,
1215 - "dimensions": 0,
1216 - "default": null,
1217 - "generated": null,
1218 - "identity": null,
1219 - "name": "api",
1220 - "entityType": "columns",
1221 - "schema": "public",
1222 - "table": "relay_upstream_api_pauses"
1223 - },
1224 - {
1225 - "type": "bigint",
1226 - "typeSchema": null,
1227 - "notNull": true,
1228 - "dimensions": 0,
1229 - "default": null,
1230 - "generated": null,
1231 - "identity": null,
1232 - "name": "paused_until_ms",
1233 - "entityType": "columns",
1234 - "schema": "public",
1235 - "table": "relay_upstream_api_pauses"
1236 - },
1237 - {
1238 - "nameExplicit": true,
1239 - "columns": [
1240 - {
1241 - "value": "updated_at",
1242 - "isExpression": false,
1243 - "asc": true,
1244 - "nullsFirst": false,
1245 - "opclass": null
1246 - }
1247 - ],
1248 - "isUnique": false,
1249 - "where": null,
1250 - "with": "",
1251 - "method": "btree",
1252 - "concurrently": false,
1253 - "name": "idx_relay_agent_activity_rows_updated",
1254 - "entityType": "indexes",
1255 - "schema": "public",
1256 - "table": "relay_agent_activity_rows"
1257 - },
1258 - {
1259 - "nameExplicit": true,
1260 - "columns": [
1261 - {
1262 - "value": "environment_id",
1263 - "isExpression": false,
1264 - "asc": true,
1265 - "nullsFirst": false,
1266 - "opclass": null
1267 - },
1268 - {
1269 - "value": "thread_id",
1270 - "isExpression": false,
1271 - "asc": true,
1272 - "nullsFirst": false,
1273 - "opclass": null
1274 - },
1275 - {
1276 - "value": "created_at",
1277 - "isExpression": false,
1278 - "asc": true,
1279 - "nullsFirst": false,
1280 - "opclass": null
1281 - }
1282 - ],
1283 - "isUnique": false,
1284 - "where": null,
1285 - "with": "",
1286 - "method": "btree",
1287 - "concurrently": false,
1288 - "name": "idx_relay_delivery_attempts_environment",
1289 - "entityType": "indexes",
1290 - "schema": "public",
1291 - "table": "relay_delivery_attempts"
1292 - },
1293 - {
1294 - "nameExplicit": true,
1295 - "columns": [
1296 - {
1297 - "value": "source_job_id",
1298 - "isExpression": false,
1299 - "asc": true,
1300 - "nullsFirst": false,
1301 - "opclass": null
1302 - }
1303 - ],
1304 - "isUnique": true,
1305 - "where": null,
1306 - "with": "",
1307 - "method": "btree",
1308 - "concurrently": false,
1309 - "name": "idx_relay_delivery_attempts_source_job",
1310 - "entityType": "indexes",
1311 - "schema": "public",
1312 - "table": "relay_delivery_attempts"
1313 - },
1314 - {
1315 - "nameExplicit": true,
1316 - "columns": [
1317 - {
1318 - "value": "expires_at",
1319 - "isExpression": false,
1320 - "asc": true,
1321 - "nullsFirst": false,
1322 - "opclass": null
1323 - }
1324 - ],
1325 - "isUnique": false,
1326 - "where": null,
1327 - "with": "",
1328 - "method": "btree",
1329 - "concurrently": false,
1330 - "name": "idx_relay_dpop_proofs_expires_at",
1331 - "entityType": "indexes",
1332 - "schema": "public",
1333 - "table": "relay_dpop_proofs"
1334 - },
1335 - {
1336 - "nameExplicit": true,
1337 - "columns": [
1338 - {
1339 - "value": "credential_hash",
1340 - "isExpression": false,
1341 - "asc": true,
1342 - "nullsFirst": false,
1343 - "opclass": null
1344 - }
1345 - ],
1346 - "isUnique": true,
1347 - "where": null,
1348 - "with": "",
1349 - "method": "btree",
1350 - "concurrently": false,
1351 - "name": "idx_relay_environment_credentials_hash",
1352 - "entityType": "indexes",
1353 - "schema": "public",
1354 - "table": "relay_environment_credentials"
1355 - },
1356 - {
1357 - "nameExplicit": true,
1358 - "columns": [
1359 - {
1360 - "value": "environment_id",
1361 - "isExpression": false,
1362 - "asc": true,
1363 - "nullsFirst": false,
1364 - "opclass": null
1365 - },
1366 - {
1367 - "value": "revoked_at",
1368 - "isExpression": false,
1369 - "asc": true,
1370 - "nullsFirst": false,
1371 - "opclass": null
1372 - }
1373 - ],
1374 - "isUnique": false,
1375 - "where": null,
1376 - "with": "",
1377 - "method": "btree",
1378 - "concurrently": false,
1379 - "name": "idx_relay_environment_credentials_environment",
1380 - "entityType": "indexes",
1381 - "schema": "public",
1382 - "table": "relay_environment_credentials"
1383 - },
1384 - {
1385 - "nameExplicit": true,
1386 - "columns": [
1387 - {
1388 - "value": "environment_id",
1389 - "isExpression": false,
1390 - "asc": true,
1391 - "nullsFirst": false,
1392 - "opclass": null
1393 - },
1394 - {
1395 - "value": "environment_public_key",
1396 - "isExpression": false,
1397 - "asc": true,
1398 - "nullsFirst": false,
1399 - "opclass": null
1400 - },
1401 - {
1402 - "value": "revoked_at",
1403 - "isExpression": false,
1404 - "asc": true,
1405 - "nullsFirst": false,
1406 - "opclass": null
1407 - }
1408 - ],
1409 - "isUnique": false,
1410 - "where": null,
1411 - "with": "",
1412 - "method": "btree",
1413 - "concurrently": false,
1414 - "name": "idx_relay_environment_credentials_environment_key",
1415 - "entityType": "indexes",
1416 - "schema": "public",
1417 - "table": "relay_environment_credentials"
1418 - },
1419 - {
1420 - "nameExplicit": true,
1421 - "columns": [
1422 - {
1423 - "value": "environment_id",
1424 - "isExpression": false,
1425 - "asc": true,
1426 - "nullsFirst": false,
1427 - "opclass": null
1428 - },
1429 - {
1430 - "value": "revoked_at",
1431 - "isExpression": false,
1432 - "asc": true,
1433 - "nullsFirst": false,
1434 - "opclass": null
1435 - }
1436 - ],
1437 - "isUnique": false,
1438 - "where": null,
1439 - "with": "",
1440 - "method": "btree",
1441 - "concurrently": false,
1442 - "name": "idx_relay_environment_links_environment",
1443 - "entityType": "indexes",
1444 - "schema": "public",
1445 - "table": "relay_environment_links"
1446 - },
1447 - {
1448 - "nameExplicit": true,
1449 - "columns": [
1450 - {
1451 - "value": "activity_push_token",
1452 - "isExpression": false,
1453 - "asc": true,
1454 - "nullsFirst": false,
1455 - "opclass": null
1456 - }
1457 - ],
1458 - "isUnique": true,
1459 - "where": null,
1460 - "with": "",
1461 - "method": "btree",
1462 - "concurrently": false,
1463 - "name": "idx_relay_live_activities_activity_push_token",
1464 - "entityType": "indexes",
1465 - "schema": "public",
1466 - "table": "relay_live_activities"
1467 - },
1468 - {
1469 - "nameExplicit": true,
1470 - "columns": [
1471 - {
1472 - "value": "hostname",
1473 - "isExpression": false,
1474 - "asc": true,
1475 - "nullsFirst": false,
1476 - "opclass": null
1477 - }
1478 - ],
1479 - "isUnique": true,
1480 - "where": null,
1481 - "with": "",
1482 - "method": "btree",
1483 - "concurrently": false,
1484 - "name": "idx_relay_managed_endpoint_allocations_hostname",
1485 - "entityType": "indexes",
1486 - "schema": "public",
1487 - "table": "relay_managed_endpoint_allocations"
1488 - },
1489 - {
1490 - "nameExplicit": true,
1491 - "columns": [
1492 - {
1493 - "value": "tunnel_name",
1494 - "isExpression": false,
1495 - "asc": true,
1496 - "nullsFirst": false,
1497 - "opclass": null
1498 - }
1499 - ],
1500 - "isUnique": true,
1501 - "where": null,
1502 - "with": "",
1503 - "method": "btree",
1504 - "concurrently": false,
1505 - "name": "idx_relay_managed_endpoint_allocations_tunnel_name",
1506 - "entityType": "indexes",
1507 - "schema": "public",
1508 - "table": "relay_managed_endpoint_allocations"
1509 - },
1510 - {
1511 - "nameExplicit": true,
1512 - "columns": [
1513 - {
1514 - "value": "push_token",
1515 - "isExpression": false,
1516 - "asc": true,
1517 - "nullsFirst": false,
1518 - "opclass": null
1519 - }
7 + "footprints": [
8 + {
9 + "statementType": "create_table",
10 + "statementTarget": ["table", "public", "relay_upstream_api_pauses"],
11 + "writes": [
12 + "s|tbl|public.relay_upstream_api_pauses",
13 + "n|tbl|public.relay_upstream_api_pauses",
14 + "e|tbl|public.relay_upstream_api_pauses",
15 + "n|rel|public.relay_upstream_api_pauses",
16 + "n|type|public.relay_upstream_api_pauses",
17 + "n|rel|public.relay_upstream_api_pauses_pkey"
18 ],
1521 - "isUnique": true,
1522 - "where": null,
1523 - "with": "",
1524 - "method": "btree",
1525 - "concurrently": false,
1526 - "name": "idx_relay_mobile_devices_push_token",
1527 - "entityType": "indexes",
1528 - "schema": "public",
1529 - "table": "relay_mobile_devices"
1530 - },
1531 - {
1532 - "nameExplicit": true,
1533 - "columns": [
1534 - {
1535 - "value": "push_to_start_token",
1536 - "isExpression": false,
1537 - "asc": true,
1538 - "nullsFirst": false,
1539 - "opclass": null
1540 - }
1541 - ],
1542 - "isUnique": true,
1543 - "where": null,
1544 - "with": "",
1545 - "method": "btree",
1546 - "concurrently": false,
1547 - "name": "idx_relay_mobile_devices_push_to_start_token",
1548 - "entityType": "indexes",
1549 - "schema": "public",
1550 - "table": "relay_mobile_devices"
1551 - },
1552 - {
1553 - "columns": ["environment_id", "environment_public_key", "thread_id"],
1554 - "nameExplicit": false,
1555 - "name": "relay_agent_activity_rows_pkey",
1556 - "entityType": "pks",
1557 - "schema": "public",
1558 - "table": "relay_agent_activity_rows"
1559 - },
1560 - {
1561 - "columns": ["thumbprint", "jti"],
1562 - "nameExplicit": false,
1563 - "name": "relay_dpop_proofs_pkey",
1564 - "entityType": "pks",
1565 - "schema": "public",
1566 - "table": "relay_dpop_proofs"
1567 - },
1568 - {
1569 - "columns": ["user_id", "environment_id"],
1570 - "nameExplicit": false,
1571 - "name": "relay_environment_links_pkey",
1572 - "entityType": "pks",
1573 - "schema": "public",
1574 - "table": "relay_environment_links"
1575 - },
1576 - {
1577 - "columns": ["user_id", "device_id"],
1578 - "nameExplicit": false,
1579 - "name": "relay_live_activities_pkey",
1580 - "entityType": "pks",
1581 - "schema": "public",
1582 - "table": "relay_live_activities"
1583 - },
1584 - {
1585 - "columns": ["user_id", "environment_id"],
1586 - "nameExplicit": false,
1587 - "name": "relay_managed_endpoint_allocations_pkey",
1588 - "entityType": "pks",
1589 - "schema": "public",
1590 - "table": "relay_managed_endpoint_allocations"
1591 - },
1592 - {
1593 - "columns": ["user_id", "device_id"],
1594 - "nameExplicit": false,
1595 - "name": "relay_mobile_devices_pkey",
1596 - "entityType": "pks",
1597 - "schema": "public",
1598 - "table": "relay_mobile_devices"
1599 - },
1600 - {
1601 - "columns": ["id"],
1602 - "nameExplicit": false,
1603 - "name": "relay_delivery_attempts_pkey",
1604 - "schema": "public",
1605 - "table": "relay_delivery_attempts",
1606 - "entityType": "pks"
1607 - },
1608 - {
1609 - "columns": ["credential_id"],
1610 - "nameExplicit": false,
1611 - "name": "relay_environment_credentials_pkey",
1612 - "schema": "public",
1613 - "table": "relay_environment_credentials",
1614 - "entityType": "pks"
1615 - },
1616 - {
1617 - "columns": ["user_id"],
1618 - "nameExplicit": false,
1619 - "name": "relay_managed_tunnel_limits_pkey",
1620 - "schema": "public",
1621 - "table": "relay_managed_tunnel_limits",
1622 - "entityType": "pks"
1623 - },
1624 - {
1625 - "columns": ["api"],
1626 - "nameExplicit": false,
1627 - "name": "relay_upstream_api_pauses_pkey",
1628 - "schema": "public",
1629 - "table": "relay_upstream_api_pauses",
1630 - "entityType": "pks"
19 + "reads": ["n|sch|public"]
20 }
21 ],
1633 - "renames": []
22 + "deltas": [
23 + {
24 + "op": "create",
25 + "row": {
26 + "schema": "public",
27 + "name": "relay_upstream_api_pauses",
28 + "isRlsEnabled": false,
29 + "entityType": "tables"
30 + }
31 + },
32 + {
33 + "op": "create",
34 + "row": {
35 + "schema": "public",
36 + "table": "relay_upstream_api_pauses",
37 + "name": "api",
38 + "type": "varchar(64)",
39 + "typeSchema": null,
40 + "notNull": true,
41 + "dimensions": 0,
42 + "default": null,
43 + "generated": null,
44 + "identity": null,
45 + "entityType": "columns"
46 + }
47 + },
48 + {
49 + "op": "create",
50 + "row": {
51 + "schema": "public",
52 + "table": "relay_upstream_api_pauses",
53 + "name": "paused_until_ms",
54 + "type": "bigint",
55 + "typeSchema": null,
56 + "notNull": true,
57 + "dimensions": 0,
58 + "default": null,
59 + "generated": null,
60 + "identity": null,
61 + "entityType": "columns"
62 + }
63 + },
64 + {
65 + "op": "create",
66 + "row": {
67 + "schema": "public",
68 + "table": "relay_upstream_api_pauses",
69 + "name": "relay_upstream_api_pauses_pkey",
70 + "columns": ["api"],
71 + "nameExplicit": false,
72 + "entityType": "pks"
73 + }
74 + }
75 + ]
76 }
infra/relay/migrations/postgres/20261027210820_delivery_attempts_retention/snapshot.json
+109 -1547
@@ -1,1571 +1,133 @@
1 {
2 - "version": "8",
2 + "type": "diff",
3 + "version": "9",
4 "dialect": "postgres",
5 "id": "7d8c1702-6f47-4453-a8ee-66ce5e3bfb41",
6 "prevIds": ["f8594baa-6f4a-4a0d-a7f0-0aa717dfe785"],
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_managed_endpoint_allocations",
46 - "entityType": "tables",
47 - "schema": "public"
48 - },
49 - {
50 - "isRlsEnabled": false,
51 - "name": "relay_managed_tunnel_limits",
52 - "entityType": "tables",
53 - "schema": "public"
54 - },
55 - {
56 - "isRlsEnabled": false,
57 - "name": "relay_mobile_devices",
58 - "entityType": "tables",
59 - "schema": "public"
60 - },
61 - {
62 - "isRlsEnabled": false,
63 - "name": "relay_upstream_api_pauses",
64 - "entityType": "tables",
65 - "schema": "public"
66 - },
67 - {
68 - "type": "varchar(191)",
69 - "typeSchema": null,
70 - "notNull": true,
71 - "dimensions": 0,
72 - "default": null,
73 - "generated": null,
74 - "identity": null,
75 - "name": "environment_id",
76 - "entityType": "columns",
77 - "schema": "public",
78 - "table": "relay_agent_activity_rows"
79 - },
80 - {
81 - "type": "text",
82 - "typeSchema": null,
83 - "notNull": true,
84 - "dimensions": 0,
85 - "default": null,
86 - "generated": null,
87 - "identity": null,
88 - "name": "environment_public_key",
89 - "entityType": "columns",
90 - "schema": "public",
91 - "table": "relay_agent_activity_rows"
92 - },
93 - {
94 - "type": "varchar(512)",
95 - "typeSchema": null,
96 - "notNull": true,
97 - "dimensions": 0,
98 - "default": null,
99 - "generated": null,
100 - "identity": null,
101 - "name": "thread_id",
102 - "entityType": "columns",
103 - "schema": "public",
104 - "table": "relay_agent_activity_rows"
105 - },
106 - {
107 - "type": "jsonb",
108 - "typeSchema": null,
109 - "notNull": true,
110 - "dimensions": 0,
111 - "default": null,
112 - "generated": null,
113 - "identity": null,
114 - "name": "state_json",
115 - "entityType": "columns",
116 - "schema": "public",
117 - "table": "relay_agent_activity_rows"
118 - },
119 - {
120 - "type": "varchar(64)",
121 - "typeSchema": null,
122 - "notNull": true,
123 - "dimensions": 0,
124 - "default": null,
125 - "generated": null,
126 - "identity": null,
127 - "name": "updated_at",
128 - "entityType": "columns",
129 - "schema": "public",
130 - "table": "relay_agent_activity_rows"
131 - },
132 - {
133 - "type": "varchar(64)",
134 - "typeSchema": null,
135 - "notNull": true,
136 - "dimensions": 0,
137 - "default": null,
138 - "generated": null,
139 - "identity": null,
140 - "name": "created_at",
141 - "entityType": "columns",
142 - "schema": "public",
143 - "table": "relay_agent_activity_rows"
144 - },
145 - {
146 - "type": "varchar(36)",
147 - "typeSchema": null,
148 - "notNull": true,
149 - "dimensions": 0,
150 - "default": null,
151 - "generated": null,
152 - "identity": null,
153 - "name": "id",
154 - "entityType": "columns",
155 - "schema": "public",
156 - "table": "relay_delivery_attempts"
157 - },
158 - {
159 - "type": "varchar(64)",
160 - "typeSchema": null,
161 - "notNull": true,
162 - "dimensions": 0,
163 - "default": null,
164 - "generated": null,
165 - "identity": null,
166 - "name": "created_at",
167 - "entityType": "columns",
168 - "schema": "public",
169 - "table": "relay_delivery_attempts"
170 - },
171 - {
172 - "type": "varchar(255)",
173 - "typeSchema": null,
174 - "notNull": false,
175 - "dimensions": 0,
176 - "default": null,
177 - "generated": null,
178 - "identity": null,
179 - "name": "user_id",
180 - "entityType": "columns",
181 - "schema": "public",
182 - "table": "relay_delivery_attempts"
183 - },
184 - {
185 - "type": "varchar(191)",
186 - "typeSchema": null,
187 - "notNull": false,
188 - "dimensions": 0,
189 - "default": null,
190 - "generated": null,
191 - "identity": null,
192 - "name": "environment_id",
193 - "entityType": "columns",
194 - "schema": "public",
195 - "table": "relay_delivery_attempts"
196 - },
197 - {
198 - "type": "varchar(512)",
199 - "typeSchema": null,
200 - "notNull": false,
201 - "dimensions": 0,
202 - "default": null,
203 - "generated": null,
204 - "identity": null,
205 - "name": "thread_id",
206 - "entityType": "columns",
207 - "schema": "public",
208 - "table": "relay_delivery_attempts"
209 - },
210 - {
211 - "type": "varchar(255)",
212 - "typeSchema": null,
213 - "notNull": false,
214 - "dimensions": 0,
215 - "default": null,
216 - "generated": null,
217 - "identity": null,
218 - "name": "device_id",
219 - "entityType": "columns",
220 - "schema": "public",
221 - "table": "relay_delivery_attempts"
222 - },
223 - {
224 - "type": "varchar(64)",
225 - "typeSchema": null,
226 - "notNull": true,
227 - "dimensions": 0,
228 - "default": null,
229 - "generated": null,
230 - "identity": null,
231 - "name": "kind",
232 - "entityType": "columns",
233 - "schema": "public",
234 - "table": "relay_delivery_attempts"
235 - },
236 - {
237 - "type": "varchar(64)",
238 - "typeSchema": null,
239 - "notNull": false,
240 - "dimensions": 0,
241 - "default": null,
242 - "generated": null,
243 - "identity": null,
244 - "name": "source_job_id",
245 - "entityType": "columns",
246 - "schema": "public",
247 - "table": "relay_delivery_attempts"
248 - },
249 - {
250 - "type": "varchar(16)",
251 - "typeSchema": null,
252 - "notNull": false,
253 - "dimensions": 0,
254 - "default": null,
255 - "generated": null,
256 - "identity": null,
257 - "name": "token_suffix",
258 - "entityType": "columns",
259 - "schema": "public",
260 - "table": "relay_delivery_attempts"
261 - },
262 - {
263 - "type": "integer",
264 - "typeSchema": null,
265 - "notNull": false,
266 - "dimensions": 0,
267 - "default": null,
268 - "generated": null,
269 - "identity": null,
270 - "name": "apns_status",
271 - "entityType": "columns",
272 - "schema": "public",
273 - "table": "relay_delivery_attempts"
274 - },
275 - {
276 - "type": "text",
277 - "typeSchema": null,
278 - "notNull": false,
279 - "dimensions": 0,
280 - "default": null,
281 - "generated": null,
282 - "identity": null,
283 - "name": "apns_reason",
284 - "entityType": "columns",
285 - "schema": "public",
286 - "table": "relay_delivery_attempts"
287 - },
288 - {
289 - "type": "varchar(128)",
290 - "typeSchema": null,
291 - "notNull": false,
292 - "dimensions": 0,
293 - "default": null,
294 - "generated": null,
295 - "identity": null,
296 - "name": "apns_id",
297 - "entityType": "columns",
298 - "schema": "public",
299 - "table": "relay_delivery_attempts"
300 - },
301 - {
302 - "type": "text",
303 - "typeSchema": null,
304 - "notNull": false,
305 - "dimensions": 0,
306 - "default": null,
307 - "generated": null,
308 - "identity": null,
309 - "name": "transport_error",
310 - "entityType": "columns",
311 - "schema": "public",
312 - "table": "relay_delivery_attempts"
313 - },
314 - {
315 - "type": "varchar(128)",
316 - "typeSchema": null,
317 - "notNull": true,
318 - "dimensions": 0,
319 - "default": null,
320 - "generated": null,
321 - "identity": null,
322 - "name": "thumbprint",
323 - "entityType": "columns",
324 - "schema": "public",
325 - "table": "relay_dpop_proofs"
326 - },
327 - {
328 - "type": "varchar(255)",
329 - "typeSchema": null,
330 - "notNull": true,
331 - "dimensions": 0,
332 - "default": null,
333 - "generated": null,
334 - "identity": null,
335 - "name": "jti",
336 - "entityType": "columns",
337 - "schema": "public",
338 - "table": "relay_dpop_proofs"
339 - },
340 - {
341 - "type": "integer",
342 - "typeSchema": null,
343 - "notNull": true,
344 - "dimensions": 0,
345 - "default": null,
346 - "generated": null,
347 - "identity": null,
348 - "name": "iat",
349 - "entityType": "columns",
350 - "schema": "public",
351 - "table": "relay_dpop_proofs"
352 - },
353 - {
354 - "type": "varchar(64)",
355 - "typeSchema": null,
356 - "notNull": true,
357 - "dimensions": 0,
358 - "default": null,
359 - "generated": null,
360 - "identity": null,
361 - "name": "expires_at",
362 - "entityType": "columns",
363 - "schema": "public",
364 - "table": "relay_dpop_proofs"
365 - },
366 - {
367 - "type": "varchar(64)",
368 - "typeSchema": null,
369 - "notNull": true,
370 - "dimensions": 0,
371 - "default": null,
372 - "generated": null,
373 - "identity": null,
374 - "name": "created_at",
375 - "entityType": "columns",
376 - "schema": "public",
377 - "table": "relay_dpop_proofs"
378 - },
379 - {
380 - "type": "varchar(64)",
381 - "typeSchema": null,
382 - "notNull": true,
383 - "dimensions": 0,
384 - "default": null,
385 - "generated": null,
386 - "identity": null,
387 - "name": "credential_id",
388 - "entityType": "columns",
389 - "schema": "public",
390 - "table": "relay_environment_credentials"
391 - },
392 - {
393 - "type": "varchar(191)",
394 - "typeSchema": null,
395 - "notNull": true,
396 - "dimensions": 0,
397 - "default": null,
398 - "generated": null,
399 - "identity": null,
400 - "name": "environment_id",
401 - "entityType": "columns",
402 - "schema": "public",
403 - "table": "relay_environment_credentials"
404 - },
405 - {
406 - "type": "text",
407 - "typeSchema": null,
408 - "notNull": true,
409 - "dimensions": 0,
410 - "default": null,
411 - "generated": null,
412 - "identity": null,
413 - "name": "environment_public_key",
414 - "entityType": "columns",
415 - "schema": "public",
416 - "table": "relay_environment_credentials"
417 - },
418 - {
419 - "type": "varchar(191)",
420 - "typeSchema": null,
421 - "notNull": true,
422 - "dimensions": 0,
423 - "default": null,
424 - "generated": null,
425 - "identity": null,
426 - "name": "credential_hash",
427 - "entityType": "columns",
428 - "schema": "public",
429 - "table": "relay_environment_credentials"
430 - },
431 - {
432 - "type": "varchar(64)",
433 - "typeSchema": null,
434 - "notNull": false,
435 - "dimensions": 0,
436 - "default": null,
437 - "generated": null,
438 - "identity": null,
439 - "name": "revoked_at",
440 - "entityType": "columns",
441 - "schema": "public",
442 - "table": "relay_environment_credentials"
443 - },
444 - {
445 - "type": "varchar(64)",
446 - "typeSchema": null,
447 - "notNull": true,
448 - "dimensions": 0,
449 - "default": null,
450 - "generated": null,
451 - "identity": null,
452 - "name": "created_at",
453 - "entityType": "columns",
454 - "schema": "public",
455 - "table": "relay_environment_credentials"
456 - },
457 - {
458 - "type": "varchar(64)",
459 - "typeSchema": null,
460 - "notNull": true,
461 - "dimensions": 0,
462 - "default": null,
463 - "generated": null,
464 - "identity": null,
465 - "name": "updated_at",
466 - "entityType": "columns",
467 - "schema": "public",
468 - "table": "relay_environment_credentials"
469 - },
470 - {
471 - "type": "varchar(191)",
472 - "typeSchema": null,
473 - "notNull": true,
474 - "dimensions": 0,
475 - "default": null,
476 - "generated": null,
477 - "identity": null,
478 - "name": "user_id",
479 - "entityType": "columns",
480 - "schema": "public",
481 - "table": "relay_environment_links"
482 - },
483 - {
484 - "type": "varchar(191)",
485 - "typeSchema": null,
486 - "notNull": true,
487 - "dimensions": 0,
488 - "default": null,
489 - "generated": null,
490 - "identity": null,
491 - "name": "environment_id",
492 - "entityType": "columns",
493 - "schema": "public",
494 - "table": "relay_environment_links"
495 - },
496 - {
497 - "type": "text",
498 - "typeSchema": null,
499 - "notNull": true,
500 - "dimensions": 0,
501 - "default": "'T3 Environment'",
502 - "generated": null,
503 - "identity": null,
504 - "name": "environment_label",
505 - "entityType": "columns",
506 - "schema": "public",
507 - "table": "relay_environment_links"
508 - },
509 - {
510 - "type": "text",
511 - "typeSchema": null,
512 - "notNull": true,
513 - "dimensions": 0,
514 - "default": null,
515 - "generated": null,
516 - "identity": null,
517 - "name": "environment_public_key",
518 - "entityType": "columns",
519 - "schema": "public",
520 - "table": "relay_environment_links"
521 - },
522 - {
523 - "type": "text",
524 - "typeSchema": null,
525 - "notNull": true,
526 - "dimensions": 0,
527 - "default": null,
528 - "generated": null,
529 - "identity": null,
530 - "name": "endpoint_http_base_url",
531 - "entityType": "columns",
532 - "schema": "public",
533 - "table": "relay_environment_links"
534 - },
535 - {
536 - "type": "text",
537 - "typeSchema": null,
538 - "notNull": true,
539 - "dimensions": 0,
540 - "default": null,
541 - "generated": null,
542 - "identity": null,
543 - "name": "endpoint_ws_base_url",
544 - "entityType": "columns",
545 - "schema": "public",
546 - "table": "relay_environment_links"
547 - },
548 - {
549 - "type": "varchar(32)",
550 - "typeSchema": null,
551 - "notNull": true,
552 - "dimensions": 0,
553 - "default": null,
554 - "generated": null,
555 - "identity": null,
556 - "name": "endpoint_provider_kind",
557 - "entityType": "columns",
558 - "schema": "public",
559 - "table": "relay_environment_links"
560 - },
561 - {
562 - "type": "boolean",
563 - "typeSchema": null,
564 - "notNull": true,
565 - "dimensions": 0,
566 - "default": "true",
567 - "generated": null,
568 - "identity": null,
569 - "name": "notifications_enabled",
570 - "entityType": "columns",
571 - "schema": "public",
572 - "table": "relay_environment_links"
573 - },
574 - {
575 - "type": "boolean",
576 - "typeSchema": null,
577 - "notNull": true,
578 - "dimensions": 0,
579 - "default": "true",
580 - "generated": null,
581 - "identity": null,
582 - "name": "live_activities_enabled",
583 - "entityType": "columns",
584 - "schema": "public",
585 - "table": "relay_environment_links"
586 - },
587 - {
588 - "type": "boolean",
589 - "typeSchema": null,
590 - "notNull": true,
591 - "dimensions": 0,
592 - "default": "false",
593 - "generated": null,
594 - "identity": null,
595 - "name": "managed_tunnels_enabled",
596 - "entityType": "columns",
597 - "schema": "public",
598 - "table": "relay_environment_links"
599 - },
600 - {
601 - "type": "boolean",
602 - "typeSchema": null,
603 - "notNull": true,
604 - "dimensions": 0,
605 - "default": "false",
606 - "generated": null,
607 - "identity": null,
608 - "name": "hold_webhooks_while_offline",
609 - "entityType": "columns",
610 - "schema": "public",
611 - "table": "relay_environment_links"
612 - },
613 - {
614 - "type": "varchar(191)",
615 - "typeSchema": null,
616 - "notNull": false,
617 - "dimensions": 0,
618 - "default": null,
619 - "generated": null,
620 - "identity": null,
621 - "name": "created_by_device_id",
622 - "entityType": "columns",
623 - "schema": "public",
624 - "table": "relay_environment_links"
625 - },
626 - {
627 - "type": "varchar(64)",
628 - "typeSchema": null,
629 - "notNull": false,
630 - "dimensions": 0,
631 - "default": null,
632 - "generated": null,
633 - "identity": null,
634 - "name": "revoked_at",
635 - "entityType": "columns",
636 - "schema": "public",
637 - "table": "relay_environment_links"
638 - },
639 - {
640 - "type": "varchar(64)",
641 - "typeSchema": null,
642 - "notNull": true,
643 - "dimensions": 0,
644 - "default": null,
645 - "generated": null,
646 - "identity": null,
647 - "name": "created_at",
648 - "entityType": "columns",
649 - "schema": "public",
650 - "table": "relay_environment_links"
651 - },
652 - {
653 - "type": "varchar(64)",
654 - "typeSchema": null,
655 - "notNull": true,
656 - "dimensions": 0,
657 - "default": null,
658 - "generated": null,
659 - "identity": null,
660 - "name": "updated_at",
661 - "entityType": "columns",
662 - "schema": "public",
663 - "table": "relay_environment_links"
664 - },
665 - {
666 - "type": "varchar(255)",
667 - "typeSchema": null,
668 - "notNull": true,
669 - "dimensions": 0,
670 - "default": null,
671 - "generated": null,
672 - "identity": null,
673 - "name": "user_id",
674 - "entityType": "columns",
675 - "schema": "public",
676 - "table": "relay_live_activities"
677 - },
678 - {
679 - "type": "varchar(255)",
680 - "typeSchema": null,
681 - "notNull": true,
682 - "dimensions": 0,
683 - "default": null,
684 - "generated": null,
685 - "identity": null,
686 - "name": "device_id",
687 - "entityType": "columns",
688 - "schema": "public",
689 - "table": "relay_live_activities"
690 - },
691 - {
692 - "type": "text",
693 - "typeSchema": null,
694 - "notNull": false,
695 - "dimensions": 0,
696 - "default": null,
697 - "generated": null,
698 - "identity": null,
699 - "name": "activity_push_token",
700 - "entityType": "columns",
701 - "schema": "public",
702 - "table": "relay_live_activities"
703 - },
704 - {
705 - "type": "varchar(64)",
706 - "typeSchema": null,
707 - "notNull": false,
708 - "dimensions": 0,
709 - "default": null,
710 - "generated": null,
711 - "identity": null,
712 - "name": "remote_start_queued_at",
713 - "entityType": "columns",
714 - "schema": "public",
715 - "table": "relay_live_activities"
716 - },
717 - {
718 - "type": "varchar(64)",
719 - "typeSchema": null,
720 - "notNull": false,
721 - "dimensions": 0,
722 - "default": null,
723 - "generated": null,
724 - "identity": null,
725 - "name": "remote_started_at",
726 - "entityType": "columns",
727 - "schema": "public",
728 - "table": "relay_live_activities"
729 - },
730 - {
731 - "type": "varchar(64)",
732 - "typeSchema": null,
733 - "notNull": false,
734 - "dimensions": 0,
735 - "default": null,
736 - "generated": null,
737 - "identity": null,
738 - "name": "ended_at",
739 - "entityType": "columns",
740 - "schema": "public",
741 - "table": "relay_live_activities"
742 - },
743 - {
744 - "type": "jsonb",
745 - "typeSchema": null,
746 - "notNull": false,
747 - "dimensions": 0,
748 - "default": null,
749 - "generated": null,
750 - "identity": null,
751 - "name": "last_aggregate_json",
752 - "entityType": "columns",
753 - "schema": "public",
754 - "table": "relay_live_activities"
755 - },
756 - {
757 - "type": "varchar(64)",
758 - "typeSchema": null,
759 - "notNull": false,
760 - "dimensions": 0,
761 - "default": null,
762 - "generated": null,
763 - "identity": null,
764 - "name": "last_live_activity_delivery_at",
765 - "entityType": "columns",
766 - "schema": "public",
767 - "table": "relay_live_activities"
768 - },
769 - {
770 - "type": "varchar(64)",
771 - "typeSchema": null,
772 - "notNull": true,
773 - "dimensions": 0,
774 - "default": null,
775 - "generated": null,
776 - "identity": null,
777 - "name": "created_at",
778 - "entityType": "columns",
779 - "schema": "public",
780 - "table": "relay_live_activities"
781 - },
782 - {
783 - "type": "varchar(64)",
784 - "typeSchema": null,
785 - "notNull": true,
786 - "dimensions": 0,
787 - "default": null,
788 - "generated": null,
789 - "identity": null,
790 - "name": "updated_at",
791 - "entityType": "columns",
792 - "schema": "public",
793 - "table": "relay_live_activities"
794 - },
795 - {
796 - "type": "varchar(191)",
797 - "typeSchema": null,
798 - "notNull": true,
799 - "dimensions": 0,
800 - "default": null,
801 - "generated": null,
802 - "identity": null,
803 - "name": "user_id",
804 - "entityType": "columns",
805 - "schema": "public",
806 - "table": "relay_managed_endpoint_allocations"
807 - },
808 - {
809 - "type": "varchar(191)",
810 - "typeSchema": null,
811 - "notNull": true,
812 - "dimensions": 0,
813 - "default": null,
814 - "generated": null,
815 - "identity": null,
816 - "name": "environment_id",
817 - "entityType": "columns",
818 - "schema": "public",
819 - "table": "relay_managed_endpoint_allocations"
820 - },
821 - {
822 - "type": "text",
823 - "typeSchema": null,
824 - "notNull": true,
825 - "dimensions": 0,
826 - "default": null,
827 - "generated": null,
828 - "identity": null,
829 - "name": "hostname",
830 - "entityType": "columns",
831 - "schema": "public",
832 - "table": "relay_managed_endpoint_allocations"
833 - },
834 - {
835 - "type": "varchar(191)",
836 - "typeSchema": null,
837 - "notNull": false,
838 - "dimensions": 0,
839 - "default": null,
840 - "generated": null,
841 - "identity": null,
842 - "name": "tunnel_id",
843 - "entityType": "columns",
844 - "schema": "public",
845 - "table": "relay_managed_endpoint_allocations"
846 - },
847 - {
848 - "type": "text",
849 - "typeSchema": null,
850 - "notNull": true,
851 - "dimensions": 0,
852 - "default": null,
853 - "generated": null,
854 - "identity": null,
855 - "name": "tunnel_name",
856 - "entityType": "columns",
857 - "schema": "public",
858 - "table": "relay_managed_endpoint_allocations"
859 - },
860 - {
861 - "type": "varchar(191)",
862 - "typeSchema": null,
863 - "notNull": false,
864 - "dimensions": 0,
865 - "default": null,
866 - "generated": null,
867 - "identity": null,
868 - "name": "dns_record_id",
869 - "entityType": "columns",
870 - "schema": "public",
871 - "table": "relay_managed_endpoint_allocations"
872 - },
873 - {
874 - "type": "varchar(64)",
875 - "typeSchema": null,
876 - "notNull": false,
877 - "dimensions": 0,
878 - "default": null,
879 - "generated": null,
880 - "identity": null,
881 - "name": "ready_at",
882 - "entityType": "columns",
883 - "schema": "public",
884 - "table": "relay_managed_endpoint_allocations"
885 - },
886 - {
887 - "type": "varchar(64)",
888 - "typeSchema": null,
889 - "notNull": false,
890 - "dimensions": 0,
891 - "default": null,
892 - "generated": null,
893 - "identity": null,
894 - "name": "recovery_enabled_at",
895 - "entityType": "columns",
896 - "schema": "public",
897 - "table": "relay_managed_endpoint_allocations"
898 - },
899 - {
900 - "type": "text",
901 - "typeSchema": null,
902 - "notNull": false,
903 - "dimensions": 0,
904 - "default": null,
905 - "generated": null,
906 - "identity": null,
907 - "name": "recovery_environment_public_key",
908 - "entityType": "columns",
909 - "schema": "public",
910 - "table": "relay_managed_endpoint_allocations"
911 - },
912 - {
913 - "type": "varchar(64)",
914 - "typeSchema": null,
915 - "notNull": false,
916 - "dimensions": 0,
917 - "default": null,
918 - "generated": null,
919 - "identity": null,
920 - "name": "tunnel_released_at",
921 - "entityType": "columns",
922 - "schema": "public",
923 - "table": "relay_managed_endpoint_allocations"
924 - },
925 - {
926 - "type": "jsonb",
927 - "typeSchema": null,
928 - "notNull": false,
929 - "dimensions": 0,
930 - "default": null,
931 - "generated": null,
932 - "identity": null,
933 - "name": "origin",
934 - "entityType": "columns",
935 - "schema": "public",
936 - "table": "relay_managed_endpoint_allocations"
937 - },
938 - {
939 - "type": "integer",
940 - "typeSchema": null,
941 - "notNull": true,
942 - "dimensions": 0,
943 - "default": "0",
944 - "generated": null,
945 - "identity": null,
946 - "name": "generation",
947 - "entityType": "columns",
948 - "schema": "public",
949 - "table": "relay_managed_endpoint_allocations"
950 - },
951 - {
952 - "type": "varchar(64)",
953 - "typeSchema": null,
954 - "notNull": true,
955 - "dimensions": 0,
956 - "default": null,
957 - "generated": null,
958 - "identity": null,
959 - "name": "created_at",
960 - "entityType": "columns",
961 - "schema": "public",
962 - "table": "relay_managed_endpoint_allocations"
963 - },
964 - {
965 - "type": "varchar(64)",
966 - "typeSchema": null,
967 - "notNull": true,
968 - "dimensions": 0,
969 - "default": null,
970 - "generated": null,
971 - "identity": null,
972 - "name": "updated_at",
973 - "entityType": "columns",
974 - "schema": "public",
975 - "table": "relay_managed_endpoint_allocations"
976 - },
977 - {
978 - "type": "varchar(191)",
979 - "typeSchema": null,
980 - "notNull": true,
981 - "dimensions": 0,
982 - "default": null,
983 - "generated": null,
984 - "identity": null,
985 - "name": "user_id",
986 - "entityType": "columns",
987 - "schema": "public",
988 - "table": "relay_managed_tunnel_limits"
989 - },
990 - {
991 - "type": "integer",
992 - "typeSchema": null,
993 - "notNull": true,
994 - "dimensions": 0,
995 - "default": null,
996 - "generated": null,
997 - "identity": null,
998 - "name": "max_tunnels",
999 - "entityType": "columns",
1000 - "schema": "public",
1001 - "table": "relay_managed_tunnel_limits"
1002 - },
1003 - {
1004 - "type": "varchar(64)",
1005 - "typeSchema": null,
1006 - "notNull": true,
1007 - "dimensions": 0,
1008 - "default": null,
1009 - "generated": null,
1010 - "identity": null,
1011 - "name": "created_at",
1012 - "entityType": "columns",
1013 - "schema": "public",
1014 - "table": "relay_managed_tunnel_limits"
1015 - },
1016 - {
1017 - "type": "varchar(64)",
1018 - "typeSchema": null,
1019 - "notNull": true,
1020 - "dimensions": 0,
1021 - "default": null,
1022 - "generated": null,
1023 - "identity": null,
1024 - "name": "updated_at",
1025 - "entityType": "columns",
1026 - "schema": "public",
1027 - "table": "relay_managed_tunnel_limits"
1028 - },
1029 - {
1030 - "type": "varchar(255)",
1031 - "typeSchema": null,
1032 - "notNull": true,
1033 - "dimensions": 0,
1034 - "default": null,
1035 - "generated": null,
1036 - "identity": null,
1037 - "name": "user_id",
1038 - "entityType": "columns",
1039 - "schema": "public",
1040 - "table": "relay_mobile_devices"
1041 - },
1042 - {
1043 - "type": "varchar(255)",
1044 - "typeSchema": null,
1045 - "notNull": true,
1046 - "dimensions": 0,
1047 - "default": null,
1048 - "generated": null,
1049 - "identity": null,
1050 - "name": "device_id",
1051 - "entityType": "columns",
1052 - "schema": "public",
1053 - "table": "relay_mobile_devices"
1054 - },
1055 - {
1056 - "type": "text",
1057 - "typeSchema": null,
1058 - "notNull": true,
1059 - "dimensions": 0,
1060 - "default": "'iOS device'",
1061 - "generated": null,
1062 - "identity": null,
1063 - "name": "label",
1064 - "entityType": "columns",
1065 - "schema": "public",
1066 - "table": "relay_mobile_devices"
1067 - },
1068 - {
1069 - "type": "varchar(16)",
1070 - "typeSchema": null,
1071 - "notNull": true,
1072 - "dimensions": 0,
1073 - "default": null,
1074 - "generated": null,
1075 - "identity": null,
1076 - "name": "platform",
1077 - "entityType": "columns",
1078 - "schema": "public",
1079 - "table": "relay_mobile_devices"
1080 - },
1081 - {
1082 - "type": "integer",
1083 - "typeSchema": null,
1084 - "notNull": false,
1085 - "dimensions": 0,
1086 - "default": null,
1087 - "generated": null,
1088 - "identity": null,
1089 - "name": "ios_major_version",
1090 - "entityType": "columns",
1091 - "schema": "public",
1092 - "table": "relay_mobile_devices"
1093 - },
1094 - {
1095 - "type": "integer",
1096 - "typeSchema": null,
1097 - "notNull": false,
1098 - "dimensions": 0,
1099 - "default": null,
1100 - "generated": null,
1101 - "identity": null,
1102 - "name": "android_api_level",
1103 - "entityType": "columns",
1104 - "schema": "public",
1105 - "table": "relay_mobile_devices"
1106 - },
1107 - {
1108 - "type": "varchar(64)",
1109 - "typeSchema": null,
1110 - "notNull": false,
1111 - "dimensions": 0,
1112 - "default": null,
1113 - "generated": null,
1114 - "identity": null,
1115 - "name": "app_version",
1116 - "entityType": "columns",
1117 - "schema": "public",
1118 - "table": "relay_mobile_devices"
1119 - },
1120 - {
1121 - "type": "varchar(255)",
1122 - "typeSchema": null,
1123 - "notNull": false,
1124 - "dimensions": 0,
1125 - "default": null,
1126 - "generated": null,
1127 - "identity": null,
1128 - "name": "bundle_id",
1129 - "entityType": "columns",
1130 - "schema": "public",
1131 - "table": "relay_mobile_devices"
1132 - },
1133 - {
1134 - "type": "varchar(16)",
1135 - "typeSchema": null,
1136 - "notNull": false,
1137 - "dimensions": 0,
1138 - "default": null,
1139 - "generated": null,
1140 - "identity": null,
1141 - "name": "aps_environment",
1142 - "entityType": "columns",
1143 - "schema": "public",
1144 - "table": "relay_mobile_devices"
1145 - },
1146 - {
1147 - "type": "text",
1148 - "typeSchema": null,
1149 - "notNull": false,
1150 - "dimensions": 0,
1151 - "default": null,
1152 - "generated": null,
1153 - "identity": null,
1154 - "name": "push_token",
1155 - "entityType": "columns",
1156 - "schema": "public",
1157 - "table": "relay_mobile_devices"
1158 - },
1159 - {
1160 - "type": "text",
1161 - "typeSchema": null,
1162 - "notNull": false,
1163 - "dimensions": 0,
1164 - "default": null,
1165 - "generated": null,
1166 - "identity": null,
1167 - "name": "push_to_start_token",
1168 - "entityType": "columns",
1169 - "schema": "public",
1170 - "table": "relay_mobile_devices"
1171 - },
1172 - {
1173 - "type": "jsonb",
1174 - "typeSchema": null,
1175 - "notNull": true,
1176 - "dimensions": 0,
1177 - "default": null,
1178 - "generated": null,
1179 - "identity": null,
1180 - "name": "preferences_json",
1181 - "entityType": "columns",
1182 - "schema": "public",
1183 - "table": "relay_mobile_devices"
1184 - },
1185 - {
1186 - "type": "varchar(64)",
1187 - "typeSchema": null,
1188 - "notNull": true,
1189 - "dimensions": 0,
1190 - "default": null,
1191 - "generated": null,
1192 - "identity": null,
1193 - "name": "created_at",
1194 - "entityType": "columns",
1195 - "schema": "public",
1196 - "table": "relay_mobile_devices"
1197 - },
1198 - {
1199 - "type": "varchar(64)",
1200 - "typeSchema": null,
1201 - "notNull": true,
1202 - "dimensions": 0,
1203 - "default": null,
1204 - "generated": null,
1205 - "identity": null,
1206 - "name": "updated_at",
1207 - "entityType": "columns",
1208 - "schema": "public",
1209 - "table": "relay_mobile_devices"
1210 - },
1211 - {
1212 - "type": "varchar(64)",
1213 - "typeSchema": null,
1214 - "notNull": true,
1215 - "dimensions": 0,
1216 - "default": null,
1217 - "generated": null,
1218 - "identity": null,
1219 - "name": "api",
1220 - "entityType": "columns",
1221 - "schema": "public",
1222 - "table": "relay_upstream_api_pauses"
1223 - },
1224 - {
1225 - "type": "bigint",
1226 - "typeSchema": null,
1227 - "notNull": true,
1228 - "dimensions": 0,
1229 - "default": null,
1230 - "generated": null,
1231 - "identity": null,
1232 - "name": "paused_until_ms",
1233 - "entityType": "columns",
1234 - "schema": "public",
1235 - "table": "relay_upstream_api_pauses"
1236 - },
1237 - {
1238 - "nameExplicit": true,
1239 - "columns": [
1240 - {
1241 - "value": "created_at",
1242 - "isExpression": false,
1243 - "asc": true,
1244 - "nullsFirst": false,
1245 - "opclass": null
1246 - }
7 + "footprints": [
8 + {
9 + "statementType": "drop_index",
10 + "statementTarget": [
11 + "index",
12 + "public",
13 + "relay_delivery_attempts",
14 + "idx_relay_delivery_attempts_environment"
15 ],
1248 - "isUnique": false,
1249 - "where": null,
1250 - "with": "",
1251 - "method": "btree",
1252 - "concurrently": false,
1253 - "name": "idx_relay_delivery_attempts_created",
1254 - "entityType": "indexes",
1255 - "schema": "public",
1256 - "table": "relay_delivery_attempts"
1257 - },
1258 - {
1259 - "nameExplicit": true,
1260 - "columns": [
1261 - {
1262 - "value": "source_job_id",
1263 - "isExpression": false,
1264 - "asc": true,
1265 - "nullsFirst": false,
1266 - "opclass": null
1267 - }
16 + "writes": [
17 + "s|idx|public.idx_relay_delivery_attempts_environment",
18 + "n|idx|public.idx_relay_delivery_attempts_environment",
19 + "e|idx|public.idx_relay_delivery_attempts_environment",
20 + "n|rel|public.idx_relay_delivery_attempts_environment"
21 ],
1269 - "isUnique": true,
1270 - "where": null,
1271 - "with": "",
1272 - "method": "btree",
1273 - "concurrently": false,
1274 - "name": "idx_relay_delivery_attempts_source_job",
1275 - "entityType": "indexes",
1276 - "schema": "public",
1277 - "table": "relay_delivery_attempts"
1278 - },
1279 - {
1280 - "nameExplicit": true,
1281 - "columns": [
1282 - {
1283 - "value": "expires_at",
1284 - "isExpression": false,
1285 - "asc": true,
1286 - "nullsFirst": false,
1287 - "opclass": null
1288 - }
22 + "reads": [
23 + "e|tbl|public.relay_delivery_attempts",
24 + "n|sch|public",
25 + "e|col|public.relay_delivery_attempts.environment_id",
26 + "e|col|public.relay_delivery_attempts.thread_id",
27 + "e|col|public.relay_delivery_attempts.created_at"
28 ],
1290 - "isUnique": false,
1291 - "where": null,
1292 - "with": "",
1293 - "method": "btree",
1294 - "concurrently": false,
1295 - "name": "idx_relay_dpop_proofs_expires_at",
1296 - "entityType": "indexes",
1297 - "schema": "public",
1298 - "table": "relay_dpop_proofs"
29 + "sharedWrites": []
30 },
31 {
1301 - "nameExplicit": true,
1302 - "columns": [
1303 - {
1304 - "value": "credential_hash",
1305 - "isExpression": false,
1306 - "asc": true,
1307 - "nullsFirst": false,
1308 - "opclass": null
1309 - }
32 + "statementType": "drop_index",
33 + "statementTarget": [
34 + "index",
35 + "public",
36 + "relay_agent_activity_rows",
37 + "idx_relay_agent_activity_rows_updated"
38 ],
1311 - "isUnique": true,
1312 - "where": null,
1313 - "with": "",
1314 - "method": "btree",
1315 - "concurrently": false,
1316 - "name": "idx_relay_environment_credentials_hash",
1317 - "entityType": "indexes",
1318 - "schema": "public",
1319 - "table": "relay_environment_credentials"
1320 - },
1321 - {
1322 - "nameExplicit": true,
1323 - "columns": [
1324 - {
1325 - "value": "environment_id",
1326 - "isExpression": false,
1327 - "asc": true,
1328 - "nullsFirst": false,
1329 - "opclass": null
1330 - },
1331 - {
1332 - "value": "environment_public_key",
1333 - "isExpression": false,
1334 - "asc": true,
1335 - "nullsFirst": false,
1336 - "opclass": null
1337 - },
1338 - {
1339 - "value": "revoked_at",
1340 - "isExpression": false,
1341 - "asc": true,
1342 - "nullsFirst": false,
1343 - "opclass": null
1344 - }
39 + "writes": [
40 + "s|idx|public.idx_relay_agent_activity_rows_updated",
41 + "n|idx|public.idx_relay_agent_activity_rows_updated",
42 + "e|idx|public.idx_relay_agent_activity_rows_updated",
43 + "n|rel|public.idx_relay_agent_activity_rows_updated"
44 ],
1346 - "isUnique": false,
1347 - "where": null,
1348 - "with": "",
1349 - "method": "btree",
1350 - "concurrently": false,
1351 - "name": "idx_relay_environment_credentials_environment_key",
1352 - "entityType": "indexes",
1353 - "schema": "public",
1354 - "table": "relay_environment_credentials"
1355 - },
1356 - {
1357 - "nameExplicit": true,
1358 - "columns": [
1359 - {
1360 - "value": "environment_id",
1361 - "isExpression": false,
1362 - "asc": true,
1363 - "nullsFirst": false,
1364 - "opclass": null
1365 - },
1366 - {
1367 - "value": "revoked_at",
1368 - "isExpression": false,
1369 - "asc": true,
1370 - "nullsFirst": false,
1371 - "opclass": null
1372 - }
45 + "reads": [
46 + "e|tbl|public.relay_agent_activity_rows",
47 + "n|sch|public",
48 + "e|col|public.relay_agent_activity_rows.updated_at"
49 ],
1374 - "isUnique": false,
1375 - "where": null,
1376 - "with": "",
1377 - "method": "btree",
1378 - "concurrently": false,
1379 - "name": "idx_relay_environment_links_environment",
1380 - "entityType": "indexes",
1381 - "schema": "public",
1382 - "table": "relay_environment_links"
50 + "sharedWrites": []
51 },
52 {
1385 - "nameExplicit": true,
1386 - "columns": [
1387 - {
1388 - "value": "activity_push_token",
1389 - "isExpression": false,
1390 - "asc": true,
1391 - "nullsFirst": false,
1392 - "opclass": null
1393 - }
53 + "statementType": "drop_index",
54 + "statementTarget": [
55 + "index",
56 + "public",
57 + "relay_environment_credentials",
58 + "idx_relay_environment_credentials_environment"
59 ],
1395 - "isUnique": true,
1396 - "where": null,
1397 - "with": "",
1398 - "method": "btree",
1399 - "concurrently": false,
1400 - "name": "idx_relay_live_activities_activity_push_token",
1401 - "entityType": "indexes",
1402 - "schema": "public",
1403 - "table": "relay_live_activities"
1404 - },
1405 - {
1406 - "nameExplicit": true,
1407 - "columns": [
1408 - {
1409 - "value": "hostname",
1410 - "isExpression": false,
1411 - "asc": true,
1412 - "nullsFirst": false,
1413 - "opclass": null
1414 - }
60 + "writes": [
61 + "s|idx|public.idx_relay_environment_credentials_environment",
62 + "n|idx|public.idx_relay_environment_credentials_environment",
63 + "e|idx|public.idx_relay_environment_credentials_environment",
64 + "n|rel|public.idx_relay_environment_credentials_environment"
65 ],
1416 - "isUnique": true,
1417 - "where": null,
1418 - "with": "",
1419 - "method": "btree",
1420 - "concurrently": false,
1421 - "name": "idx_relay_managed_endpoint_allocations_hostname",
1422 - "entityType": "indexes",
1423 - "schema": "public",
1424 - "table": "relay_managed_endpoint_allocations"
1425 - },
1426 - {
1427 - "nameExplicit": true,
1428 - "columns": [
1429 - {
1430 - "value": "tunnel_name",
1431 - "isExpression": false,
1432 - "asc": true,
1433 - "nullsFirst": false,
1434 - "opclass": null
1435 - }
66 + "reads": [
67 + "e|tbl|public.relay_environment_credentials",
68 + "n|sch|public",
69 + "e|col|public.relay_environment_credentials.environment_id",
70 + "e|col|public.relay_environment_credentials.revoked_at"
71 ],
1437 - "isUnique": true,
1438 - "where": null,
1439 - "with": "",
1440 - "method": "btree",
1441 - "concurrently": false,
1442 - "name": "idx_relay_managed_endpoint_allocations_tunnel_name",
1443 - "entityType": "indexes",
1444 - "schema": "public",
1445 - "table": "relay_managed_endpoint_allocations"
72 + "sharedWrites": []
73 },
74 {
1448 - "nameExplicit": true,
1449 - "columns": [
1450 - {
1451 - "value": "push_token",
1452 - "isExpression": false,
1453 - "asc": true,
1454 - "nullsFirst": false,
1455 - "opclass": null
1456 - }
75 + "statementType": "create_index",
76 + "statementTarget": [
77 + "index",
78 + "public",
79 + "relay_delivery_attempts",
80 + "idx_relay_delivery_attempts_created"
81 ],
1458 - "isUnique": true,
1459 - "where": null,
1460 - "with": "",
1461 - "method": "btree",
1462 - "concurrently": false,
1463 - "name": "idx_relay_mobile_devices_push_token",
1464 - "entityType": "indexes",
1465 - "schema": "public",
1466 - "table": "relay_mobile_devices"
1467 - },
1468 - {
1469 - "nameExplicit": true,
1470 - "columns": [
1471 - {
1472 - "value": "push_to_start_token",
1473 - "isExpression": false,
1474 - "asc": true,
1475 - "nullsFirst": false,
1476 - "opclass": null
1477 - }
82 + "writes": [
83 + "s|idx|public.idx_relay_delivery_attempts_created",
84 + "n|idx|public.idx_relay_delivery_attempts_created",
85 + "e|idx|public.idx_relay_delivery_attempts_created",
86 + "n|rel|public.idx_relay_delivery_attempts_created"
87 ],
1479 - "isUnique": true,
1480 - "where": null,
1481 - "with": "",
1482 - "method": "btree",
1483 - "concurrently": false,
1484 - "name": "idx_relay_mobile_devices_push_to_start_token",
1485 - "entityType": "indexes",
1486 - "schema": "public",
1487 - "table": "relay_mobile_devices"
1488 - },
1489 - {
1490 - "columns": ["environment_id", "environment_public_key", "thread_id"],
1491 - "nameExplicit": false,
1492 - "name": "relay_agent_activity_rows_pkey",
1493 - "entityType": "pks",
1494 - "schema": "public",
1495 - "table": "relay_agent_activity_rows"
1496 - },
1497 - {
1498 - "columns": ["thumbprint", "jti"],
1499 - "nameExplicit": false,
1500 - "name": "relay_dpop_proofs_pkey",
1501 - "entityType": "pks",
1502 - "schema": "public",
1503 - "table": "relay_dpop_proofs"
1504 - },
1505 - {
1506 - "columns": ["user_id", "environment_id"],
1507 - "nameExplicit": false,
1508 - "name": "relay_environment_links_pkey",
1509 - "entityType": "pks",
1510 - "schema": "public",
1511 - "table": "relay_environment_links"
1512 - },
1513 - {
1514 - "columns": ["user_id", "device_id"],
1515 - "nameExplicit": false,
1516 - "name": "relay_live_activities_pkey",
1517 - "entityType": "pks",
1518 - "schema": "public",
1519 - "table": "relay_live_activities"
1520 - },
1521 - {
1522 - "columns": ["user_id", "environment_id"],
1523 - "nameExplicit": false,
1524 - "name": "relay_managed_endpoint_allocations_pkey",
1525 - "entityType": "pks",
1526 - "schema": "public",
1527 - "table": "relay_managed_endpoint_allocations"
1528 - },
1529 - {
1530 - "columns": ["user_id", "device_id"],
1531 - "nameExplicit": false,
1532 - "name": "relay_mobile_devices_pkey",
1533 - "entityType": "pks",
1534 - "schema": "public",
1535 - "table": "relay_mobile_devices"
1536 - },
1537 - {
1538 - "columns": ["id"],
1539 - "nameExplicit": false,
1540 - "name": "relay_delivery_attempts_pkey",
1541 - "schema": "public",
1542 - "table": "relay_delivery_attempts",
1543 - "entityType": "pks"
1544 - },
1545 - {
1546 - "columns": ["credential_id"],
1547 - "nameExplicit": false,
1548 - "name": "relay_environment_credentials_pkey",
1549 - "schema": "public",
1550 - "table": "relay_environment_credentials",
1551 - "entityType": "pks"
1552 - },
1553 - {
1554 - "columns": ["user_id"],
1555 - "nameExplicit": false,
1556 - "name": "relay_managed_tunnel_limits_pkey",
1557 - "schema": "public",
1558 - "table": "relay_managed_tunnel_limits",
1559 - "entityType": "pks"
1560 - },
1561 - {
1562 - "columns": ["api"],
1563 - "nameExplicit": false,
1564 - "name": "relay_upstream_api_pauses_pkey",
1565 - "schema": "public",
1566 - "table": "relay_upstream_api_pauses",
1567 - "entityType": "pks"
88 + "reads": [
89 + "n|tbl|public.relay_delivery_attempts",
90 + "n|sch|public",
91 + "n|col|public.relay_delivery_attempts.created_at"
92 + ]
93 }
94 ],
1570 - "renames": []
95 + "deltas": [
96 + {
97 + "op": "create",
98 + "row": {
99 + "schema": "public",
100 + "table": "relay_delivery_attempts",
101 + "name": "idx_relay_delivery_attempts_created",
102 + "nameExplicit": true,
103 + "columns": [
104 + {
105 + "value": "created_at",
106 + "isExpression": false,
107 + "asc": true,
108 + "nullsFirst": false,
109 + "opclass": null
110 + }
111 + ],
112 + "isUnique": false,
113 + "where": null,
114 + "with": "",
115 + "method": "btree",
116 + "concurrently": false,
117 + "entityType": "indexes"
118 + }
119 + },
120 + {
121 + "op": "drop",
122 + "key": "indexes\u0000[\"public\",\"idx_relay_agent_activity_rows_updated\"]"
123 + },
124 + {
125 + "op": "drop",
126 + "key": "indexes\u0000[\"public\",\"idx_relay_delivery_attempts_environment\"]"
127 + },
128 + {
129 + "op": "drop",
130 + "key": "indexes\u0000[\"public\",\"idx_relay_environment_credentials_environment\"]"
131 + }
132 + ]
133 }
infra/relay/migrations/postgres/20261028062605_backfill_withdrawn_tunnel_allocations/snapshot.json
+5 -1567
@@ -1,1571 +1,9 @@
1 {
2 + "type": "diff",
3 + "version": "9",
4 + "dialect": "postgres",
5 "id": "4413755a-63f1-4f93-bdc9-d1357283c23e",
6 "prevIds": ["7d8c1702-6f47-4453-a8ee-66ce5e3bfb41"],
4 - "version": "8",
5 - "dialect": "postgres",
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_managed_endpoint_allocations",
46 - "entityType": "tables",
47 - "schema": "public"
48 - },
49 - {
50 - "isRlsEnabled": false,
51 - "name": "relay_managed_tunnel_limits",
52 - "entityType": "tables",
53 - "schema": "public"
54 - },
55 - {
56 - "isRlsEnabled": false,
57 - "name": "relay_mobile_devices",
58 - "entityType": "tables",
59 - "schema": "public"
60 - },
61 - {
62 - "isRlsEnabled": false,
63 - "name": "relay_upstream_api_pauses",
64 - "entityType": "tables",
65 - "schema": "public"
66 - },
67 - {
68 - "type": "varchar(191)",
69 - "typeSchema": null,
70 - "notNull": true,
71 - "dimensions": 0,
72 - "default": null,
73 - "generated": null,
74 - "identity": null,
75 - "name": "environment_id",
76 - "entityType": "columns",
77 - "schema": "public",
78 - "table": "relay_agent_activity_rows"
79 - },
80 - {
81 - "type": "text",
82 - "typeSchema": null,
83 - "notNull": true,
84 - "dimensions": 0,
85 - "default": null,
86 - "generated": null,
87 - "identity": null,
88 - "name": "environment_public_key",
89 - "entityType": "columns",
90 - "schema": "public",
91 - "table": "relay_agent_activity_rows"
92 - },
93 - {
94 - "type": "varchar(512)",
95 - "typeSchema": null,
96 - "notNull": true,
97 - "dimensions": 0,
98 - "default": null,
99 - "generated": null,
100 - "identity": null,
101 - "name": "thread_id",
102 - "entityType": "columns",
103 - "schema": "public",
104 - "table": "relay_agent_activity_rows"
105 - },
106 - {
107 - "type": "jsonb",
108 - "typeSchema": null,
109 - "notNull": true,
110 - "dimensions": 0,
111 - "default": null,
112 - "generated": null,
113 - "identity": null,
114 - "name": "state_json",
115 - "entityType": "columns",
116 - "schema": "public",
117 - "table": "relay_agent_activity_rows"
118 - },
119 - {
120 - "type": "varchar(64)",
121 - "typeSchema": null,
122 - "notNull": true,
123 - "dimensions": 0,
124 - "default": null,
125 - "generated": null,
126 - "identity": null,
127 - "name": "updated_at",
128 - "entityType": "columns",
129 - "schema": "public",
130 - "table": "relay_agent_activity_rows"
131 - },
132 - {
133 - "type": "varchar(64)",
134 - "typeSchema": null,
135 - "notNull": true,
136 - "dimensions": 0,
137 - "default": null,
138 - "generated": null,
139 - "identity": null,
140 - "name": "created_at",
141 - "entityType": "columns",
142 - "schema": "public",
143 - "table": "relay_agent_activity_rows"
144 - },
145 - {
146 - "type": "varchar(36)",
147 - "typeSchema": null,
148 - "notNull": true,
149 - "dimensions": 0,
150 - "default": null,
151 - "generated": null,
152 - "identity": null,
153 - "name": "id",
154 - "entityType": "columns",
155 - "schema": "public",
156 - "table": "relay_delivery_attempts"
157 - },
158 - {
159 - "type": "varchar(64)",
160 - "typeSchema": null,
161 - "notNull": true,
162 - "dimensions": 0,
163 - "default": null,
164 - "generated": null,
165 - "identity": null,
166 - "name": "created_at",
167 - "entityType": "columns",
168 - "schema": "public",
169 - "table": "relay_delivery_attempts"
170 - },
171 - {
172 - "type": "varchar(255)",
173 - "typeSchema": null,
174 - "notNull": false,
175 - "dimensions": 0,
176 - "default": null,
177 - "generated": null,
178 - "identity": null,
179 - "name": "user_id",
180 - "entityType": "columns",
181 - "schema": "public",
182 - "table": "relay_delivery_attempts"
183 - },
184 - {
185 - "type": "varchar(191)",
186 - "typeSchema": null,
187 - "notNull": false,
188 - "dimensions": 0,
189 - "default": null,
190 - "generated": null,
191 - "identity": null,
192 - "name": "environment_id",
193 - "entityType": "columns",
194 - "schema": "public",
195 - "table": "relay_delivery_attempts"
196 - },
197 - {
198 - "type": "varchar(512)",
199 - "typeSchema": null,
200 - "notNull": false,
201 - "dimensions": 0,
202 - "default": null,
203 - "generated": null,
204 - "identity": null,
205 - "name": "thread_id",
206 - "entityType": "columns",
207 - "schema": "public",
208 - "table": "relay_delivery_attempts"
209 - },
210 - {
211 - "type": "varchar(255)",
212 - "typeSchema": null,
213 - "notNull": false,
214 - "dimensions": 0,
215 - "default": null,
216 - "generated": null,
217 - "identity": null,
218 - "name": "device_id",
219 - "entityType": "columns",
220 - "schema": "public",
221 - "table": "relay_delivery_attempts"
222 - },
223 - {
224 - "type": "varchar(64)",
225 - "typeSchema": null,
226 - "notNull": true,
227 - "dimensions": 0,
228 - "default": null,
229 - "generated": null,
230 - "identity": null,
231 - "name": "kind",
232 - "entityType": "columns",
233 - "schema": "public",
234 - "table": "relay_delivery_attempts"
235 - },
236 - {
237 - "type": "varchar(64)",
238 - "typeSchema": null,
239 - "notNull": false,
240 - "dimensions": 0,
241 - "default": null,
242 - "generated": null,
243 - "identity": null,
244 - "name": "source_job_id",
245 - "entityType": "columns",
246 - "schema": "public",
247 - "table": "relay_delivery_attempts"
248 - },
249 - {
250 - "type": "varchar(16)",
251 - "typeSchema": null,
252 - "notNull": false,
253 - "dimensions": 0,
254 - "default": null,
255 - "generated": null,
256 - "identity": null,
257 - "name": "token_suffix",
258 - "entityType": "columns",
259 - "schema": "public",
260 - "table": "relay_delivery_attempts"
261 - },
262 - {
263 - "type": "integer",
264 - "typeSchema": null,
265 - "notNull": false,
266 - "dimensions": 0,
267 - "default": null,
268 - "generated": null,
269 - "identity": null,
270 - "name": "apns_status",
271 - "entityType": "columns",
272 - "schema": "public",
273 - "table": "relay_delivery_attempts"
274 - },
275 - {
276 - "type": "text",
277 - "typeSchema": null,
278 - "notNull": false,
279 - "dimensions": 0,
280 - "default": null,
281 - "generated": null,
282 - "identity": null,
283 - "name": "apns_reason",
284 - "entityType": "columns",
285 - "schema": "public",
286 - "table": "relay_delivery_attempts"
287 - },
288 - {
289 - "type": "varchar(128)",
290 - "typeSchema": null,
291 - "notNull": false,
292 - "dimensions": 0,
293 - "default": null,
294 - "generated": null,
295 - "identity": null,
296 - "name": "apns_id",
297 - "entityType": "columns",
298 - "schema": "public",
299 - "table": "relay_delivery_attempts"
300 - },
301 - {
302 - "type": "text",
303 - "typeSchema": null,
304 - "notNull": false,
305 - "dimensions": 0,
306 - "default": null,
307 - "generated": null,
308 - "identity": null,
309 - "name": "transport_error",
310 - "entityType": "columns",
311 - "schema": "public",
312 - "table": "relay_delivery_attempts"
313 - },
314 - {
315 - "type": "varchar(128)",
316 - "typeSchema": null,
317 - "notNull": true,
318 - "dimensions": 0,
319 - "default": null,
320 - "generated": null,
321 - "identity": null,
322 - "name": "thumbprint",
323 - "entityType": "columns",
324 - "schema": "public",
325 - "table": "relay_dpop_proofs"
326 - },
327 - {
328 - "type": "varchar(255)",
329 - "typeSchema": null,
330 - "notNull": true,
331 - "dimensions": 0,
332 - "default": null,
333 - "generated": null,
334 - "identity": null,
335 - "name": "jti",
336 - "entityType": "columns",
337 - "schema": "public",
338 - "table": "relay_dpop_proofs"
339 - },
340 - {
341 - "type": "integer",
342 - "typeSchema": null,
343 - "notNull": true,
344 - "dimensions": 0,
345 - "default": null,
346 - "generated": null,
347 - "identity": null,
348 - "name": "iat",
349 - "entityType": "columns",
350 - "schema": "public",
351 - "table": "relay_dpop_proofs"
352 - },
353 - {
354 - "type": "varchar(64)",
355 - "typeSchema": null,
356 - "notNull": true,
357 - "dimensions": 0,
358 - "default": null,
359 - "generated": null,
360 - "identity": null,
361 - "name": "expires_at",
362 - "entityType": "columns",
363 - "schema": "public",
364 - "table": "relay_dpop_proofs"
365 - },
366 - {
367 - "type": "varchar(64)",
368 - "typeSchema": null,
369 - "notNull": true,
370 - "dimensions": 0,
371 - "default": null,
372 - "generated": null,
373 - "identity": null,
374 - "name": "created_at",
375 - "entityType": "columns",
376 - "schema": "public",
377 - "table": "relay_dpop_proofs"
378 - },
379 - {
380 - "type": "varchar(64)",
381 - "typeSchema": null,
382 - "notNull": true,
383 - "dimensions": 0,
384 - "default": null,
385 - "generated": null,
386 - "identity": null,
387 - "name": "credential_id",
388 - "entityType": "columns",
389 - "schema": "public",
390 - "table": "relay_environment_credentials"
391 - },
392 - {
393 - "type": "varchar(191)",
394 - "typeSchema": null,
395 - "notNull": true,
396 - "dimensions": 0,
397 - "default": null,
398 - "generated": null,
399 - "identity": null,
400 - "name": "environment_id",
401 - "entityType": "columns",
402 - "schema": "public",
403 - "table": "relay_environment_credentials"
404 - },
405 - {
406 - "type": "text",
407 - "typeSchema": null,
408 - "notNull": true,
409 - "dimensions": 0,
410 - "default": null,
411 - "generated": null,
412 - "identity": null,
413 - "name": "environment_public_key",
414 - "entityType": "columns",
415 - "schema": "public",
416 - "table": "relay_environment_credentials"
417 - },
418 - {
419 - "type": "varchar(191)",
420 - "typeSchema": null,
421 - "notNull": true,
422 - "dimensions": 0,
423 - "default": null,
424 - "generated": null,
425 - "identity": null,
426 - "name": "credential_hash",
427 - "entityType": "columns",
428 - "schema": "public",
429 - "table": "relay_environment_credentials"
430 - },
431 - {
432 - "type": "varchar(64)",
433 - "typeSchema": null,
434 - "notNull": false,
435 - "dimensions": 0,
436 - "default": null,
437 - "generated": null,
438 - "identity": null,
439 - "name": "revoked_at",
440 - "entityType": "columns",
441 - "schema": "public",
442 - "table": "relay_environment_credentials"
443 - },
444 - {
445 - "type": "varchar(64)",
446 - "typeSchema": null,
447 - "notNull": true,
448 - "dimensions": 0,
449 - "default": null,
450 - "generated": null,
451 - "identity": null,
452 - "name": "created_at",
453 - "entityType": "columns",
454 - "schema": "public",
455 - "table": "relay_environment_credentials"
456 - },
457 - {
458 - "type": "varchar(64)",
459 - "typeSchema": null,
460 - "notNull": true,
461 - "dimensions": 0,
462 - "default": null,
463 - "generated": null,
464 - "identity": null,
465 - "name": "updated_at",
466 - "entityType": "columns",
467 - "schema": "public",
468 - "table": "relay_environment_credentials"
469 - },
470 - {
471 - "type": "varchar(191)",
472 - "typeSchema": null,
473 - "notNull": true,
474 - "dimensions": 0,
475 - "default": null,
476 - "generated": null,
477 - "identity": null,
478 - "name": "user_id",
479 - "entityType": "columns",
480 - "schema": "public",
481 - "table": "relay_environment_links"
482 - },
483 - {
484 - "type": "varchar(191)",
485 - "typeSchema": null,
486 - "notNull": true,
487 - "dimensions": 0,
488 - "default": null,
489 - "generated": null,
490 - "identity": null,
491 - "name": "environment_id",
492 - "entityType": "columns",
493 - "schema": "public",
494 - "table": "relay_environment_links"
495 - },
496 - {
497 - "type": "text",
498 - "typeSchema": null,
499 - "notNull": true,
500 - "dimensions": 0,
501 - "default": "'T3 Environment'",
502 - "generated": null,
503 - "identity": null,
504 - "name": "environment_label",
505 - "entityType": "columns",
506 - "schema": "public",
507 - "table": "relay_environment_links"
508 - },
509 - {
510 - "type": "text",
511 - "typeSchema": null,
512 - "notNull": true,
513 - "dimensions": 0,
514 - "default": null,
515 - "generated": null,
516 - "identity": null,
517 - "name": "environment_public_key",
518 - "entityType": "columns",
519 - "schema": "public",
520 - "table": "relay_environment_links"
521 - },
522 - {
523 - "type": "text",
524 - "typeSchema": null,
525 - "notNull": true,
526 - "dimensions": 0,
527 - "default": null,
528 - "generated": null,
529 - "identity": null,
530 - "name": "endpoint_http_base_url",
531 - "entityType": "columns",
532 - "schema": "public",
533 - "table": "relay_environment_links"
534 - },
535 - {
536 - "type": "text",
537 - "typeSchema": null,
538 - "notNull": true,
539 - "dimensions": 0,
540 - "default": null,
541 - "generated": null,
542 - "identity": null,
543 - "name": "endpoint_ws_base_url",
544 - "entityType": "columns",
545 - "schema": "public",
546 - "table": "relay_environment_links"
547 - },
548 - {
549 - "type": "varchar(32)",
550 - "typeSchema": null,
551 - "notNull": true,
552 - "dimensions": 0,
553 - "default": null,
554 - "generated": null,
555 - "identity": null,
556 - "name": "endpoint_provider_kind",
557 - "entityType": "columns",
558 - "schema": "public",
559 - "table": "relay_environment_links"
560 - },
561 - {
562 - "type": "boolean",
563 - "typeSchema": null,
564 - "notNull": true,
565 - "dimensions": 0,
566 - "default": "true",
567 - "generated": null,
568 - "identity": null,
569 - "name": "notifications_enabled",
570 - "entityType": "columns",
571 - "schema": "public",
572 - "table": "relay_environment_links"
573 - },
574 - {
575 - "type": "boolean",
576 - "typeSchema": null,
577 - "notNull": true,
578 - "dimensions": 0,
579 - "default": "true",
580 - "generated": null,
581 - "identity": null,
582 - "name": "live_activities_enabled",
583 - "entityType": "columns",
584 - "schema": "public",
585 - "table": "relay_environment_links"
586 - },
587 - {
588 - "type": "boolean",
589 - "typeSchema": null,
590 - "notNull": true,
591 - "dimensions": 0,
592 - "default": "false",
593 - "generated": null,
594 - "identity": null,
595 - "name": "managed_tunnels_enabled",
596 - "entityType": "columns",
597 - "schema": "public",
598 - "table": "relay_environment_links"
599 - },
600 - {
601 - "type": "boolean",
602 - "typeSchema": null,
603 - "notNull": true,
604 - "dimensions": 0,
605 - "default": "false",
606 - "generated": null,
607 - "identity": null,
608 - "name": "hold_webhooks_while_offline",
609 - "entityType": "columns",
610 - "schema": "public",
611 - "table": "relay_environment_links"
612 - },
613 - {
614 - "type": "varchar(191)",
615 - "typeSchema": null,
616 - "notNull": false,
617 - "dimensions": 0,
618 - "default": null,
619 - "generated": null,
620 - "identity": null,
621 - "name": "created_by_device_id",
622 - "entityType": "columns",
623 - "schema": "public",
624 - "table": "relay_environment_links"
625 - },
626 - {
627 - "type": "varchar(64)",
628 - "typeSchema": null,
629 - "notNull": false,
630 - "dimensions": 0,
631 - "default": null,
632 - "generated": null,
633 - "identity": null,
634 - "name": "revoked_at",
635 - "entityType": "columns",
636 - "schema": "public",
637 - "table": "relay_environment_links"
638 - },
639 - {
640 - "type": "varchar(64)",
641 - "typeSchema": null,
642 - "notNull": true,
643 - "dimensions": 0,
644 - "default": null,
645 - "generated": null,
646 - "identity": null,
647 - "name": "created_at",
648 - "entityType": "columns",
649 - "schema": "public",
650 - "table": "relay_environment_links"
651 - },
652 - {
653 - "type": "varchar(64)",
654 - "typeSchema": null,
655 - "notNull": true,
656 - "dimensions": 0,
657 - "default": null,
658 - "generated": null,
659 - "identity": null,
660 - "name": "updated_at",
661 - "entityType": "columns",
662 - "schema": "public",
663 - "table": "relay_environment_links"
664 - },
665 - {
666 - "type": "varchar(255)",
667 - "typeSchema": null,
668 - "notNull": true,
669 - "dimensions": 0,
670 - "default": null,
671 - "generated": null,
672 - "identity": null,
673 - "name": "user_id",
674 - "entityType": "columns",
675 - "schema": "public",
676 - "table": "relay_live_activities"
677 - },
678 - {
679 - "type": "varchar(255)",
680 - "typeSchema": null,
681 - "notNull": true,
682 - "dimensions": 0,
683 - "default": null,
684 - "generated": null,
685 - "identity": null,
686 - "name": "device_id",
687 - "entityType": "columns",
688 - "schema": "public",
689 - "table": "relay_live_activities"
690 - },
691 - {
692 - "type": "text",
693 - "typeSchema": null,
694 - "notNull": false,
695 - "dimensions": 0,
696 - "default": null,
697 - "generated": null,
698 - "identity": null,
699 - "name": "activity_push_token",
700 - "entityType": "columns",
701 - "schema": "public",
702 - "table": "relay_live_activities"
703 - },
704 - {
705 - "type": "varchar(64)",
706 - "typeSchema": null,
707 - "notNull": false,
708 - "dimensions": 0,
709 - "default": null,
710 - "generated": null,
711 - "identity": null,
712 - "name": "remote_start_queued_at",
713 - "entityType": "columns",
714 - "schema": "public",
715 - "table": "relay_live_activities"
716 - },
717 - {
718 - "type": "varchar(64)",
719 - "typeSchema": null,
720 - "notNull": false,
721 - "dimensions": 0,
722 - "default": null,
723 - "generated": null,
724 - "identity": null,
725 - "name": "remote_started_at",
726 - "entityType": "columns",
727 - "schema": "public",
728 - "table": "relay_live_activities"
729 - },
730 - {
731 - "type": "varchar(64)",
732 - "typeSchema": null,
733 - "notNull": false,
734 - "dimensions": 0,
735 - "default": null,
736 - "generated": null,
737 - "identity": null,
738 - "name": "ended_at",
739 - "entityType": "columns",
740 - "schema": "public",
741 - "table": "relay_live_activities"
742 - },
743 - {
744 - "type": "jsonb",
745 - "typeSchema": null,
746 - "notNull": false,
747 - "dimensions": 0,
748 - "default": null,
749 - "generated": null,
750 - "identity": null,
751 - "name": "last_aggregate_json",
752 - "entityType": "columns",
753 - "schema": "public",
754 - "table": "relay_live_activities"
755 - },
756 - {
757 - "type": "varchar(64)",
758 - "typeSchema": null,
759 - "notNull": false,
760 - "dimensions": 0,
761 - "default": null,
762 - "generated": null,
763 - "identity": null,
764 - "name": "last_live_activity_delivery_at",
765 - "entityType": "columns",
766 - "schema": "public",
767 - "table": "relay_live_activities"
768 - },
769 - {
770 - "type": "varchar(64)",
771 - "typeSchema": null,
772 - "notNull": true,
773 - "dimensions": 0,
774 - "default": null,
775 - "generated": null,
776 - "identity": null,
777 - "name": "created_at",
778 - "entityType": "columns",
779 - "schema": "public",
780 - "table": "relay_live_activities"
781 - },
782 - {
783 - "type": "varchar(64)",
784 - "typeSchema": null,
785 - "notNull": true,
786 - "dimensions": 0,
787 - "default": null,
788 - "generated": null,
789 - "identity": null,
790 - "name": "updated_at",
791 - "entityType": "columns",
792 - "schema": "public",
793 - "table": "relay_live_activities"
794 - },
795 - {
796 - "type": "varchar(191)",
797 - "typeSchema": null,
798 - "notNull": true,
799 - "dimensions": 0,
800 - "default": null,
801 - "generated": null,
802 - "identity": null,
803 - "name": "user_id",
804 - "entityType": "columns",
805 - "schema": "public",
806 - "table": "relay_managed_endpoint_allocations"
807 - },
808 - {
809 - "type": "varchar(191)",
810 - "typeSchema": null,
811 - "notNull": true,
812 - "dimensions": 0,
813 - "default": null,
814 - "generated": null,
815 - "identity": null,
816 - "name": "environment_id",
817 - "entityType": "columns",
818 - "schema": "public",
819 - "table": "relay_managed_endpoint_allocations"
820 - },
821 - {
822 - "type": "text",
823 - "typeSchema": null,
824 - "notNull": true,
825 - "dimensions": 0,
826 - "default": null,
827 - "generated": null,
828 - "identity": null,
829 - "name": "hostname",
830 - "entityType": "columns",
831 - "schema": "public",
832 - "table": "relay_managed_endpoint_allocations"
833 - },
834 - {
835 - "type": "varchar(191)",
836 - "typeSchema": null,
837 - "notNull": false,
838 - "dimensions": 0,
839 - "default": null,
840 - "generated": null,
841 - "identity": null,
842 - "name": "tunnel_id",
843 - "entityType": "columns",
844 - "schema": "public",
845 - "table": "relay_managed_endpoint_allocations"
846 - },
847 - {
848 - "type": "text",
849 - "typeSchema": null,
850 - "notNull": true,
851 - "dimensions": 0,
852 - "default": null,
853 - "generated": null,
854 - "identity": null,
855 - "name": "tunnel_name",
856 - "entityType": "columns",
857 - "schema": "public",
858 - "table": "relay_managed_endpoint_allocations"
859 - },
860 - {
861 - "type": "varchar(191)",
862 - "typeSchema": null,
863 - "notNull": false,
864 - "dimensions": 0,
865 - "default": null,
866 - "generated": null,
867 - "identity": null,
868 - "name": "dns_record_id",
869 - "entityType": "columns",
870 - "schema": "public",
871 - "table": "relay_managed_endpoint_allocations"
872 - },
873 - {
874 - "type": "varchar(64)",
875 - "typeSchema": null,
876 - "notNull": false,
877 - "dimensions": 0,
878 - "default": null,
879 - "generated": null,
880 - "identity": null,
881 - "name": "ready_at",
882 - "entityType": "columns",
883 - "schema": "public",
884 - "table": "relay_managed_endpoint_allocations"
885 - },
886 - {
887 - "type": "varchar(64)",
888 - "typeSchema": null,
889 - "notNull": false,
890 - "dimensions": 0,
891 - "default": null,
892 - "generated": null,
893 - "identity": null,
894 - "name": "recovery_enabled_at",
895 - "entityType": "columns",
896 - "schema": "public",
897 - "table": "relay_managed_endpoint_allocations"
898 - },
899 - {
900 - "type": "text",
901 - "typeSchema": null,
902 - "notNull": false,
903 - "dimensions": 0,
904 - "default": null,
905 - "generated": null,
906 - "identity": null,
907 - "name": "recovery_environment_public_key",
908 - "entityType": "columns",
909 - "schema": "public",
910 - "table": "relay_managed_endpoint_allocations"
911 - },
912 - {
913 - "type": "varchar(64)",
914 - "typeSchema": null,
915 - "notNull": false,
916 - "dimensions": 0,
917 - "default": null,
918 - "generated": null,
919 - "identity": null,
920 - "name": "tunnel_released_at",
921 - "entityType": "columns",
922 - "schema": "public",
923 - "table": "relay_managed_endpoint_allocations"
924 - },
925 - {
926 - "type": "jsonb",
927 - "typeSchema": null,
928 - "notNull": false,
929 - "dimensions": 0,
930 - "default": null,
931 - "generated": null,
932 - "identity": null,
933 - "name": "origin",
934 - "entityType": "columns",
935 - "schema": "public",
936 - "table": "relay_managed_endpoint_allocations"
937 - },
938 - {
939 - "type": "integer",
940 - "typeSchema": null,
941 - "notNull": true,
942 - "dimensions": 0,
943 - "default": "0",
944 - "generated": null,
945 - "identity": null,
946 - "name": "generation",
947 - "entityType": "columns",
948 - "schema": "public",
949 - "table": "relay_managed_endpoint_allocations"
950 - },
951 - {
952 - "type": "varchar(64)",
953 - "typeSchema": null,
954 - "notNull": true,
955 - "dimensions": 0,
956 - "default": null,
957 - "generated": null,
958 - "identity": null,
959 - "name": "created_at",
960 - "entityType": "columns",
961 - "schema": "public",
962 - "table": "relay_managed_endpoint_allocations"
963 - },
964 - {
965 - "type": "varchar(64)",
966 - "typeSchema": null,
967 - "notNull": true,
968 - "dimensions": 0,
969 - "default": null,
970 - "generated": null,
971 - "identity": null,
972 - "name": "updated_at",
973 - "entityType": "columns",
974 - "schema": "public",
975 - "table": "relay_managed_endpoint_allocations"
976 - },
977 - {
978 - "type": "varchar(191)",
979 - "typeSchema": null,
980 - "notNull": true,
981 - "dimensions": 0,
982 - "default": null,
983 - "generated": null,
984 - "identity": null,
985 - "name": "user_id",
986 - "entityType": "columns",
987 - "schema": "public",
988 - "table": "relay_managed_tunnel_limits"
989 - },
990 - {
991 - "type": "integer",
992 - "typeSchema": null,
993 - "notNull": true,
994 - "dimensions": 0,
995 - "default": null,
996 - "generated": null,
997 - "identity": null,
998 - "name": "max_tunnels",
999 - "entityType": "columns",
1000 - "schema": "public",
1001 - "table": "relay_managed_tunnel_limits"
1002 - },
1003 - {
1004 - "type": "varchar(64)",
1005 - "typeSchema": null,
1006 - "notNull": true,
1007 - "dimensions": 0,
1008 - "default": null,
1009 - "generated": null,
1010 - "identity": null,
1011 - "name": "created_at",
1012 - "entityType": "columns",
1013 - "schema": "public",
1014 - "table": "relay_managed_tunnel_limits"
1015 - },
1016 - {
1017 - "type": "varchar(64)",
1018 - "typeSchema": null,
1019 - "notNull": true,
1020 - "dimensions": 0,
1021 - "default": null,
1022 - "generated": null,
1023 - "identity": null,
1024 - "name": "updated_at",
1025 - "entityType": "columns",
1026 - "schema": "public",
1027 - "table": "relay_managed_tunnel_limits"
1028 - },
1029 - {
1030 - "type": "varchar(255)",
1031 - "typeSchema": null,
1032 - "notNull": true,
1033 - "dimensions": 0,
1034 - "default": null,
1035 - "generated": null,
1036 - "identity": null,
1037 - "name": "user_id",
1038 - "entityType": "columns",
1039 - "schema": "public",
1040 - "table": "relay_mobile_devices"
1041 - },
1042 - {
1043 - "type": "varchar(255)",
1044 - "typeSchema": null,
1045 - "notNull": true,
1046 - "dimensions": 0,
1047 - "default": null,
1048 - "generated": null,
1049 - "identity": null,
1050 - "name": "device_id",
1051 - "entityType": "columns",
1052 - "schema": "public",
1053 - "table": "relay_mobile_devices"
1054 - },
1055 - {
1056 - "type": "text",
1057 - "typeSchema": null,
1058 - "notNull": true,
1059 - "dimensions": 0,
1060 - "default": "'iOS device'",
1061 - "generated": null,
1062 - "identity": null,
1063 - "name": "label",
1064 - "entityType": "columns",
1065 - "schema": "public",
1066 - "table": "relay_mobile_devices"
1067 - },
1068 - {
1069 - "type": "varchar(16)",
1070 - "typeSchema": null,
1071 - "notNull": true,
1072 - "dimensions": 0,
1073 - "default": null,
1074 - "generated": null,
1075 - "identity": null,
1076 - "name": "platform",
1077 - "entityType": "columns",
1078 - "schema": "public",
1079 - "table": "relay_mobile_devices"
1080 - },
1081 - {
1082 - "type": "integer",
1083 - "typeSchema": null,
1084 - "notNull": false,
1085 - "dimensions": 0,
1086 - "default": null,
1087 - "generated": null,
1088 - "identity": null,
1089 - "name": "ios_major_version",
1090 - "entityType": "columns",
1091 - "schema": "public",
1092 - "table": "relay_mobile_devices"
1093 - },
1094 - {
1095 - "type": "integer",
1096 - "typeSchema": null,
1097 - "notNull": false,
1098 - "dimensions": 0,
1099 - "default": null,
1100 - "generated": null,
1101 - "identity": null,
1102 - "name": "android_api_level",
1103 - "entityType": "columns",
1104 - "schema": "public",
1105 - "table": "relay_mobile_devices"
1106 - },
1107 - {
1108 - "type": "varchar(64)",
1109 - "typeSchema": null,
1110 - "notNull": false,
1111 - "dimensions": 0,
1112 - "default": null,
1113 - "generated": null,
1114 - "identity": null,
1115 - "name": "app_version",
1116 - "entityType": "columns",
1117 - "schema": "public",
1118 - "table": "relay_mobile_devices"
1119 - },
1120 - {
1121 - "type": "varchar(255)",
1122 - "typeSchema": null,
1123 - "notNull": false,
1124 - "dimensions": 0,
1125 - "default": null,
1126 - "generated": null,
1127 - "identity": null,
1128 - "name": "bundle_id",
1129 - "entityType": "columns",
1130 - "schema": "public",
1131 - "table": "relay_mobile_devices"
1132 - },
1133 - {
1134 - "type": "varchar(16)",
1135 - "typeSchema": null,
1136 - "notNull": false,
1137 - "dimensions": 0,
1138 - "default": null,
1139 - "generated": null,
1140 - "identity": null,
1141 - "name": "aps_environment",
1142 - "entityType": "columns",
1143 - "schema": "public",
1144 - "table": "relay_mobile_devices"
1145 - },
1146 - {
1147 - "type": "text",
1148 - "typeSchema": null,
1149 - "notNull": false,
1150 - "dimensions": 0,
1151 - "default": null,
1152 - "generated": null,
1153 - "identity": null,
1154 - "name": "push_token",
1155 - "entityType": "columns",
1156 - "schema": "public",
1157 - "table": "relay_mobile_devices"
1158 - },
1159 - {
1160 - "type": "text",
1161 - "typeSchema": null,
1162 - "notNull": false,
1163 - "dimensions": 0,
1164 - "default": null,
1165 - "generated": null,
1166 - "identity": null,
1167 - "name": "push_to_start_token",
1168 - "entityType": "columns",
1169 - "schema": "public",
1170 - "table": "relay_mobile_devices"
1171 - },
1172 - {
1173 - "type": "jsonb",
1174 - "typeSchema": null,
1175 - "notNull": true,
1176 - "dimensions": 0,
1177 - "default": null,
1178 - "generated": null,
1179 - "identity": null,
1180 - "name": "preferences_json",
1181 - "entityType": "columns",
1182 - "schema": "public",
1183 - "table": "relay_mobile_devices"
1184 - },
1185 - {
1186 - "type": "varchar(64)",
1187 - "typeSchema": null,
1188 - "notNull": true,
1189 - "dimensions": 0,
1190 - "default": null,
1191 - "generated": null,
1192 - "identity": null,
1193 - "name": "created_at",
1194 - "entityType": "columns",
1195 - "schema": "public",
1196 - "table": "relay_mobile_devices"
1197 - },
1198 - {
1199 - "type": "varchar(64)",
1200 - "typeSchema": null,
1201 - "notNull": true,
1202 - "dimensions": 0,
1203 - "default": null,
1204 - "generated": null,
1205 - "identity": null,
1206 - "name": "updated_at",
1207 - "entityType": "columns",
1208 - "schema": "public",
1209 - "table": "relay_mobile_devices"
1210 - },
1211 - {
1212 - "type": "varchar(64)",
1213 - "typeSchema": null,
1214 - "notNull": true,
1215 - "dimensions": 0,
1216 - "default": null,
1217 - "generated": null,
1218 - "identity": null,
1219 - "name": "api",
1220 - "entityType": "columns",
1221 - "schema": "public",
1222 - "table": "relay_upstream_api_pauses"
1223 - },
1224 - {
1225 - "type": "bigint",
1226 - "typeSchema": null,
1227 - "notNull": true,
1228 - "dimensions": 0,
1229 - "default": null,
1230 - "generated": null,
1231 - "identity": null,
1232 - "name": "paused_until_ms",
1233 - "entityType": "columns",
1234 - "schema": "public",
1235 - "table": "relay_upstream_api_pauses"
1236 - },
1237 - {
1238 - "nameExplicit": true,
1239 - "columns": [
1240 - {
1241 - "value": "created_at",
1242 - "isExpression": false,
1243 - "asc": true,
1244 - "nullsFirst": false,
1245 - "opclass": null
1246 - }
1247 - ],
1248 - "isUnique": false,
1249 - "where": null,
1250 - "with": "",
1251 - "method": "btree",
1252 - "concurrently": false,
1253 - "name": "idx_relay_delivery_attempts_created",
1254 - "entityType": "indexes",
1255 - "schema": "public",
1256 - "table": "relay_delivery_attempts"
1257 - },
1258 - {
1259 - "nameExplicit": true,
1260 - "columns": [
1261 - {
1262 - "value": "source_job_id",
1263 - "isExpression": false,
1264 - "asc": true,
1265 - "nullsFirst": false,
1266 - "opclass": null
1267 - }
1268 - ],
1269 - "isUnique": true,
1270 - "where": null,
1271 - "with": "",
1272 - "method": "btree",
1273 - "concurrently": false,
1274 - "name": "idx_relay_delivery_attempts_source_job",
1275 - "entityType": "indexes",
1276 - "schema": "public",
1277 - "table": "relay_delivery_attempts"
1278 - },
1279 - {
1280 - "nameExplicit": true,
1281 - "columns": [
1282 - {
1283 - "value": "expires_at",
1284 - "isExpression": false,
1285 - "asc": true,
1286 - "nullsFirst": false,
1287 - "opclass": null
1288 - }
1289 - ],
1290 - "isUnique": false,
1291 - "where": null,
1292 - "with": "",
1293 - "method": "btree",
1294 - "concurrently": false,
1295 - "name": "idx_relay_dpop_proofs_expires_at",
1296 - "entityType": "indexes",
1297 - "schema": "public",
1298 - "table": "relay_dpop_proofs"
1299 - },
1300 - {
1301 - "nameExplicit": true,
1302 - "columns": [
1303 - {
1304 - "value": "credential_hash",
1305 - "isExpression": false,
1306 - "asc": true,
1307 - "nullsFirst": false,
1308 - "opclass": null
1309 - }
1310 - ],
1311 - "isUnique": true,
1312 - "where": null,
1313 - "with": "",
1314 - "method": "btree",
1315 - "concurrently": false,
1316 - "name": "idx_relay_environment_credentials_hash",
1317 - "entityType": "indexes",
1318 - "schema": "public",
1319 - "table": "relay_environment_credentials"
1320 - },
1321 - {
1322 - "nameExplicit": true,
1323 - "columns": [
1324 - {
1325 - "value": "environment_id",
1326 - "isExpression": false,
1327 - "asc": true,
1328 - "nullsFirst": false,
1329 - "opclass": null
1330 - },
1331 - {
1332 - "value": "environment_public_key",
1333 - "isExpression": false,
1334 - "asc": true,
1335 - "nullsFirst": false,
1336 - "opclass": null
1337 - },
1338 - {
1339 - "value": "revoked_at",
1340 - "isExpression": false,
1341 - "asc": true,
1342 - "nullsFirst": false,
1343 - "opclass": null
1344 - }
1345 - ],
1346 - "isUnique": false,
1347 - "where": null,
1348 - "with": "",
1349 - "method": "btree",
1350 - "concurrently": false,
1351 - "name": "idx_relay_environment_credentials_environment_key",
1352 - "entityType": "indexes",
1353 - "schema": "public",
1354 - "table": "relay_environment_credentials"
1355 - },
1356 - {
1357 - "nameExplicit": true,
1358 - "columns": [
1359 - {
1360 - "value": "environment_id",
1361 - "isExpression": false,
1362 - "asc": true,
1363 - "nullsFirst": false,
1364 - "opclass": null
1365 - },
1366 - {
1367 - "value": "revoked_at",
1368 - "isExpression": false,
1369 - "asc": true,
1370 - "nullsFirst": false,
1371 - "opclass": null
1372 - }
1373 - ],
1374 - "isUnique": false,
1375 - "where": null,
1376 - "with": "",
1377 - "method": "btree",
1378 - "concurrently": false,
1379 - "name": "idx_relay_environment_links_environment",
1380 - "entityType": "indexes",
1381 - "schema": "public",
1382 - "table": "relay_environment_links"
1383 - },
1384 - {
1385 - "nameExplicit": true,
1386 - "columns": [
1387 - {
1388 - "value": "activity_push_token",
1389 - "isExpression": false,
1390 - "asc": true,
1391 - "nullsFirst": false,
1392 - "opclass": null
1393 - }
1394 - ],
1395 - "isUnique": true,
1396 - "where": null,
1397 - "with": "",
1398 - "method": "btree",
1399 - "concurrently": false,
1400 - "name": "idx_relay_live_activities_activity_push_token",
1401 - "entityType": "indexes",
1402 - "schema": "public",
1403 - "table": "relay_live_activities"
1404 - },
1405 - {
1406 - "nameExplicit": true,
1407 - "columns": [
1408 - {
1409 - "value": "hostname",
1410 - "isExpression": false,
1411 - "asc": true,
1412 - "nullsFirst": false,
1413 - "opclass": null
1414 - }
1415 - ],
1416 - "isUnique": true,
1417 - "where": null,
1418 - "with": "",
1419 - "method": "btree",
1420 - "concurrently": false,
1421 - "name": "idx_relay_managed_endpoint_allocations_hostname",
1422 - "entityType": "indexes",
1423 - "schema": "public",
1424 - "table": "relay_managed_endpoint_allocations"
1425 - },
1426 - {
1427 - "nameExplicit": true,
1428 - "columns": [
1429 - {
1430 - "value": "tunnel_name",
1431 - "isExpression": false,
1432 - "asc": true,
1433 - "nullsFirst": false,
1434 - "opclass": null
1435 - }
1436 - ],
1437 - "isUnique": true,
1438 - "where": null,
1439 - "with": "",
1440 - "method": "btree",
1441 - "concurrently": false,
1442 - "name": "idx_relay_managed_endpoint_allocations_tunnel_name",
1443 - "entityType": "indexes",
1444 - "schema": "public",
1445 - "table": "relay_managed_endpoint_allocations"
1446 - },
1447 - {
1448 - "nameExplicit": true,
1449 - "columns": [
1450 - {
1451 - "value": "push_token",
1452 - "isExpression": false,
1453 - "asc": true,
1454 - "nullsFirst": false,
1455 - "opclass": null
1456 - }
1457 - ],
1458 - "isUnique": true,
1459 - "where": null,
1460 - "with": "",
1461 - "method": "btree",
1462 - "concurrently": false,
1463 - "name": "idx_relay_mobile_devices_push_token",
1464 - "entityType": "indexes",
1465 - "schema": "public",
1466 - "table": "relay_mobile_devices"
1467 - },
1468 - {
1469 - "nameExplicit": true,
1470 - "columns": [
1471 - {
1472 - "value": "push_to_start_token",
1473 - "isExpression": false,
1474 - "asc": true,
1475 - "nullsFirst": false,
1476 - "opclass": null
1477 - }
1478 - ],
1479 - "isUnique": true,
1480 - "where": null,
1481 - "with": "",
1482 - "method": "btree",
1483 - "concurrently": false,
1484 - "name": "idx_relay_mobile_devices_push_to_start_token",
1485 - "entityType": "indexes",
1486 - "schema": "public",
1487 - "table": "relay_mobile_devices"
1488 - },
1489 - {
1490 - "columns": ["environment_id", "environment_public_key", "thread_id"],
1491 - "nameExplicit": false,
1492 - "name": "relay_agent_activity_rows_pkey",
1493 - "entityType": "pks",
1494 - "schema": "public",
1495 - "table": "relay_agent_activity_rows"
1496 - },
1497 - {
1498 - "columns": ["thumbprint", "jti"],
1499 - "nameExplicit": false,
1500 - "name": "relay_dpop_proofs_pkey",
1501 - "entityType": "pks",
1502 - "schema": "public",
1503 - "table": "relay_dpop_proofs"
1504 - },
1505 - {
1506 - "columns": ["user_id", "environment_id"],
1507 - "nameExplicit": false,
1508 - "name": "relay_environment_links_pkey",
1509 - "entityType": "pks",
1510 - "schema": "public",
1511 - "table": "relay_environment_links"
1512 - },
1513 - {
1514 - "columns": ["user_id", "device_id"],
1515 - "nameExplicit": false,
1516 - "name": "relay_live_activities_pkey",
1517 - "entityType": "pks",
1518 - "schema": "public",
1519 - "table": "relay_live_activities"
1520 - },
1521 - {
1522 - "columns": ["user_id", "environment_id"],
1523 - "nameExplicit": false,
1524 - "name": "relay_managed_endpoint_allocations_pkey",
1525 - "entityType": "pks",
1526 - "schema": "public",
1527 - "table": "relay_managed_endpoint_allocations"
1528 - },
1529 - {
1530 - "columns": ["user_id", "device_id"],
1531 - "nameExplicit": false,
1532 - "name": "relay_mobile_devices_pkey",
1533 - "entityType": "pks",
1534 - "schema": "public",
1535 - "table": "relay_mobile_devices"
1536 - },
1537 - {
1538 - "columns": ["id"],
1539 - "nameExplicit": false,
1540 - "name": "relay_delivery_attempts_pkey",
1541 - "schema": "public",
1542 - "table": "relay_delivery_attempts",
1543 - "entityType": "pks"
1544 - },
1545 - {
1546 - "columns": ["credential_id"],
1547 - "nameExplicit": false,
1548 - "name": "relay_environment_credentials_pkey",
1549 - "schema": "public",
1550 - "table": "relay_environment_credentials",
1551 - "entityType": "pks"
1552 - },
1553 - {
1554 - "columns": ["user_id"],
1555 - "nameExplicit": false,
1556 - "name": "relay_managed_tunnel_limits_pkey",
1557 - "schema": "public",
1558 - "table": "relay_managed_tunnel_limits",
1559 - "entityType": "pks"
1560 - },
1561 - {
1562 - "columns": ["api"],
1563 - "nameExplicit": false,
1564 - "name": "relay_upstream_api_pauses_pkey",
1565 - "schema": "public",
1566 - "table": "relay_upstream_api_pauses",
1567 - "entityType": "pks"
1568 - }
1569 - ],
1570 - "renames": []
7 + "footprints": [],
8 + "deltas": []
9 }
infra/relay/package.json
+2 -2
@@ -26,7 +26,7 @@
26 "@t3tools/contracts": "workspace:*",
27 "@t3tools/shared": "workspace:*",
28 "alchemy": "catalog:",
29 - "drizzle-orm": "1.0.0-rc.5-ab785fc",
29 + "drizzle-orm": "1.0.0-rc.5",
30 "effect": "catalog:"
31 },
32 "devDependencies": {
@@ -36,7 +36,7 @@
36 "@effect/vitest": "catalog:",
37 "@electric-sql/pglite": "0.3.15",
38 "@types/node": "catalog:",
39 - "drizzle-kit": "1.0.0-rc.5-ab785fc",
39 + "drizzle-kit": "1.0.0-rc.5",
40 "typescript": "catalog:",
41 "vite": "catalog:",
42 "vite-plus": "catalog:"
patches/@alchemy.run__drizzle@2.0.0-beta.85.patch deleted
-23
@@ -1,23 +0,0 @@
1 -diff --git a/lib/Schema.js b/lib/Schema.js
2 -index c24265b3c23237d846c7b8ff249cb6c23452ec31..744c7bce4de464d472b183b3c9c25987b67b3a5e 100644
3 ---- a/lib/Schema.js
4 -+++ b/lib/Schema.js
5 -@@ -7,6 +7,7 @@ var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExte
6 - return path;
7 - };
8 - import * as crypto from "node:crypto";
9 -+import * as NodePath from "node:path";
10 - import * as Artifacts from "alchemy/Artifacts";
11 - import { isResolved } from "alchemy/Diff";
12 - import { Interaction } from "alchemy/Interaction";
13 -@@ -150,7 +151,9 @@ Effect.tryPromise({
14 - // A `drizzle-kit/cli` command as an Effect, failing on a thrown or reported error.
15 - const command = (name) => Effect.fn(`drizzleKit.${name}`)(function* (options) {
16 - const cli = yield* importModule("drizzle-kit/cli");
17 -- const result = yield* callDrizzleKit(name, () => cli[name](options));
18 -+ // drizzle-kit reads snapshots as `./${path}`, which breaks an absolute `out`.
19 -+ const kitOptions = { ...options, out: NodePath.relative(process.cwd(), options.out) || "." };
20 -+ const result = yield* callDrizzleKit(name, () => cli[name](kitOptions));
21 - if (result.status === "error") {
22 - return yield* new DrizzleKitFailed({ command: name, cause: result.error });
23 - }
pnpm-lock.yaml
+45 -359
@@ -307,16 +307,10 @@ overrides:
307 '@anthropic-ai/claude-agent-sdk>@anthropic-ai/claude-agent-sdk-linux-x64-musl': '-'
308 '@anthropic-ai/claude-agent-sdk>@anthropic-ai/claude-agent-sdk-win32-arm64': '-'
309 '@anthropic-ai/claude-agent-sdk>@anthropic-ai/claude-agent-sdk-win32-x64': '-'
310 - '@alchemy.run/sigil>react': '-'
311 - '@alchemy.run/sigil>react-reconciler': '-'
312 - '@alchemy.run/sigil>scheduler': '-'
310 '@clerk/backend': 3.25.0
311 '@clerk/clerk-js': 6.40.0
312 '@clerk/clerk-js>@base-org/account': '-'
313 '@clerk/clerk-js>@coinbase/wallet-sdk': '-'
317 - '@clerk/clerk-js>@solana/wallet-adapter-base': '-'
318 - '@clerk/clerk-js>@solana/wallet-adapter-react': '-'
319 - '@clerk/clerk-js>@solana/wallet-standard': '-'
314 '@clerk/clerk-js>@wallet-standard/core': '-'
315 '@clerk/electron': 0.1.3
316 '@clerk/electron-passkeys': 0.0.3
@@ -333,10 +327,9 @@ overrides:
327 '@expo/dom-webview': 58.0.2
328 '@expo/metro-config': 58.0.14
329 expo-constants: 58.0.12
336 - expo-router: 58.0.20
330 expo-sharing>@expo/config-plugins: 58.0.9
331 expo-sharing>@expo/config-types: 58.0.3
339 - '@pierre/diffs>@shikijs/transformers': ^4.2.0
332 + '@pierre/trees>@pierre/theming': 1.0.2
333 remark-math>micromark-extension-math: npm:micromark-extension-llm-math@3.1.0
334 micromark-extension-gfm-table: 2.1.1
335 '@tailwindcss/node': 4.3.3
@@ -347,6 +340,7 @@ overrides:
340 '@opencode/protocol>effect': 4.1.2
341 '@opencode/schema>effect': 4.1.2
342 node-abi: 4.33.0
343 + '@react-native/metro-config': 0.88.0
344 electron-webauthn>@electron-webauthn/macos: 1.3.1
345 '@electron-webauthn/macos>objc-js': 1.5.0
346 lightningcss: 1.33.0
@@ -363,7 +357,6 @@ packageExtensionsChecksum: sha256-EowbsmlBFaoO0Ypufw901RnvdyjKG5dcdk2FRbc7Dr0=
357 pnpmfileChecksum: sha256-STsbxG7+RxOFI611PrDEj1TonJgqKKllY9hYCFMLYiU=
358
359 patchedDependencies:
366 - '@alchemy.run/drizzle@2.0.0-beta.85': 2cee685395dc78be51c09096e212b72c67110b487b988b8cf862761055266f47
360 '@alchemy.run/test@2.0.0-beta.85': 29c0539ea71d9cc372f0b16558640599beb9bc609605feb2a493da268d72713e
361 '@clerk/expo-native-components@0.4.0': 7a808b92da8460750b85818552e13be3fb73d111691c7db76965970351e124e4
362 '@effect/vitest@4.1.2': 299510b71c36537a832a67e9d160a5f112a5f326a29e95c41cb45fc8234e47c7
@@ -1371,7 +1364,7 @@ importers:
1364 version: 2.0.0-beta.85(dd7c32aca3799e8e8ce256cb7e3dc7c9)
1365 '@alchemy.run/drizzle':
1366 specifier: 'catalog:'
1374 - version: 2.0.0-beta.85(patch_hash=2cee685395dc78be51c09096e212b72c67110b487b988b8cf862761055266f47)(c1f3d09c6baaf4c1733ba821d1f217d2)
1367 + version: 2.0.0-beta.85(63673b07147c5dca6e2221b35ba436c0)
1368 '@alchemy.run/planetscale':
1369 specifier: 'catalog:'
1370 version: 2.0.0-beta.85(@effect/sql-pg@4.1.2(effect@4.1.2))(alchemy@2.0.0-beta.85(patch_hash=07cc8c7e14b3b9af143ddd40a059f117c27e55139fbf20bd5dde2eb30509cedd)(@effect/platform-bun@4.1.2(bufferutil@4.1.0)(effect@4.1.2)(utf-8-validate@6.0.6))(@effect/platform-node@4.1.2(bufferutil@4.1.0)(effect@4.1.2)(redis@6.2.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(@voidzero-dev/vite-plus-core@1.4.0(@tsc-rs/typescript@0.8.0)(@types/node@24.12.4)(@volar/typescript@2.4.28(@tsc-rs/typescript@0.8.0))(esbuild@0.28.2)(jiti@2.7.0)(terser@5.48.0)(unrun@0.2.39)(yaml@2.9.0))(effect@4.1.2)(react-devtools-core@6.1.5(bufferutil@4.1.0)(utf-8-validate@6.0.6))(ws@8.22.0(bufferutil@4.1.0)(utf-8-validate@6.0.6)))(effect@4.1.2)(pg@8.23.0)
@@ -1406,8 +1399,8 @@ importers:
1399 specifier: 2.0.0-beta.85
1400 version: 2.0.0-beta.85(patch_hash=07cc8c7e14b3b9af143ddd40a059f117c27e55139fbf20bd5dde2eb30509cedd)(@effect/platform-bun@4.1.2(bufferutil@4.1.0)(effect@4.1.2)(utf-8-validate@6.0.6))(@effect/platform-node@4.1.2(bufferutil@4.1.0)(effect@4.1.2)(redis@6.2.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(@voidzero-dev/vite-plus-core@1.4.0(@tsc-rs/typescript@0.8.0)(@types/node@24.12.4)(@volar/typescript@2.4.28(@tsc-rs/typescript@0.8.0))(esbuild@0.28.2)(jiti@2.7.0)(terser@5.48.0)(unrun@0.2.39)(yaml@2.9.0))(effect@4.1.2)(react-devtools-core@6.1.5(bufferutil@4.1.0)(utf-8-validate@6.0.6))(ws@8.22.0(bufferutil@4.1.0)(utf-8-validate@6.0.6))
1401 drizzle-orm:
1409 - specifier: 1.0.0-rc.5-ab785fc
1410 - version: 1.0.0-rc.5-ab785fc(@cloudflare/workers-types@4.20260604.1)(@effect/sql-d1@4.1.1(effect@4.1.2))(@effect/sql-pg@4.1.2(effect@4.1.2))(@effect/sql-sqlite-do@4.1.2(effect@4.1.2))(@electric-sql/pglite@0.3.15)(@libsql/client@0.17.3(bufferutil@4.1.0)(utf-8-validate@6.0.6))(@types/sql.js@1.4.11)(bun-types@1.3.14)(effect@4.1.2)(expo-sqlite@58.0.13(expo@58.0.14)(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0))(pg@8.23.0)(sql.js@1.15.0)(zod@4.6.5)
1402 + specifier: 1.0.0-rc.5
1403 + version: 1.0.0-rc.5(@cloudflare/workers-types@4.20260604.1)(@effect/sql-d1@4.1.1(effect@4.1.2))(@effect/sql-pg@4.1.2(effect@4.1.2))(@effect/sql-sqlite-do@4.1.2(effect@4.1.2))(@electric-sql/pglite@0.3.15)(@libsql/client@0.17.3(bufferutil@4.1.0)(utf-8-validate@6.0.6))(@types/sql.js@1.4.11)(bun-types@1.3.14)(effect@4.1.2)(expo-sqlite@58.0.13(expo@58.0.14)(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0))(pg@8.23.0)(sql.js@1.15.0)(zod@4.6.5)
1404 effect:
1405 specifier: 4.1.2
1406 version: 4.1.2
@@ -1431,8 +1424,8 @@ importers:
1424 specifier: 24.12.4
1425 version: 24.12.4
1426 drizzle-kit:
1434 - specifier: 1.0.0-rc.5-ab785fc
1435 - version: 1.0.0-rc.5-ab785fc
1427 + specifier: 1.0.0-rc.5
1428 + version: 1.0.0-rc.5(drizzle-orm@1.0.0-rc.5(@cloudflare/workers-types@4.20260604.1)(@effect/sql-d1@4.1.1(effect@4.1.2))(@effect/sql-pg@4.1.2(effect@4.1.2))(@effect/sql-sqlite-do@4.1.2(effect@4.1.2))(@electric-sql/pglite@0.3.15)(@libsql/client@0.17.3(bufferutil@4.1.0)(utf-8-validate@6.0.6))(@types/sql.js@1.4.11)(bun-types@1.3.14)(effect@4.1.2)(expo-sqlite@58.0.13(expo@58.0.14)(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0))(pg@8.23.0)(sql.js@1.15.0)(zod@4.6.5))
1429 typescript:
1430 specifier: 'catalog:'
1431 version: '@tsc-rs/typescript@0.8.0'
@@ -3703,9 +3696,6 @@ packages:
3696 peerDependencies:
3697 react: '>=16.8.0'
3698
3706 - '@drizzle-team/brocli@0.12.0':
3707 - resolution: {integrity: sha512-mlUE+rZ8CatQekLhnaiN91Iemdd+e2gFKooGlnRB3oPTL3VghLfX24dx7HrzMNeC1JrIB/0kpsfyty3f5HNfxQ==}
3708 -
3699 '@effect/atom-react@4.1.2':
3700 resolution: {integrity: sha512-XRAm4lks2kzNFQIz9QTGKR02CaDTR9VJNRXDjDAR8OzM15ybrK4YkB7OlFZ9U+hxXe3DXJZx7RU1/xI2Em2PGQ==}
3701 peerDependencies:
@@ -3888,312 +3878,156 @@ packages:
3878 '@epic-web/invariant@1.0.0':
3879 resolution: {integrity: sha512-lrTPqgvfFQtR/eY/qkIzp98OGdNJu0m5ji3q/nJI8v3SXkRKEnWiOxMmbvcSoAIzv/cGiuvRy57k4suKQSAdwA==}
3880
3891 - '@esbuild/aix-ppc64@0.25.12':
3892 - resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==}
3893 - engines: {node: '>=18'}
3894 - cpu: [ppc64]
3895 - os: [aix]
3896 -
3881 '@esbuild/aix-ppc64@0.28.2':
3882 resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==}
3883 engines: {node: '>=18'}
3884 cpu: [ppc64]
3885 os: [aix]
3886
3903 - '@esbuild/android-arm64@0.25.12':
3904 - resolution: {integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==}
3905 - engines: {node: '>=18'}
3906 - cpu: [arm64]
3907 - os: [android]
3908 -
3887 '@esbuild/android-arm64@0.28.2':
3888 resolution: {integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==}
3889 engines: {node: '>=18'}
3890 cpu: [arm64]
3891 os: [android]
3892
3915 - '@esbuild/android-arm@0.25.12':
3916 - resolution: {integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==}
3917 - engines: {node: '>=18'}
3918 - cpu: [arm]
3919 - os: [android]
3920 -
3893 '@esbuild/android-arm@0.28.2':
3894 resolution: {integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==}
3895 engines: {node: '>=18'}
3896 cpu: [arm]
3897 os: [android]
3898
3927 - '@esbuild/android-x64@0.25.12':
3928 - resolution: {integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==}
3929 - engines: {node: '>=18'}
3930 - cpu: [x64]
3931 - os: [android]
3932 -
3899 '@esbuild/android-x64@0.28.2':
3900 resolution: {integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==}
3901 engines: {node: '>=18'}
3902 cpu: [x64]
3903 os: [android]
3904
3939 - '@esbuild/darwin-arm64@0.25.12':
3940 - resolution: {integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==}
3941 - engines: {node: '>=18'}
3942 - cpu: [arm64]
3943 - os: [darwin]
3944 -
3905 '@esbuild/darwin-arm64@0.28.2':
3906 resolution: {integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==}
3907 engines: {node: '>=18'}
3908 cpu: [arm64]
3909 os: [darwin]
3910
3951 - '@esbuild/darwin-x64@0.25.12':
3952 - resolution: {integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==}
3953 - engines: {node: '>=18'}
3954 - cpu: [x64]
3955 - os: [darwin]
3956 -
3911 '@esbuild/darwin-x64@0.28.2':
3912 resolution: {integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==}
3913 engines: {node: '>=18'}
3914 cpu: [x64]
3915 os: [darwin]
3916
3963 - '@esbuild/freebsd-arm64@0.25.12':
3964 - resolution: {integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==}
3965 - engines: {node: '>=18'}
3966 - cpu: [arm64]
3967 - os: [freebsd]
3968 -
3917 '@esbuild/freebsd-arm64@0.28.2':
3918 resolution: {integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==}
3919 engines: {node: '>=18'}
3920 cpu: [arm64]
3921 os: [freebsd]
3922
3975 - '@esbuild/freebsd-x64@0.25.12':
3976 - resolution: {integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==}
3977 - engines: {node: '>=18'}
3978 - cpu: [x64]
3979 - os: [freebsd]
3980 -
3923 '@esbuild/freebsd-x64@0.28.2':
3924 resolution: {integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==}
3925 engines: {node: '>=18'}
3926 cpu: [x64]
3927 os: [freebsd]
3928
3987 - '@esbuild/linux-arm64@0.25.12':
3988 - resolution: {integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==}
3989 - engines: {node: '>=18'}
3990 - cpu: [arm64]
3991 - os: [linux]
3992 -
3929 '@esbuild/linux-arm64@0.28.2':
3930 resolution: {integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==}
3931 engines: {node: '>=18'}
3932 cpu: [arm64]
3933 os: [linux]
3934
3999 - '@esbuild/linux-arm@0.25.12':
4000 - resolution: {integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==}
4001 - engines: {node: '>=18'}
4002 - cpu: [arm]
4003 - os: [linux]
4004 -
3935 '@esbuild/linux-arm@0.28.2':
3936 resolution: {integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==}
3937 engines: {node: '>=18'}
3938 cpu: [arm]
3939 os: [linux]
3940
4011 - '@esbuild/linux-ia32@0.25.12':
4012 - resolution: {integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==}
4013 - engines: {node: '>=18'}
4014 - cpu: [ia32]
4015 - os: [linux]
4016 -
3941 '@esbuild/linux-ia32@0.28.2':
3942 resolution: {integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==}
3943 engines: {node: '>=18'}
3944 cpu: [ia32]
3945 os: [linux]
3946
4023 - '@esbuild/linux-loong64@0.25.12':
4024 - resolution: {integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==}
4025 - engines: {node: '>=18'}
4026 - cpu: [loong64]
4027 - os: [linux]
4028 -
3947 '@esbuild/linux-loong64@0.28.2':
3948 resolution: {integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==}
3949 engines: {node: '>=18'}
3950 cpu: [loong64]
3951 os: [linux]
3952
4035 - '@esbuild/linux-mips64el@0.25.12':
4036 - resolution: {integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==}
4037 - engines: {node: '>=18'}
4038 - cpu: [mips64el]
4039 - os: [linux]
4040 -
3953 '@esbuild/linux-mips64el@0.28.2':
3954 resolution: {integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==}
3955 engines: {node: '>=18'}
3956 cpu: [mips64el]
3957 os: [linux]
3958
4047 - '@esbuild/linux-ppc64@0.25.12':
4048 - resolution: {integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==}
4049 - engines: {node: '>=18'}
4050 - cpu: [ppc64]
4051 - os: [linux]
4052 -
3959 '@esbuild/linux-ppc64@0.28.2':
3960 resolution: {integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==}
3961 engines: {node: '>=18'}
3962 cpu: [ppc64]
3963 os: [linux]
3964
4059 - '@esbuild/linux-riscv64@0.25.12':
4060 - resolution: {integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==}
4061 - engines: {node: '>=18'}
4062 - cpu: [riscv64]
4063 - os: [linux]
4064 -
3965 '@esbuild/linux-riscv64@0.28.2':
3966 resolution: {integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==}
3967 engines: {node: '>=18'}
3968 cpu: [riscv64]
3969 os: [linux]
3970
4071 - '@esbuild/linux-s390x@0.25.12':
4072 - resolution: {integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==}
4073 - engines: {node: '>=18'}
4074 - cpu: [s390x]
4075 - os: [linux]
4076 -
3971 '@esbuild/linux-s390x@0.28.2':
3972 resolution: {integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==}
3973 engines: {node: '>=18'}
3974 cpu: [s390x]
3975 os: [linux]
3976
4083 - '@esbuild/linux-x64@0.25.12':
4084 - resolution: {integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==}
4085 - engines: {node: '>=18'}
4086 - cpu: [x64]
4087 - os: [linux]
4088 -
3977 '@esbuild/linux-x64@0.28.2':
3978 resolution: {integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==}
3979 engines: {node: '>=18'}
3980 cpu: [x64]
3981 os: [linux]
3982
4095 - '@esbuild/netbsd-arm64@0.25.12':
4096 - resolution: {integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==}
4097 - engines: {node: '>=18'}
4098 - cpu: [arm64]
4099 - os: [netbsd]
4100 -
3983 '@esbuild/netbsd-arm64@0.28.2':
3984 resolution: {integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==}
3985 engines: {node: '>=18'}
3986 cpu: [arm64]
3987 os: [netbsd]
3988
4107 - '@esbuild/netbsd-x64@0.25.12':
4108 - resolution: {integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==}
4109 - engines: {node: '>=18'}
4110 - cpu: [x64]
4111 - os: [netbsd]
4112 -
3989 '@esbuild/netbsd-x64@0.28.2':
3990 resolution: {integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==}
3991 engines: {node: '>=18'}
3992 cpu: [x64]
3993 os: [netbsd]
3994
4119 - '@esbuild/openbsd-arm64@0.25.12':
4120 - resolution: {integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==}
4121 - engines: {node: '>=18'}
4122 - cpu: [arm64]
4123 - os: [openbsd]
4124 -
3995 '@esbuild/openbsd-arm64@0.28.2':
3996 resolution: {integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==}
3997 engines: {node: '>=18'}
3998 cpu: [arm64]
3999 os: [openbsd]
4000
4131 - '@esbuild/openbsd-x64@0.25.12':
4132 - resolution: {integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==}
4133 - engines: {node: '>=18'}
4134 - cpu: [x64]
4135 - os: [openbsd]
4136 -
4001 '@esbuild/openbsd-x64@0.28.2':
4002 resolution: {integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==}
4003 engines: {node: '>=18'}
4004 cpu: [x64]
4005 os: [openbsd]
4006
4143 - '@esbuild/openharmony-arm64@0.25.12':
4144 - resolution: {integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==}
4145 - engines: {node: '>=18'}
4146 - cpu: [arm64]
4147 - os: [openharmony]
4148 -
4007 '@esbuild/openharmony-arm64@0.28.2':
4008 resolution: {integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==}
4009 engines: {node: '>=18'}
4010 cpu: [arm64]
4011 os: [openharmony]
4012
4155 - '@esbuild/sunos-x64@0.25.12':
4156 - resolution: {integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==}
4157 - engines: {node: '>=18'}
4158 - cpu: [x64]
4159 - os: [sunos]
4160 -
4013 '@esbuild/sunos-x64@0.28.2':
4014 resolution: {integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==}
4015 engines: {node: '>=18'}
4016 cpu: [x64]
4017 os: [sunos]
4018
4167 - '@esbuild/win32-arm64@0.25.12':
4168 - resolution: {integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==}
4169 - engines: {node: '>=18'}
4170 - cpu: [arm64]
4171 - os: [win32]
4172 -
4019 '@esbuild/win32-arm64@0.28.2':
4020 resolution: {integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==}
4021 engines: {node: '>=18'}
4022 cpu: [arm64]
4023 os: [win32]
4024
4179 - '@esbuild/win32-ia32@0.25.12':
4180 - resolution: {integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==}
4181 - engines: {node: '>=18'}
4182 - cpu: [ia32]
4183 - os: [win32]
4184 -
4025 '@esbuild/win32-ia32@0.28.2':
4026 resolution: {integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==}
4027 engines: {node: '>=18'}
4028 cpu: [ia32]
4029 os: [win32]
4030
4191 - '@esbuild/win32-x64@0.25.12':
4192 - resolution: {integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==}
4193 - engines: {node: '>=18'}
4194 - cpu: [x64]
4195 - os: [win32]
4196 -
4031 '@esbuild/win32-x64@0.28.2':
4032 resolution: {integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==}
4033 engines: {node: '>=18'}
@@ -4227,7 +4061,7 @@ packages:
4061 hasBin: true
4062 peerDependencies:
4063 expo: '*'
4230 - expo-router: 58.0.20
4064 + expo-router: '*'
4065 react-native: '*'
4066 peerDependenciesMeta:
4067 expo-router:
@@ -4384,7 +4218,7 @@ packages:
4218 expo: '*'
4219 expo-constants: 58.0.12
4220 expo-font: ^58.0.8
4387 - expo-router: 58.0.20
4221 + expo-router: '*'
4222 expo-server: ^58.0.5
4223 react: '*'
4224 react-dom: '*'
@@ -4887,10 +4721,6 @@ packages:
4721 '@jridgewell/trace-mapping@0.3.31':
4722 resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
4723
4890 - '@js-temporal/polyfill@0.5.1':
4891 - resolution: {integrity: sha512-hloP58zRVCRSpgDxmqCWJNlizAlUgJFqG2ypq79DCvyv9tHjRYMDOcPFjzfl/A1/YxDvRCZz8wvZvmapQnKwFQ==}
4892 - engines: {node: '>=12'}
4893 -
4724 '@legendapp/list@3.3.5':
4725 resolution: {integrity: sha512-XTsLYtpg41SVb5uLBYA+YcDSA3w0tgoPq/W8ZggQ2tx+3lrC/rf+ehTP9KYHea9oFaZIuePAgzACs5/auVMJlQ==}
4726 peerDependencies:
@@ -6074,26 +5904,6 @@ packages:
5904 resolution: {integrity: sha512-yNDd9GYLQl1mEUJR8AneJ5e4ohLIHQd/wZLWr4fagt78vS2RwwZNW530vVgHqXFAyFVcFlRmGUD5ramXH46OXw==}
5905 engines: {vscode: ^1.0.0}
5906
6077 - '@pierre/theming@1.0.0':
6078 - resolution: {integrity: sha512-WsdrnhKfjeyXGDikZmN9pkpeZ5S/cl6EE72feiSc0tlynT1tMYqXqouhuv/foK+PY9OEnebOAVRQn3+rAstR8g==}
6079 - peerDependencies:
6080 - '@pierre/theme': ^1.1.0
6081 - '@shikijs/themes': ^3.0.0 || ^4.0.0
6082 - react: ^18.3.1 || ^19.0.0
6083 - react-dom: ^18.3.1 || ^19.0.0
6084 - shiki: ^3.0.0 || ^4.0.0
6085 - peerDependenciesMeta:
6086 - '@pierre/theme':
6087 - optional: true
6088 - '@shikijs/themes':
6089 - optional: true
6090 - react:
6091 - optional: true
6092 - react-dom:
6093 - optional: true
6094 - shiki:
6095 - optional: true
6096 -
5907 '@pierre/theming@1.0.2':
5908 resolution: {integrity: sha512-RmXLLqtx31UGcR8kZyO5hGAQ1EXz6loT1Cu0BFAGsbnBboIxp2BlomkLfWyvdT4WZXnBGyu25onL1gKpFQuSUw==}
5909 peerDependencies:
@@ -8431,24 +8241,32 @@ packages:
8241 resolution: {integrity: sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==}
8242 engines: {node: '>=12'}
8243
8434 - drizzle-kit@1.0.0-rc.5-ab785fc:
8435 - resolution: {integrity: sha512-TSg7sK1finOxdo48O9mDfyMY3lhi/aHCVIil5TFhthyq/H/89H/3nwX5V9Gdp7HYMUGFHyWJD5iowSn98l0elw==}
8244 + drizzle-kit@1.0.0-rc.5:
8245 + resolution: {integrity: sha512-8glQN7iFK3e1aOIoRit1NtslcsqE/rnlqNw/1jUC5Ph4RFVh/E5Jricxd6Nu2ugj2HlFZlZ6O4006AwqJ9e24g==}
8246 hasBin: true
8247 + peerDependencies:
8248 + drizzle-orm: '>=1.0.0-rc.5'
8249 + peerDependenciesMeta:
8250 + drizzle-orm:
8251 + optional: true
8252
8438 - drizzle-orm@1.0.0-rc.5-ab785fc:
8439 - resolution: {integrity: sha512-28PVt0PS/+4kPa8eKr4mqP8y/YcbdOgdVcGUa6LGl2Kd2bykNWuf/WUOFoSCoynagblbcRgMO1zChLvRcWD6Tg==}
8253 + drizzle-orm@1.0.0-rc.5:
8254 + resolution: {integrity: sha512-7BMYTsAZbQ9DcQCtLG4G202Hq6nc/e8o1EBKN6nBweRI8EGPFe/VdyvWQCsU9fuZSiRjNpELolUSi//JFBq+lw==}
8255 peerDependencies:
8256 '@aws-sdk/client-rds-data': '>=3'
8257 + '@aws/aurora-dsql-node-postgres-connector': '>=0.1.9'
8258 + '@aws/aurora-dsql-postgresjs-connector': '>=0.3.0'
8259 '@cloudflare/workers-types': '>=4'
8443 - '@effect/sql-d1': '>=4.0.0-beta.105 || >=4.0.0'
8444 - '@effect/sql-libsql': '>=4.0.0-beta.105 || >=4.0.0'
8445 - '@effect/sql-mysql2': '>=4.0.0-beta.105 || >=4.0.0'
8260 + '@drizzle-team/minipg': '>=0.4.2'
8261 + '@effect/sql-d1': '>=4.0.0'
8262 + '@effect/sql-libsql': '>=4.0.0'
8263 + '@effect/sql-mysql2': '>=4.0.0'
8264 '@effect/sql-pg': 4.1.2
8447 - '@effect/sql-pglite': '>=4.0.0-beta.105 || >=4.0.0'
8448 - '@effect/sql-sqlite-bun': '>=4.0.0-beta.105 || >=4.0.0'
8449 - '@effect/sql-sqlite-do': '>=4.0.0-beta.105 || >=4.0.0'
8450 - '@effect/sql-sqlite-node': '>=4.0.0-beta.105 || >=4.0.0'
8451 - '@effect/sql-sqlite-wasm': '>=4.0.0-beta.105 || >=4.0.0'
8265 + '@effect/sql-pglite': '>=4.0.0'
8266 + '@effect/sql-sqlite-bun': '>=4.0.0'
8267 + '@effect/sql-sqlite-do': '>=4.0.0'
8268 + '@effect/sql-sqlite-node': '>=4.0.0'
8269 + '@effect/sql-sqlite-wasm': '>=4.0.0'
8270 '@electric-sql/pglite': '>=0.2.0'
8271 '@libsql/client': '>=0.10.0'
8272 '@libsql/client-wasm': '>=0.10.0'
@@ -8476,7 +8294,6 @@ packages:
8294 bun-types: '*'
8295 effect: 4.1.2
8296 expo-sqlite: '>=14.0.0'
8479 - minipg: '>=0.2.0'
8297 mssql: ^11.0.1
8298 mysql2: '>=2'
8299 pg: '>=8'
@@ -8489,8 +8306,14 @@ packages:
8306 peerDependenciesMeta:
8307 '@aws-sdk/client-rds-data':
8308 optional: true
8309 + '@aws/aurora-dsql-node-postgres-connector':
8310 + optional: true
8311 + '@aws/aurora-dsql-postgresjs-connector':
8312 + optional: true
8313 '@cloudflare/workers-types':
8314 optional: true
8315 + '@drizzle-team/minipg':
8316 + optional: true
8317 '@effect/sql-d1':
8318 optional: true
8319 '@effect/sql-libsql':
@@ -8563,8 +8386,6 @@ packages:
8386 optional: true
8387 expo-sqlite:
8388 optional: true
8566 - minipg:
8567 - optional: true
8389 mssql:
8390 optional: true
8391 mysql2:
@@ -8721,11 +8542,6 @@ packages:
8542 es6-promise@3.3.1:
8543 resolution: {integrity: sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==}
8544
8724 - esbuild@0.25.12:
8725 - resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==}
8726 - engines: {node: '>=18'}
8727 - hasBin: true
8728 -
8545 esbuild@0.28.2:
8546 resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==}
8547 engines: {node: '>=18'}
@@ -9005,7 +8821,7 @@ packages:
8821 peerDependencies:
8822 '@react-navigation/native': ^7.0.0
8823 expo: '*'
9008 - expo-router: 58.0.20
8824 + expo-router: '*'
8825 react: '*'
8826 react-native: '*'
8827 react-native-reanimated: 4.7.1
@@ -9716,9 +9532,6 @@ packages:
9532 jsbi@2.0.5:
9533 resolution: {integrity: sha512-TzO/62Hxeb26QMb4IGlI/5X+QLr9Uqp1FPkwp2+KOICW+Q+vSuFj61c8pkT6wAns4WcK56X7CmSHhJeDGWOqxQ==}
9534
9719 - jsbi@4.3.2:
9720 - resolution: {integrity: sha512-9fqMSQbhJykSeii05nxKl4m6Eqn2P6rOlYiS+C5Dr/HPIU/7yZxu5qzbs40tgaFORiw2Amd0mirjxatXYMkIew==}
9721 -
9535 jsc-safe-url@0.2.4:
9536 resolution: {integrity: sha512-0wM3YBWtYePOjfyXQH5MWQ8H7sdk5EXSwZvmSLKk2RboVQ2Bu239jycHDz5J/8Blf3K0Qnoy2b6xD+z10MFB+Q==}
9537
@@ -11121,7 +10934,7 @@ packages:
10934 resolution: {integrity: sha512-1OrhAeAKaZF4XrBa4YbPQbKzNOpjh52HDlId8e6ete1OCHNdAlrQHzG4gznJ225EAj3dgQXHViJvK51M9B52jQ==}
10935 peerDependencies:
10936 '@babel/core': '*'
11124 - '@react-native/metro-config': '*'
10937 + '@react-native/metro-config': 0.88.0
10938 react: '*'
10939 react-native: 0.86 - 0.88
10940
@@ -12613,18 +12426,18 @@ snapshots:
12426 optionalDependencies:
12427 '@effect/platform-bun': 4.1.2(bufferutil@4.1.0)(effect@4.1.2)(utf-8-validate@6.0.6)
12428
12616 - '@alchemy.run/drizzle@2.0.0-beta.85(patch_hash=2cee685395dc78be51c09096e212b72c67110b487b988b8cf862761055266f47)(c1f3d09c6baaf4c1733ba821d1f217d2)':
12429 + '@alchemy.run/drizzle@2.0.0-beta.85(63673b07147c5dca6e2221b35ba436c0)':
12430 dependencies:
12431 '@alchemy.run/sql': 2.0.0-beta.85(@effect/sql-pg@4.1.2(effect@4.1.2))(alchemy@2.0.0-beta.85(patch_hash=07cc8c7e14b3b9af143ddd40a059f117c27e55139fbf20bd5dde2eb30509cedd)(@effect/platform-bun@4.1.2(bufferutil@4.1.0)(effect@4.1.2)(utf-8-validate@6.0.6))(@effect/platform-node@4.1.2(bufferutil@4.1.0)(effect@4.1.2)(redis@6.2.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(@voidzero-dev/vite-plus-core@1.4.0(@tsc-rs/typescript@0.8.0)(@types/node@24.12.4)(@volar/typescript@2.4.28(@tsc-rs/typescript@0.8.0))(esbuild@0.28.2)(jiti@2.7.0)(terser@5.48.0)(unrun@0.2.39)(yaml@2.9.0))(effect@4.1.2)(react-devtools-core@6.1.5(bufferutil@4.1.0)(utf-8-validate@6.0.6))(ws@8.22.0(bufferutil@4.1.0)(utf-8-validate@6.0.6)))(effect@4.1.2)(pg@8.23.0)
12432 '@effect/sql-d1': 4.1.1(effect@4.1.2)
12433 '@effect/sql-sqlite-do': 4.1.2(effect@4.1.2)
12434 alchemy: 2.0.0-beta.85(patch_hash=07cc8c7e14b3b9af143ddd40a059f117c27e55139fbf20bd5dde2eb30509cedd)(@effect/platform-bun@4.1.2(bufferutil@4.1.0)(effect@4.1.2)(utf-8-validate@6.0.6))(@effect/platform-node@4.1.2(bufferutil@4.1.0)(effect@4.1.2)(redis@6.2.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(@voidzero-dev/vite-plus-core@1.4.0(@tsc-rs/typescript@0.8.0)(@types/node@24.12.4)(@volar/typescript@2.4.28(@tsc-rs/typescript@0.8.0))(esbuild@0.28.2)(jiti@2.7.0)(terser@5.48.0)(unrun@0.2.39)(yaml@2.9.0))(effect@4.1.2)(react-devtools-core@6.1.5(bufferutil@4.1.0)(utf-8-validate@6.0.6))(ws@8.22.0(bufferutil@4.1.0)(utf-8-validate@6.0.6))
12622 - drizzle-orm: 1.0.0-rc.5-ab785fc(@cloudflare/workers-types@4.20260604.1)(@effect/sql-d1@4.1.1(effect@4.1.2))(@effect/sql-pg@4.1.2(effect@4.1.2))(@effect/sql-sqlite-do@4.1.2(effect@4.1.2))(@electric-sql/pglite@0.3.15)(@libsql/client@0.17.3(bufferutil@4.1.0)(utf-8-validate@6.0.6))(@types/sql.js@1.4.11)(bun-types@1.3.14)(effect@4.1.2)(expo-sqlite@58.0.13(expo@58.0.14)(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0))(pg@8.23.0)(sql.js@1.15.0)(zod@4.6.5)
12435 + drizzle-orm: 1.0.0-rc.5(@cloudflare/workers-types@4.20260604.1)(@effect/sql-d1@4.1.1(effect@4.1.2))(@effect/sql-pg@4.1.2(effect@4.1.2))(@effect/sql-sqlite-do@4.1.2(effect@4.1.2))(@electric-sql/pglite@0.3.15)(@libsql/client@0.17.3(bufferutil@4.1.0)(utf-8-validate@6.0.6))(@types/sql.js@1.4.11)(bun-types@1.3.14)(effect@4.1.2)(expo-sqlite@58.0.13(expo@58.0.14)(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0))(pg@8.23.0)(sql.js@1.15.0)(zod@4.6.5)
12436 effect: 4.1.2
12437 optionalDependencies:
12438 '@alchemy.run/cloudflare': 2.0.0-beta.85(dd7c32aca3799e8e8ce256cb7e3dc7c9)
12439 '@effect/sql-pg': 4.1.2(effect@4.1.2)
12627 - drizzle-kit: 1.0.0-rc.5-ab785fc
12440 + drizzle-kit: 1.0.0-rc.5(drizzle-orm@1.0.0-rc.5(@cloudflare/workers-types@4.20260604.1)(@effect/sql-d1@4.1.1(effect@4.1.2))(@effect/sql-pg@4.1.2(effect@4.1.2))(@effect/sql-sqlite-do@4.1.2(effect@4.1.2))(@electric-sql/pglite@0.3.15)(@libsql/client@0.17.3(bufferutil@4.1.0)(utf-8-validate@6.0.6))(@types/sql.js@1.4.11)(bun-types@1.3.14)(effect@4.1.2)(expo-sqlite@58.0.13(expo@58.0.14)(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0))(pg@8.23.0)(sql.js@1.15.0)(zod@4.6.5))
12441 transitivePeerDependencies:
12442 - mysql2
12443 - pg
@@ -13707,8 +13520,6 @@ snapshots:
13520 react: 19.3.0
13521 tslib: 2.8.1
13522
13710 - '@drizzle-team/brocli@0.12.0': {}
13711 -
13523 '@effect/atom-react@4.1.2(effect@4.1.2)(react@19.3.0)(scheduler@0.28.0)':
13524 dependencies:
13525 effect: 4.1.2
@@ -14014,159 +13825,81 @@ snapshots:
13825
13826 '@epic-web/invariant@1.0.0': {}
13827
14017 - '@esbuild/aix-ppc64@0.25.12':
14018 - optional: true
14019 -
13828 '@esbuild/aix-ppc64@0.28.2':
13829 optional: true
13830
14023 - '@esbuild/android-arm64@0.25.12':
14024 - optional: true
14025 -
13831 '@esbuild/android-arm64@0.28.2':
13832 optional: true
13833
14029 - '@esbuild/android-arm@0.25.12':
14030 - optional: true
14031 -
13834 '@esbuild/android-arm@0.28.2':
13835 optional: true
13836
14035 - '@esbuild/android-x64@0.25.12':
14036 - optional: true
14037 -
13837 '@esbuild/android-x64@0.28.2':
13838 optional: true
13839
14041 - '@esbuild/darwin-arm64@0.25.12':
14042 - optional: true
14043 -
13840 '@esbuild/darwin-arm64@0.28.2':
13841 optional: true
13842
14047 - '@esbuild/darwin-x64@0.25.12':
14048 - optional: true
14049 -
13843 '@esbuild/darwin-x64@0.28.2':
13844 optional: true
13845
14053 - '@esbuild/freebsd-arm64@0.25.12':
14054 - optional: true
14055 -
13846 '@esbuild/freebsd-arm64@0.28.2':
13847 optional: true
13848
14059 - '@esbuild/freebsd-x64@0.25.12':
14060 - optional: true
14061 -
13849 '@esbuild/freebsd-x64@0.28.2':
13850 optional: true
13851
14065 - '@esbuild/linux-arm64@0.25.12':
14066 - optional: true
14067 -
13852 '@esbuild/linux-arm64@0.28.2':
13853 optional: true
13854
14071 - '@esbuild/linux-arm@0.25.12':
14072 - optional: true
14073 -
13855 '@esbuild/linux-arm@0.28.2':
13856 optional: true
13857
14077 - '@esbuild/linux-ia32@0.25.12':
14078 - optional: true
14079 -
13858 '@esbuild/linux-ia32@0.28.2':
13859 optional: true
13860
14083 - '@esbuild/linux-loong64@0.25.12':
14084 - optional: true
14085 -
13861 '@esbuild/linux-loong64@0.28.2':
13862 optional: true
13863
14089 - '@esbuild/linux-mips64el@0.25.12':
14090 - optional: true
14091 -
13864 '@esbuild/linux-mips64el@0.28.2':
13865 optional: true
13866
14095 - '@esbuild/linux-ppc64@0.25.12':
14096 - optional: true
14097 -
13867 '@esbuild/linux-ppc64@0.28.2':
13868 optional: true
13869
14101 - '@esbuild/linux-riscv64@0.25.12':
14102 - optional: true
14103 -
13870 '@esbuild/linux-riscv64@0.28.2':
13871 optional: true
13872
14107 - '@esbuild/linux-s390x@0.25.12':
14108 - optional: true
14109 -
13873 '@esbuild/linux-s390x@0.28.2':
13874 optional: true
13875
14113 - '@esbuild/linux-x64@0.25.12':
14114 - optional: true
14115 -
13876 '@esbuild/linux-x64@0.28.2':
13877 optional: true
13878
14119 - '@esbuild/netbsd-arm64@0.25.12':
14120 - optional: true
14121 -
13879 '@esbuild/netbsd-arm64@0.28.2':
13880 optional: true
13881
14125 - '@esbuild/netbsd-x64@0.25.12':
14126 - optional: true
14127 -
13882 '@esbuild/netbsd-x64@0.28.2':
13883 optional: true
13884
14131 - '@esbuild/openbsd-arm64@0.25.12':
14132 - optional: true
14133 -
13885 '@esbuild/openbsd-arm64@0.28.2':
13886 optional: true
13887
14137 - '@esbuild/openbsd-x64@0.25.12':
14138 - optional: true
14139 -
13888 '@esbuild/openbsd-x64@0.28.2':
13889 optional: true
13890
14143 - '@esbuild/openharmony-arm64@0.25.12':
14144 - optional: true
14145 -
13891 '@esbuild/openharmony-arm64@0.28.2':
13892 optional: true
13893
14149 - '@esbuild/sunos-x64@0.25.12':
14150 - optional: true
14151 -
13894 '@esbuild/sunos-x64@0.28.2':
13895 optional: true
13896
14155 - '@esbuild/win32-arm64@0.25.12':
14156 - optional: true
14157 -
13897 '@esbuild/win32-arm64@0.28.2':
13898 optional: true
13899
14161 - '@esbuild/win32-ia32@0.25.12':
14162 - optional: true
14163 -
13900 '@esbuild/win32-ia32@0.28.2':
13901 optional: true
13902
14167 - '@esbuild/win32-x64@0.25.12':
14168 - optional: true
14169 -
13903 '@esbuild/win32-x64@0.28.2':
13904 optional: true
13905
@@ -14939,10 +14672,6 @@ snapshots:
14672 '@jridgewell/resolve-uri': 3.1.2
14673 '@jridgewell/sourcemap-codec': 1.6.0
14674
14942 - '@js-temporal/polyfill@0.5.1':
14943 - dependencies:
14944 - jsbi: 4.3.2
14945 -
14675 '@legendapp/list@3.3.5(patch_hash=6cbdacd8c380d9a5afb9f73d4198dc2cc44be6ef28a955b1183c781469307896)(react-dom@19.3.0(react@19.3.0))(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)':
14676 dependencies:
14677 react: 19.3.0
@@ -15697,14 +15426,6 @@ snapshots:
15426
15427 '@pierre/theme@2.0.0': {}
15428
15700 - '@pierre/theming@1.0.0(@pierre/theme@2.0.0)(@shikijs/themes@4.2.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(shiki@4.2.0)':
15701 - optionalDependencies:
15702 - '@pierre/theme': 2.0.0
15703 - '@shikijs/themes': 4.2.0
15704 - react: 19.3.0
15705 - react-dom: 19.3.0(react@19.3.0)
15706 - shiki: 4.2.0
15707 -
15429 '@pierre/theming@1.0.2(@pierre/theme@2.0.0)(@shikijs/themes@4.2.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(shiki@4.2.0)':
15430 optionalDependencies:
15431 '@pierre/theme': 2.0.0
@@ -15715,7 +15436,7 @@ snapshots:
15436
15437 '@pierre/trees@1.0.0-beta.6(@pierre/theme@2.0.0)(@shikijs/themes@4.2.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(shiki@4.2.0)':
15438 dependencies:
15718 - '@pierre/theming': 1.0.0(@pierre/theme@2.0.0)(@shikijs/themes@4.2.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(shiki@4.2.0)
15439 + '@pierre/theming': 1.0.2(@pierre/theme@2.0.0)(@shikijs/themes@4.2.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(shiki@4.2.0)
15440 preact: 11.0.0-beta.0
15441 preact-render-to-string: 6.6.5(preact@11.0.0-beta.0)
15442 react: 19.3.0
@@ -18187,15 +17908,11 @@ snapshots:
17908
17909 dotenv@16.6.1: {}
17910
18190 - drizzle-kit@1.0.0-rc.5-ab785fc:
18191 - dependencies:
18192 - '@drizzle-team/brocli': 0.12.0
18193 - '@js-temporal/polyfill': 0.5.1
18194 - esbuild: 0.25.12
18195 - get-tsconfig: 4.14.3
18196 - jiti: 2.7.0
17911 + drizzle-kit@1.0.0-rc.5(drizzle-orm@1.0.0-rc.5(@cloudflare/workers-types@4.20260604.1)(@effect/sql-d1@4.1.1(effect@4.1.2))(@effect/sql-pg@4.1.2(effect@4.1.2))(@effect/sql-sqlite-do@4.1.2(effect@4.1.2))(@electric-sql/pglite@0.3.15)(@libsql/client@0.17.3(bufferutil@4.1.0)(utf-8-validate@6.0.6))(@types/sql.js@1.4.11)(bun-types@1.3.14)(effect@4.1.2)(expo-sqlite@58.0.13(expo@58.0.14)(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0))(pg@8.23.0)(sql.js@1.15.0)(zod@4.6.5)):
17912 + optionalDependencies:
17913 + drizzle-orm: 1.0.0-rc.5(@cloudflare/workers-types@4.20260604.1)(@effect/sql-d1@4.1.1(effect@4.1.2))(@effect/sql-pg@4.1.2(effect@4.1.2))(@effect/sql-sqlite-do@4.1.2(effect@4.1.2))(@electric-sql/pglite@0.3.15)(@libsql/client@0.17.3(bufferutil@4.1.0)(utf-8-validate@6.0.6))(@types/sql.js@1.4.11)(bun-types@1.3.14)(effect@4.1.2)(expo-sqlite@58.0.13(expo@58.0.14)(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0))(pg@8.23.0)(sql.js@1.15.0)(zod@4.6.5)
17914
18198 - drizzle-orm@1.0.0-rc.5-ab785fc(@cloudflare/workers-types@4.20260604.1)(@effect/sql-d1@4.1.1(effect@4.1.2))(@effect/sql-pg@4.1.2(effect@4.1.2))(@effect/sql-sqlite-do@4.1.2(effect@4.1.2))(@electric-sql/pglite@0.3.15)(@libsql/client@0.17.3(bufferutil@4.1.0)(utf-8-validate@6.0.6))(@types/sql.js@1.4.11)(bun-types@1.3.14)(effect@4.1.2)(expo-sqlite@58.0.13(expo@58.0.14)(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0))(pg@8.23.0)(sql.js@1.15.0)(zod@4.6.5):
17915 + drizzle-orm@1.0.0-rc.5(@cloudflare/workers-types@4.20260604.1)(@effect/sql-d1@4.1.1(effect@4.1.2))(@effect/sql-pg@4.1.2(effect@4.1.2))(@effect/sql-sqlite-do@4.1.2(effect@4.1.2))(@electric-sql/pglite@0.3.15)(@libsql/client@0.17.3(bufferutil@4.1.0)(utf-8-validate@6.0.6))(@types/sql.js@1.4.11)(bun-types@1.3.14)(effect@4.1.2)(expo-sqlite@58.0.13(expo@58.0.14)(react-native@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.0(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0))(pg@8.23.0)(sql.js@1.15.0)(zod@4.6.5):
17916 optionalDependencies:
17917 '@cloudflare/workers-types': 4.20260604.1
17918 '@effect/sql-d1': 4.1.1(effect@4.1.2)
@@ -18384,35 +18101,6 @@ snapshots:
18101
18102 es6-promise@3.3.1: {}
18103
18387 - esbuild@0.25.12:
18388 - optionalDependencies:
18389 - '@esbuild/aix-ppc64': 0.25.12
18390 - '@esbuild/android-arm': 0.25.12
18391 - '@esbuild/android-arm64': 0.25.12
18392 - '@esbuild/android-x64': 0.25.12
18393 - '@esbuild/darwin-arm64': 0.25.12
18394 - '@esbuild/darwin-x64': 0.25.12
18395 - '@esbuild/freebsd-arm64': 0.25.12
18396 - '@esbuild/freebsd-x64': 0.25.12
18397 - '@esbuild/linux-arm': 0.25.12
18398 - '@esbuild/linux-arm64': 0.25.12
18399 - '@esbuild/linux-ia32': 0.25.12
18400 - '@esbuild/linux-loong64': 0.25.12
18401 - '@esbuild/linux-mips64el': 0.25.12
18402 - '@esbuild/linux-ppc64': 0.25.12
18403 - '@esbuild/linux-riscv64': 0.25.12
18404 - '@esbuild/linux-s390x': 0.25.12
18405 - '@esbuild/linux-x64': 0.25.12
18406 - '@esbuild/netbsd-arm64': 0.25.12
18407 - '@esbuild/netbsd-x64': 0.25.12
18408 - '@esbuild/openbsd-arm64': 0.25.12
18409 - '@esbuild/openbsd-x64': 0.25.12
18410 - '@esbuild/openharmony-arm64': 0.25.12
18411 - '@esbuild/sunos-x64': 0.25.12
18412 - '@esbuild/win32-arm64': 0.25.12
18413 - '@esbuild/win32-ia32': 0.25.12
18414 - '@esbuild/win32-x64': 0.25.12
18415 -
18104 esbuild@0.28.2:
18105 optionalDependencies:
18106 '@esbuild/aix-ppc64': 0.28.2
@@ -19585,8 +19273,6 @@ snapshots:
19273
19274 jsbi@2.0.5: {}
19275
19588 - jsbi@4.3.2: {}
19589 -
19276 jsc-safe-url@0.2.4: {}
19277
19278 jsdom@30.1.0(@noble/hashes@1.8.0):
pnpm-workspace.yaml
+13 -154
@@ -18,8 +18,6 @@ allowBuilds:
18 electron: false
19 electron-winstaller: false
20 esbuild: true
21 - msgpackr-extract: true
22 - msw: false
21 node-pty: true
22 # Ships N-API prebuilds; its install script only rebuilds from source.
23 objc-js: false
@@ -99,145 +97,6 @@ catalog:
97 remark-rehype: 11.1.2
98 unified: 11.0.5
99
102 -minimumReleaseAgeExclude:
103 - - alchemy@2.0.0-beta.85
104 - - "@alchemy.run/acme@2.0.0-beta.85"
105 - - "@alchemy.run/axiom@2.0.0-beta.85"
106 - - "@alchemy.run/cloudflare@2.0.0-beta.85"
107 - - "@alchemy.run/cloudflare-runtime@2.0.0-beta.85"
108 - - "@alchemy.run/docker@2.0.0-beta.85"
109 - - "@alchemy.run/drizzle@2.0.0-beta.85"
110 - - "@alchemy.run/node-utils@2.0.0-beta.85"
111 - - "@alchemy.run/planetscale@2.0.0-beta.85"
112 - - "@alchemy.run/sql@2.0.0-beta.85"
113 - - "@alchemy.run/test@2.0.0-beta.85"
114 - - "@distilled.cloud/acme@1.0.0-rc.18"
115 - - "@distilled.cloud/aws4signer@1.0.0-rc.18"
116 - - "@distilled.cloud/axiom@1.0.0-rc.18"
117 - - "@distilled.cloud/cloudflare@1.0.0-rc.18"
118 - - "@distilled.cloud/core@1.0.0-rc.18"
119 - - "@distilled.cloud/iceberg@1.0.0-rc.18"
120 - - "@distilled.cloud/planetscale@1.0.0-rc.18"
121 - - "@tsc-rs/*"
122 - - expo-glass-effect@58.0.4
123 - - expo-blur@58.0.4
124 - - expo-audio@58.0.9
125 - - "@clerk/backend@3.25.0"
126 - - "@clerk/clerk-js@6.40.0"
127 - - "@clerk/electron@0.1.3"
128 - - "@clerk/expo-native-components@0.4.0"
129 - - "@clerk/expo@4.14.0"
130 - - "@clerk/react@6.18.0"
131 - - "@clerk/shared@4.41.0"
132 - - "@effect/atom-react@4.1.2"
133 - - "@effect/graphql-generator@4.1.2"
134 - - "@effect/openapi-generator@4.1.2"
135 - - "@effect/platform-node-shared@4.1.2"
136 - - "@effect/platform-bun@4.1.2"
137 - - "@effect/platform-node@4.1.2"
138 - - "@effect/sql-pg@4.1.2"
139 - - "@effect/sql-sqlite-do@4.1.2"
140 - - "@effect/vitest@4.1.2"
141 - - effect@4.1.2
142 - - "@legendapp/list@3.3.5"
143 - - "@expo/cli@58.1.1 || 58.1.9 || 58.1.11"
144 - - "@expo/env@2.5.1"
145 - - "@expo/fingerprint@0.21.2"
146 - - "@expo/metro-config@58.0.14"
147 - - expo-constants@58.0.12
148 - - expo-font@58.0.8
149 - - expo-updates@58.0.17
150 - - expo@58.0.14
151 - - expo-widgets@58.0.20
152 - - "@expo/config-plugins@58.0.9"
153 - - "@expo/log-box@58.0.8"
154 - - "@expo/metro-file-map@58.0.3"
155 - - "@expo/metro-runtime@58.0.14"
156 - - "@expo/metro@58.0.0-rc.0"
157 - - "@expo/prebuild-config@58.0.7 || 58.0.14"
158 - - "@expo/router-server@58.0.6 || 58.0.14"
159 - - "@expo/ui@58.0.20"
160 - - babel-preset-expo@58.0.17
161 - - expo-asset@58.0.16
162 - - expo-build-properties@58.0.11
163 - - expo-dev-client@58.0.14
164 - - expo-dev-launcher@58.0.10 || 58.0.14
165 - - expo-dev-menu@58.0.10
166 - - expo-image-manipulator@58.0.14
167 - - expo-image-picker@58.0.10
168 - - expo-image@58.0.15
169 - - expo-linking@58.0.13
170 - - expo-modules-autolinking@58.0.7
171 - - expo-modules-core@58.0.11 || 58.0.19 || 58.0.22
172 - - expo-modules-jsi@58.0.7 || 58.0.14 || 58.0.15
173 - - expo-notifications@58.1.5
174 - - expo-sharing@58.0.19
175 - - expo-sqlite@58.0.13
176 - - expo-symbols@58.0.4
177 - - electron@44.10.1
178 - - "@shadcn/lint@0.1.5"
179 - - cn@0.3.2
180 - - uniwind@1.13.0
181 - - "@expo/dom-webview@58.0.2"
182 - - "expo-auth-session@58.0.13"
183 - - "expo-camera@58.0.10"
184 - - "expo-clipboard@58.0.3"
185 - - "expo-crypto@58.0.7"
186 - - "expo-device@58.0.5"
187 - - "expo-document-picker@58.0.4"
188 - - "expo-file-system@58.0.9"
189 - - "expo-haptics@58.0.7"
190 - - "expo-keep-awake@58.0.3"
191 - - "expo-network@58.0.3"
192 - - "expo-secure-store@58.0.2"
193 - - "expo-splash-screen@58.0.10"
194 - - "expo-video@58.0.11"
195 - - "expo-web-browser@58.0.6"
196 - - "react@19.3.0"
197 - - "react-dom@19.3.0"
198 - - "react-native@0.88.0"
199 - - "react-native-keyboard-controller@1.22.8"
200 - - "react-native-worklets@0.13.0"
201 - - "react-native-reanimated@4.7.1"
202 - - "react-native-screens@4.28.0"
203 - - "@expo/config-types@58.0.3"
204 - - expo-application@58.0.3 || 58.1.2
205 - - expo-eas-client@58.0.2
206 - - expo-image-loader@58.0.3
207 - - "@opencode/client@2.0.28"
208 - - "@opencode/protocol@2.0.28"
209 - - "@opencode/schema@2.0.28"
210 - - "@muse-code/sdk@1.4.6"
211 - - "@expo/package-manager@1.14.2"
212 - - "@react-native/asset-utils@0.88.0"
213 - - "@react-native/babel-plugin-codegen@0.88.0"
214 - - "@react-native/babel-preset@0.88.0"
215 - - "@react-native/codegen@0.88.0"
216 - - "@react-native/community-cli-plugin@0.88.0"
217 - - "@react-native/debugger-frontend@0.88.0"
218 - - "@react-native/debugger-shell@0.88.0"
219 - - "@react-native/dev-middleware@0.88.0"
220 - - "@react-native/gradle-plugin@0.88.0"
221 - - "@react-native/js-polyfills@0.88.0"
222 - - "@react-native/metro-babel-transformer@0.88.0"
223 - - "@react-native/metro-config@0.88.0"
224 - - "@react-native/normalize-colors@0.88.0"
225 - - "@react-native/virtualized-lists@0.88.0"
226 - - react-native-svg@15.16.0
227 - - "@expo/schema-utils@58.0.2"
228 - - pele@1.8.0
229 - - "@pierre/diffs@1.6.1"
230 - - "@pierre/highlights@0.2.0"
231 - - "@pierre/theming@1.0.2"
232 - - agent-device@0.21.32
233 - - "@cursor/sdk-darwin-arm64@1.2.0"
234 - - "@cursor/sdk-darwin-x64@1.2.0"
235 - - "@cursor/sdk-linux-arm64@1.2.0"
236 - - "@cursor/sdk-linux-x64@1.2.0"
237 - - "@cursor/sdk-win32-x64@1.2.0"
238 - - "@cursor/sdk@1.2.0"
239 - - "@distilled.cloud/aws@1.0.0-rc.18"
240 -
100 overrides:
101 # Pin every patched package, including transitive dependencies, so lockfile-free
102 # release installs cannot drift past the patch. Update these with patchedDependencies.
@@ -287,19 +146,10 @@ overrides:
146 "@anthropic-ai/claude-agent-sdk>@anthropic-ai/claude-agent-sdk-linux-x64-musl": "-"
147 "@anthropic-ai/claude-agent-sdk>@anthropic-ai/claude-agent-sdk-win32-arm64": "-"
148 "@anthropic-ai/claude-agent-sdk>@anthropic-ai/claude-agent-sdk-win32-x64": "-"
290 - # Alchemy's Ink fork declares React as a hard dependency, but the relay only
291 - # reaches its terminal-capability helpers; the TUI is never imported, so the
292 - # extra React copy is pure install weight.
293 - "@alchemy.run/sigil>react": "-"
294 - "@alchemy.run/sigil>react-reconciler": "-"
295 - "@alchemy.run/sigil>scheduler": "-"
149 "@clerk/backend": "catalog:"
150 "@clerk/clerk-js": "catalog:"
151 "@clerk/clerk-js>@base-org/account": "-"
152 "@clerk/clerk-js>@coinbase/wallet-sdk": "-"
300 - "@clerk/clerk-js>@solana/wallet-adapter-base": "-"
301 - "@clerk/clerk-js>@solana/wallet-adapter-react": "-"
302 - "@clerk/clerk-js>@solana/wallet-standard": "-"
153 "@clerk/clerk-js>@wallet-standard/core": "-"
154 "@clerk/electron": "catalog:"
155 "@clerk/electron-passkeys": "catalog:"
@@ -316,10 +166,10 @@ overrides:
166 "@expo/dom-webview": 58.0.2
167 "@expo/metro-config": 58.0.14
168 expo-constants: 58.0.12
319 - expo-router: 58.0.20
169 "expo-sharing>@expo/config-plugins": 58.0.9
170 "expo-sharing>@expo/config-types": 58.0.3
322 - "@pierre/diffs>@shikijs/transformers": ^4.2.0
171 + # @pierre/trees pins @pierre/theming 1.0.0, whose peer range predates @pierre/theme 2.
172 + "@pierre/trees>@pierre/theming": 1.0.2
173 # Resolve below remark-math so Vite, Metro and Node use the same tokenizer.
174 "remark-math>micromark-extension-math": npm:micromark-extension-llm-math@3.1.0
175 micromark-extension-gfm-table: 2.1.1
@@ -337,6 +187,9 @@ overrides:
187 "@opencode/protocol>effect": "catalog:"
188 "@opencode/schema>effect": "catalog:"
189 node-abi: 4.33.0
190 + # react-native-worklets peers on any version, so a fresh resolve takes the newest
191 + # one; React Native's CLI plugin wants exactly its own. Move with react-native.
192 + "@react-native/metro-config": 0.88.0
193 # The desktop app installs these without a lockfile when it packages them, so
194 # pin the native passkey code that runs in its main process.
195 "electron-webauthn>@electron-webauthn/macos": "catalog:"
@@ -409,17 +262,23 @@ patchedDependencies:
262 # Observe the owned host exit independently of descendants retaining its stdio.
263 "@muse-code/sdk@1.4.6": patches/@muse-code__sdk@1.4.6.patch
264 app-builder-lib@26.16.1: patches/app-builder-lib@26.16.1.patch
412 - # drizzle-kit fails on an absolute `out`: https://github.com/alchemy-run/alchemy/issues/2980
413 - "@alchemy.run/drizzle@2.0.0-beta.85": patches/@alchemy.run__drizzle@2.0.0-beta.85.patch
265 # A failed Artifacts.cached effect hangs every later caller: https://github.com/alchemy-run/alchemy/issues/2981
266 alchemy@2.0.0-beta.85: patches/alchemy@2.0.0-beta.85.patch
267
268 +# Unmet peers fail resolution, so a pin outside a dependency's peer range is
269 +# caught when the lockfile changes instead of scrolling past as a warning.
270 +strictPeerDependencies: true
271 +
272 peerDependencyRules:
273 allowAny:
274 - typescript
275 - vite
276 allowedVersions:
277 vite: "*"
278 + # Our react-native-screens fork is a 5.x prerelease, which ">= 4.0.0" excludes.
279 + "@react-navigation/native-stack>react-native-screens": "*"
280 + # ws 7 (React Native dev tooling) only calls isValidUTF8, unchanged in v6.
281 + "ws@7>utf-8-validate": "6"
282
283 # pnpm 12 links agent skills that dependencies ship into .claude/skills once
284 # approved. We curate our own skills, so deny these to keep installs quiet.