TypeScript
fix(relay): use released drizzle rc.5 and fail installs on unmet peers (#31016)
Julius Marmingedd5f98eeecad
diff --git a/infra/relay/migrations/postgres/20260527044716_baseline/snapshot.json b/infra/relay/migrations/postgres/20260527044716_baseline/snapshot.jsonindex aa35a4f8eee..c9ac334d167 100644--- a/infra/relay/migrations/postgres/20260527044716_baseline/snapshot.json+++ b/infra/relay/migrations/postgres/20260527044716_baseline/snapshot.json@@ -1,52 +1,415 @@{- "version": "8",+ "type": "base",+ "version": "9","dialect": "postgres","id": "ad620f05-3fd1-43b8-a3ca-d4c02543d892","prevIds": ["00000000-0000-0000-0000-000000000000"],+ "footprints": [+ {+ "statementType": "create_table",+ "statementTarget": ["table", "public", "relay_agent_activity_rows"],+ "writes": [+ "s|tbl|public.relay_agent_activity_rows",+ "n|tbl|public.relay_agent_activity_rows",+ "e|tbl|public.relay_agent_activity_rows",+ "n|rel|public.relay_agent_activity_rows",+ "n|type|public.relay_agent_activity_rows",+ "n|rel|public.relay_agent_activity_rows_pkey"+ ],+ "reads": ["n|sch|public"]+ },+ {+ "statementType": "create_table",+ "statementTarget": ["table", "public", "relay_delivery_attempts"],+ "writes": [+ "s|tbl|public.relay_delivery_attempts",+ "n|tbl|public.relay_delivery_attempts",+ "e|tbl|public.relay_delivery_attempts",+ "n|rel|public.relay_delivery_attempts",+ "n|type|public.relay_delivery_attempts",+ "n|rel|public.relay_delivery_attempts_pkey"+ ],+ "reads": ["n|sch|public"]+ },+ {+ "statementType": "create_table",+ "statementTarget": ["table", "public", "relay_dpop_proofs"],+ "writes": [+ "s|tbl|public.relay_dpop_proofs",+ "n|tbl|public.relay_dpop_proofs",+ "e|tbl|public.relay_dpop_proofs",+ "n|rel|public.relay_dpop_proofs",+ "n|type|public.relay_dpop_proofs",+ "n|rel|public.relay_dpop_proofs_pkey"+ ],+ "reads": ["n|sch|public"]+ },+ {+ "statementType": "create_table",+ "statementTarget": ["table", "public", "relay_environment_credentials"],+ "writes": [+ "s|tbl|public.relay_environment_credentials",+ "n|tbl|public.relay_environment_credentials",+ "e|tbl|public.relay_environment_credentials",+ "n|rel|public.relay_environment_credentials",+ "n|type|public.relay_environment_credentials",+ "n|rel|public.relay_environment_credentials_pkey"+ ],+ "reads": ["n|sch|public"]+ },+ {+ "statementType": "create_table",+ "statementTarget": ["table", "public", "relay_environment_links"],+ "writes": [+ "s|tbl|public.relay_environment_links",+ "n|tbl|public.relay_environment_links",+ "e|tbl|public.relay_environment_links",+ "n|rel|public.relay_environment_links",+ "n|type|public.relay_environment_links",+ "n|rel|public.relay_environment_links_pkey"+ ],+ "reads": ["n|sch|public"]+ },+ {+ "statementType": "create_table",+ "statementTarget": ["table", "public", "relay_live_activities"],+ "writes": [+ "s|tbl|public.relay_live_activities",+ "n|tbl|public.relay_live_activities",+ "e|tbl|public.relay_live_activities",+ "n|rel|public.relay_live_activities",+ "n|type|public.relay_live_activities",+ "n|rel|public.relay_live_activities_pkey"+ ],+ "reads": ["n|sch|public"]+ },+ {+ "statementType": "create_table",+ "statementTarget": ["table", "public", "relay_mobile_devices"],+ "writes": [+ "s|tbl|public.relay_mobile_devices",+ "n|tbl|public.relay_mobile_devices",+ "e|tbl|public.relay_mobile_devices",+ "n|rel|public.relay_mobile_devices",+ "n|type|public.relay_mobile_devices",+ "n|rel|public.relay_mobile_devices_pkey"+ ],+ "reads": ["n|sch|public"]+ },+ {+ "statementType": "create_index",+ "statementTarget": [+ "index",+ "public",+ "relay_agent_activity_rows",+ "idx_relay_agent_activity_rows_updated"+ ],+ "writes": [+ "s|idx|public.idx_relay_agent_activity_rows_updated",+ "n|idx|public.idx_relay_agent_activity_rows_updated",+ "e|idx|public.idx_relay_agent_activity_rows_updated",+ "n|rel|public.idx_relay_agent_activity_rows_updated"+ ],+ "reads": [+ "n|tbl|public.relay_agent_activity_rows",+ "n|sch|public",+ "n|col|public.relay_agent_activity_rows.updated_at"+ ]+ },+ {+ "statementType": "create_index",+ "statementTarget": [+ "index",+ "public",+ "relay_delivery_attempts",+ "idx_relay_delivery_attempts_environment"+ ],+ "writes": [+ "s|idx|public.idx_relay_delivery_attempts_environment",+ "n|idx|public.idx_relay_delivery_attempts_environment",+ "e|idx|public.idx_relay_delivery_attempts_environment",+ "n|rel|public.idx_relay_delivery_attempts_environment"+ ],+ "reads": [+ "n|tbl|public.relay_delivery_attempts",+ "n|sch|public",+ "n|col|public.relay_delivery_attempts.environment_id",+ "n|col|public.relay_delivery_attempts.thread_id",+ "n|col|public.relay_delivery_attempts.created_at"+ ]+ },+ {+ "statementType": "create_index",+ "statementTarget": [+ "index",+ "public",+ "relay_delivery_attempts",+ "idx_relay_delivery_attempts_source_job"+ ],+ "writes": [+ "s|idx|public.idx_relay_delivery_attempts_source_job",+ "n|idx|public.idx_relay_delivery_attempts_source_job",+ "e|idx|public.idx_relay_delivery_attempts_source_job",+ "n|rel|public.idx_relay_delivery_attempts_source_job"+ ],+ "reads": [+ "n|tbl|public.relay_delivery_attempts",+ "n|sch|public",+ "n|col|public.relay_delivery_attempts.source_job_id"+ ]+ },+ {+ "statementType": "create_index",+ "statementTarget": [+ "index",+ "public",+ "relay_dpop_proofs",+ "idx_relay_dpop_proofs_expires_at"+ ],+ "writes": [+ "s|idx|public.idx_relay_dpop_proofs_expires_at",+ "n|idx|public.idx_relay_dpop_proofs_expires_at",+ "e|idx|public.idx_relay_dpop_proofs_expires_at",+ "n|rel|public.idx_relay_dpop_proofs_expires_at"+ ],+ "reads": [+ "n|tbl|public.relay_dpop_proofs",+ "n|sch|public",+ "n|col|public.relay_dpop_proofs.expires_at"+ ]+ },+ {+ "statementType": "create_index",+ "statementTarget": [+ "index",+ "public",+ "relay_environment_credentials",+ "idx_relay_environment_credentials_hash"+ ],+ "writes": [+ "s|idx|public.idx_relay_environment_credentials_hash",+ "n|idx|public.idx_relay_environment_credentials_hash",+ "e|idx|public.idx_relay_environment_credentials_hash",+ "n|rel|public.idx_relay_environment_credentials_hash"+ ],+ "reads": [+ "n|tbl|public.relay_environment_credentials",+ "n|sch|public",+ "n|col|public.relay_environment_credentials.credential_hash"+ ]+ },+ {+ "statementType": "create_index",+ "statementTarget": [+ "index",+ "public",+ "relay_environment_credentials",+ "idx_relay_environment_credentials_environment"+ ],+ "writes": [+ "s|idx|public.idx_relay_environment_credentials_environment",+ "n|idx|public.idx_relay_environment_credentials_environment",+ "e|idx|public.idx_relay_environment_credentials_environment",+ "n|rel|public.idx_relay_environment_credentials_environment"+ ],+ "reads": [+ "n|tbl|public.relay_environment_credentials",+ "n|sch|public",+ "n|col|public.relay_environment_credentials.environment_id",+ "n|col|public.relay_environment_credentials.revoked_at"+ ]+ },+ {+ "statementType": "create_index",+ "statementTarget": [+ "index",+ "public",+ "relay_environment_credentials",+ "idx_relay_environment_credentials_environment_key"+ ],+ "writes": [+ "s|idx|public.idx_relay_environment_credentials_environment_key",+ "n|idx|public.idx_relay_environment_credentials_environment_key",+ "e|idx|public.idx_relay_environment_credentials_environment_key",+ "n|rel|public.idx_relay_environment_credentials_environment_key"+ ],+ "reads": [+ "n|tbl|public.relay_environment_credentials",+ "n|sch|public",+ "n|col|public.relay_environment_credentials.environment_id",+ "n|col|public.relay_environment_credentials.environment_public_key",+ "n|col|public.relay_environment_credentials.revoked_at"+ ]+ },+ {+ "statementType": "create_index",+ "statementTarget": [+ "index",+ "public",+ "relay_environment_links",+ "idx_relay_environment_links_environment"+ ],+ "writes": [+ "s|idx|public.idx_relay_environment_links_environment",+ "n|idx|public.idx_relay_environment_links_environment",+ "e|idx|public.idx_relay_environment_links_environment",+ "n|rel|public.idx_relay_environment_links_environment"+ ],+ "reads": [+ "n|tbl|public.relay_environment_links",+ "n|sch|public",+ "n|col|public.relay_environment_links.environment_id",+ "n|col|public.relay_environment_links.revoked_at"+ ]+ },+ {+ "statementType": "create_index",+ "statementTarget": [+ "index",+ "public",+ "relay_live_activities",+ "idx_relay_live_activities_user"+ ],+ "writes": [+ "s|idx|public.idx_relay_live_activities_user",+ "n|idx|public.idx_relay_live_activities_user",+ "e|idx|public.idx_relay_live_activities_user",+ "n|rel|public.idx_relay_live_activities_user"+ ],+ "reads": [+ "n|tbl|public.relay_live_activities",+ "n|sch|public",+ "n|col|public.relay_live_activities.user_id"+ ]+ },+ {+ "statementType": "create_index",+ "statementTarget": [+ "index",+ "public",+ "relay_live_activities",+ "idx_relay_live_activities_activity_push_token"+ ],+ "writes": [+ "s|idx|public.idx_relay_live_activities_activity_push_token",+ "n|idx|public.idx_relay_live_activities_activity_push_token",+ "e|idx|public.idx_relay_live_activities_activity_push_token",+ "n|rel|public.idx_relay_live_activities_activity_push_token"+ ],+ "reads": [+ "n|tbl|public.relay_live_activities",+ "n|sch|public",+ "n|col|public.relay_live_activities.activity_push_token"+ ]+ },+ {+ "statementType": "create_index",+ "statementTarget": [+ "index",+ "public",+ "relay_mobile_devices",+ "idx_relay_mobile_devices_user"+ ],+ "writes": [+ "s|idx|public.idx_relay_mobile_devices_user",+ "n|idx|public.idx_relay_mobile_devices_user",+ "e|idx|public.idx_relay_mobile_devices_user",+ "n|rel|public.idx_relay_mobile_devices_user"+ ],+ "reads": [+ "n|tbl|public.relay_mobile_devices",+ "n|sch|public",+ "n|col|public.relay_mobile_devices.user_id"+ ]+ },+ {+ "statementType": "create_index",+ "statementTarget": [+ "index",+ "public",+ "relay_mobile_devices",+ "idx_relay_mobile_devices_push_token"+ ],+ "writes": [+ "s|idx|public.idx_relay_mobile_devices_push_token",+ "n|idx|public.idx_relay_mobile_devices_push_token",+ "e|idx|public.idx_relay_mobile_devices_push_token",+ "n|rel|public.idx_relay_mobile_devices_push_token"+ ],+ "reads": [+ "n|tbl|public.relay_mobile_devices",+ "n|sch|public",+ "n|col|public.relay_mobile_devices.push_token"+ ]+ },+ {+ "statementType": "create_index",+ "statementTarget": [+ "index",+ "public",+ "relay_mobile_devices",+ "idx_relay_mobile_devices_push_to_start_token"+ ],+ "writes": [+ "s|idx|public.idx_relay_mobile_devices_push_to_start_token",+ "n|idx|public.idx_relay_mobile_devices_push_to_start_token",+ "e|idx|public.idx_relay_mobile_devices_push_to_start_token",+ "n|rel|public.idx_relay_mobile_devices_push_to_start_token"+ ],+ "reads": [+ "n|tbl|public.relay_mobile_devices",+ "n|sch|public",+ "n|col|public.relay_mobile_devices.push_to_start_token"+ ]+ }+ ],"ddl": [{- "isRlsEnabled": false,+ "schema": "public","name": "relay_agent_activity_rows",- "entityType": "tables",- "schema": "public"+ "isRlsEnabled": false,+ "entityType": "tables"},{- "isRlsEnabled": false,+ "schema": "public","name": "relay_delivery_attempts",- "entityType": "tables",- "schema": "public"+ "isRlsEnabled": false,+ "entityType": "tables"},{- "isRlsEnabled": false,+ "schema": "public","name": "relay_dpop_proofs",- "entityType": "tables",- "schema": "public"+ "isRlsEnabled": false,+ "entityType": "tables"},{- "isRlsEnabled": false,+ "schema": "public","name": "relay_environment_credentials",- "entityType": "tables",- "schema": "public"+ "isRlsEnabled": false,+ "entityType": "tables"},{- "isRlsEnabled": false,+ "schema": "public","name": "relay_environment_links",- "entityType": "tables",- "schema": "public"+ "isRlsEnabled": false,+ "entityType": "tables"},{- "isRlsEnabled": false,+ "schema": "public","name": "relay_live_activities",- "entityType": "tables",- "schema": "public"+ "isRlsEnabled": false,+ "entityType": "tables"},{- "isRlsEnabled": false,+ "schema": "public","name": "relay_mobile_devices",- "entityType": "tables",- "schema": "public"+ "isRlsEnabled": false,+ "entityType": "tables"},{+ "schema": "public",+ "table": "relay_agent_activity_rows",+ "name": "environment_id","type": "varchar(191)","typeSchema": null,"notNull": true,@@ -54,12 +417,12 @@"default": null,"generated": null,"identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_agent_activity_rows",+ "name": "environment_public_key","type": "text","typeSchema": null,"notNull": true,@@ -67,12 +430,12 @@"default": null,"generated": null,"identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_agent_activity_rows",+ "name": "thread_id","type": "varchar(191)","typeSchema": null,"notNull": true,@@ -80,12 +443,12 @@"default": null,"generated": null,"identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_agent_activity_rows",+ "name": "state_json","type": "jsonb","typeSchema": null,"notNull": true,@@ -93,12 +456,12 @@"default": null,"generated": null,"identity": null,- "name": "state_json",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_agent_activity_rows",+ "name": "updated_at","type": "varchar(64)","typeSchema": null,"notNull": true,@@ -106,12 +469,12 @@"default": null,"generated": null,"identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_agent_activity_rows",+ "name": "created_at","type": "varchar(64)","typeSchema": null,"notNull": true,@@ -119,12 +482,12 @@"default": null,"generated": null,"identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_delivery_attempts",+ "name": "id","type": "varchar(36)","typeSchema": null,"notNull": true,@@ -132,12 +495,12 @@"default": null,"generated": null,"identity": null,- "name": "id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_delivery_attempts",+ "name": "created_at","type": "varchar(64)","typeSchema": null,"notNull": true,@@ -145,12 +508,12 @@"default": null,"generated": null,"identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_delivery_attempts",+ "name": "user_id","type": "varchar(255)","typeSchema": null,"notNull": false,@@ -158,12 +521,12 @@"default": null,"generated": null,"identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_delivery_attempts",+ "name": "environment_id","type": "varchar(191)","typeSchema": null,"notNull": false,@@ -171,12 +534,12 @@"default": null,"generated": null,"identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_delivery_attempts",+ "name": "thread_id","type": "varchar(191)","typeSchema": null,"notNull": false,@@ -184,12 +547,12 @@"default": null,"generated": null,"identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_delivery_attempts",+ "name": "device_id","type": "varchar(255)","typeSchema": null,"notNull": false,@@ -197,12 +560,12 @@"default": null,"generated": null,"identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_delivery_attempts",+ "name": "kind","type": "varchar(64)","typeSchema": null,"notNull": true,@@ -210,12 +573,12 @@"default": null,"generated": null,"identity": null,- "name": "kind",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_delivery_attempts",+ "name": "source_job_id","type": "varchar(64)","typeSchema": null,"notNull": false,@@ -223,12 +586,12 @@"default": null,"generated": null,"identity": null,- "name": "source_job_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_delivery_attempts",+ "name": "token_suffix","type": "varchar(16)","typeSchema": null,"notNull": false,@@ -236,12 +599,12 @@"default": null,"generated": null,"identity": null,- "name": "token_suffix",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_delivery_attempts",+ "name": "apns_status","type": "integer","typeSchema": null,"notNull": false,@@ -249,12 +612,12 @@"default": null,"generated": null,"identity": null,- "name": "apns_status",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_delivery_attempts",+ "name": "apns_reason","type": "text","typeSchema": null,"notNull": false,@@ -262,12 +625,12 @@"default": null,"generated": null,"identity": null,- "name": "apns_reason",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_delivery_attempts",+ "name": "apns_id","type": "varchar(128)","typeSchema": null,"notNull": false,@@ -275,12 +638,12 @@"default": null,"generated": null,"identity": null,- "name": "apns_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_delivery_attempts",+ "name": "transport_error","type": "text","typeSchema": null,"notNull": false,@@ -288,12 +651,12 @@"default": null,"generated": null,"identity": null,- "name": "transport_error",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_dpop_proofs",+ "name": "thumbprint","type": "varchar(128)","typeSchema": null,"notNull": true,@@ -301,12 +664,12 @@"default": null,"generated": null,"identity": null,- "name": "thumbprint",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_dpop_proofs",+ "name": "jti","type": "varchar(255)","typeSchema": null,"notNull": true,@@ -314,12 +677,12 @@"default": null,"generated": null,"identity": null,- "name": "jti",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_dpop_proofs",+ "name": "iat","type": "integer","typeSchema": null,"notNull": true,@@ -327,12 +690,12 @@"default": null,"generated": null,"identity": null,- "name": "iat",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_dpop_proofs",+ "name": "expires_at","type": "varchar(64)","typeSchema": null,"notNull": true,@@ -340,12 +703,12 @@"default": null,"generated": null,"identity": null,- "name": "expires_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_dpop_proofs",+ "name": "created_at","type": "varchar(64)","typeSchema": null,"notNull": true,@@ -353,12 +716,12 @@"default": null,"generated": null,"identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_credentials",+ "name": "credential_id","type": "varchar(64)","typeSchema": null,"notNull": true,@@ -366,12 +729,12 @@"default": null,"generated": null,"identity": null,- "name": "credential_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_credentials",+ "name": "environment_id","type": "varchar(191)","typeSchema": null,"notNull": true,@@ -379,12 +742,12 @@"default": null,"generated": null,"identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_credentials",+ "name": "environment_public_key","type": "text","typeSchema": null,"notNull": true,@@ -392,12 +755,12 @@"default": null,"generated": null,"identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_credentials",+ "name": "credential_hash","type": "varchar(191)","typeSchema": null,"notNull": true,@@ -405,12 +768,12 @@"default": null,"generated": null,"identity": null,- "name": "credential_hash",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_credentials",+ "name": "revoked_at","type": "varchar(64)","typeSchema": null,"notNull": false,@@ -418,12 +781,12 @@"default": null,"generated": null,"identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_credentials",+ "name": "created_at","type": "varchar(64)","typeSchema": null,"notNull": true,@@ -431,12 +794,12 @@"default": null,"generated": null,"identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_credentials",+ "name": "updated_at","type": "varchar(64)","typeSchema": null,"notNull": true,@@ -444,12 +807,12 @@"default": null,"generated": null,"identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_links",+ "name": "user_id","type": "varchar(191)","typeSchema": null,"notNull": true,@@ -457,12 +820,12 @@"default": null,"generated": null,"identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_links",+ "name": "environment_id","type": "varchar(191)","typeSchema": null,"notNull": true,@@ -470,12 +833,12 @@"default": null,"generated": null,"identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_links",+ "name": "environment_label","type": "text","typeSchema": null,"notNull": true,@@ -483,12 +846,12 @@"default": "'T3 Environment'","generated": null,"identity": null,- "name": "environment_label",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_links",+ "name": "environment_public_key","type": "text","typeSchema": null,"notNull": true,@@ -496,12 +859,12 @@"default": null,"generated": null,"identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_links",+ "name": "endpoint_http_base_url","type": "text","typeSchema": null,"notNull": true,@@ -509,12 +872,12 @@"default": null,"generated": null,"identity": null,- "name": "endpoint_http_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_links",+ "name": "endpoint_ws_base_url","type": "text","typeSchema": null,"notNull": true,@@ -522,12 +885,12 @@"default": null,"generated": null,"identity": null,- "name": "endpoint_ws_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_links",+ "name": "endpoint_provider_kind","type": "varchar(32)","typeSchema": null,"notNull": true,@@ -535,12 +898,12 @@"default": null,"generated": null,"identity": null,- "name": "endpoint_provider_kind",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_links",+ "name": "notifications_enabled","type": "boolean","typeSchema": null,"notNull": true,@@ -548,12 +911,12 @@"default": "true","generated": null,"identity": null,- "name": "notifications_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_links",+ "name": "live_activities_enabled","type": "boolean","typeSchema": null,"notNull": true,@@ -561,12 +924,12 @@"default": "true","generated": null,"identity": null,- "name": "live_activities_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_links",+ "name": "managed_tunnels_enabled","type": "boolean","typeSchema": null,"notNull": true,@@ -574,12 +937,12 @@"default": "false","generated": null,"identity": null,- "name": "managed_tunnels_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_links",+ "name": "created_by_device_id","type": "varchar(191)","typeSchema": null,"notNull": false,@@ -587,12 +950,12 @@"default": null,"generated": null,"identity": null,- "name": "created_by_device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_links",+ "name": "revoked_at","type": "varchar(64)","typeSchema": null,"notNull": false,@@ -600,12 +963,12 @@"default": null,"generated": null,"identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_links",+ "name": "created_at","type": "varchar(64)","typeSchema": null,"notNull": true,@@ -613,12 +976,12 @@"default": null,"generated": null,"identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_environment_links",+ "name": "updated_at","type": "varchar(64)","typeSchema": null,"notNull": true,@@ -626,12 +989,12 @@"default": null,"generated": null,"identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_live_activities",+ "name": "user_id","type": "varchar(255)","typeSchema": null,"notNull": true,@@ -639,12 +1002,12 @@"default": null,"generated": null,"identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_live_activities",+ "name": "device_id","type": "varchar(255)","typeSchema": null,"notNull": true,@@ -652,12 +1015,12 @@"default": null,"generated": null,"identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_live_activities",+ "name": "activity_push_token","type": "text","typeSchema": null,"notNull": false,@@ -665,12 +1028,12 @@"default": null,"generated": null,"identity": null,- "name": "activity_push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_live_activities",+ "name": "remote_start_queued_at","type": "varchar(64)","typeSchema": null,"notNull": false,@@ -678,12 +1041,12 @@"default": null,"generated": null,"identity": null,- "name": "remote_start_queued_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_live_activities",+ "name": "remote_started_at","type": "varchar(64)","typeSchema": null,"notNull": false,@@ -691,12 +1054,12 @@"default": null,"generated": null,"identity": null,- "name": "remote_started_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_live_activities",+ "name": "ended_at","type": "varchar(64)","typeSchema": null,"notNull": false,@@ -704,12 +1067,12 @@"default": null,"generated": null,"identity": null,- "name": "ended_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_live_activities",+ "name": "last_aggregate_json","type": "jsonb","typeSchema": null,"notNull": false,@@ -717,12 +1080,12 @@"default": null,"generated": null,"identity": null,- "name": "last_aggregate_json",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_live_activities",+ "name": "last_live_activity_delivery_at","type": "varchar(64)","typeSchema": null,"notNull": false,@@ -730,12 +1093,12 @@"default": null,"generated": null,"identity": null,- "name": "last_live_activity_delivery_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_live_activities",+ "name": "created_at","type": "varchar(64)","typeSchema": null,"notNull": true,@@ -743,12 +1106,12 @@"default": null,"generated": null,"identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_live_activities",+ "name": "updated_at","type": "varchar(64)","typeSchema": null,"notNull": true,@@ -756,12 +1119,12 @@"default": null,"generated": null,"identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_mobile_devices",+ "name": "user_id","type": "varchar(255)","typeSchema": null,"notNull": true,@@ -769,12 +1132,12 @@"default": null,"generated": null,"identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_mobile_devices",+ "name": "device_id","type": "varchar(255)","typeSchema": null,"notNull": true,@@ -782,12 +1145,12 @@"default": null,"generated": null,"identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_mobile_devices",+ "name": "platform","type": "varchar(16)","typeSchema": null,"notNull": true,@@ -795,12 +1158,12 @@"default": null,"generated": null,"identity": null,- "name": "platform",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_mobile_devices",+ "name": "ios_major_version","type": "integer","typeSchema": null,"notNull": true,@@ -808,12 +1171,12 @@"default": null,"generated": null,"identity": null,- "name": "ios_major_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_mobile_devices",+ "name": "app_version","type": "varchar(64)","typeSchema": null,"notNull": false,@@ -821,12 +1184,12 @@"default": null,"generated": null,"identity": null,- "name": "app_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_mobile_devices",+ "name": "push_token","type": "text","typeSchema": null,"notNull": false,@@ -834,12 +1197,12 @@"default": null,"generated": null,"identity": null,- "name": "push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_mobile_devices",+ "name": "push_to_start_token","type": "text","typeSchema": null,"notNull": false,@@ -847,12 +1210,12 @@"default": null,"generated": null,"identity": null,- "name": "push_to_start_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_mobile_devices",+ "name": "preferences_json","type": "jsonb","typeSchema": null,"notNull": true,@@ -860,12 +1223,12 @@"default": null,"generated": null,"identity": null,- "name": "preferences_json",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_mobile_devices",+ "name": "created_at","type": "varchar(64)","typeSchema": null,"notNull": true,@@ -873,12 +1236,12 @@"default": null,"generated": null,"identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_mobile_devices",+ "name": "updated_at","type": "varchar(64)","typeSchema": null,"notNull": true,@@ -886,12 +1249,12 @@"default": null,"generated": null,"identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"+ "entityType": "columns"},{+ "schema": "public",+ "table": "relay_agent_activity_rows",+ "name": "idx_relay_agent_activity_rows_updated","nameExplicit": true,"columns": [{@@ -907,12 +1270,12 @@"with": "","method": "btree","concurrently": false,- "name": "idx_relay_agent_activity_rows_updated",- "entityType": "indexes",- "schema": "public",- "table": "relay_agent_activity_rows"+ "entityType": "indexes"},{+ "schema": "public",+ "table": "relay_delivery_attempts",+ "name": "idx_relay_delivery_attempts_environment","nameExplicit": true,"columns": [{@@ -942,12 +1305,12 @@"with": "","method": "btree","concurrently": false,- "name": "idx_relay_delivery_attempts_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"+ "entityType": "indexes"},{+ "schema": "public",+ "table": "relay_delivery_attempts",+ "name": "idx_relay_delivery_attempts_source_job","nameExplicit": true,"columns": [{@@ -963,12 +1326,12 @@"with": "","method": "btree","concurrently": false,- "name": "idx_relay_delivery_attempts_source_job",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"+ "entityType": "indexes"},{+ "schema": "public",+ "table": "relay_dpop_proofs",+ "name": "idx_relay_dpop_proofs_expires_at","nameExplicit": true,"columns": [{@@ -984,12 +1347,12 @@"with": "","method": "btree","concurrently": false,- "name": "idx_relay_dpop_proofs_expires_at",- "entityType": "indexes",- "schema": "public",- "table": "relay_dpop_proofs"+ "entityType": "indexes"},{+ "schema": "public",+ "table": "relay_environment_credentials",+ "name": "idx_relay_environment_credentials_hash","nameExplicit": true,"columns": [{@@ -1005,12 +1368,12 @@"with": "","method": "btree","concurrently": false,- "name": "idx_relay_environment_credentials_hash",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"+ "entityType": "indexes"},{+ "schema": "public",+ "table": "relay_environment_credentials",+ "name": "idx_relay_environment_credentials_environment","nameExplicit": true,"columns": [{@@ -1033,12 +1396,12 @@"with": "","method": "btree","concurrently": false,- "name": "idx_relay_environment_credentials_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"+ "entityType": "indexes"},{+ "schema": "public",+ "table": "relay_environment_credentials",+ "name": "idx_relay_environment_credentials_environment_key","nameExplicit": true,"columns": [{@@ -1068,12 +1431,12 @@"with": "","method": "btree","concurrently": false,- "name": "idx_relay_environment_credentials_environment_key",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"+ "entityType": "indexes"},{+ "schema": "public",+ "table": "relay_environment_links",+ "name": "idx_relay_environment_links_environment","nameExplicit": true,"columns": [{@@ -1096,12 +1459,12 @@"with": "","method": "btree","concurrently": false,- "name": "idx_relay_environment_links_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_links"+ "entityType": "indexes"},{+ "schema": "public",+ "table": "relay_live_activities",+ "name": "idx_relay_live_activities_user","nameExplicit": true,"columns": [{@@ -1117,12 +1480,12 @@"with": "","method": "btree","concurrently": false,- "name": "idx_relay_live_activities_user",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"+ "entityType": "indexes"},{+ "schema": "public",+ "table": "relay_live_activities",+ "name": "idx_relay_live_activities_activity_push_token","nameExplicit": true,"columns": [{@@ -1138,12 +1501,12 @@"with": "","method": "btree","concurrently": false,- "name": "idx_relay_live_activities_activity_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"+ "entityType": "indexes"},{+ "schema": "public",+ "table": "relay_mobile_devices",+ "name": "idx_relay_mobile_devices_user","nameExplicit": true,"columns": [{@@ -1159,12 +1522,12 @@"with": "","method": "btree","concurrently": false,- "name": "idx_relay_mobile_devices_user",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"+ "entityType": "indexes"},{+ "schema": "public",+ "table": "relay_mobile_devices",+ "name": "idx_relay_mobile_devices_push_token","nameExplicit": true,"columns": [{@@ -1180,12 +1543,12 @@"with": "","method": "btree","concurrently": false,- "name": "idx_relay_mobile_devices_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"+ "entityType": "indexes"},{+ "schema": "public",+ "table": "relay_mobile_devices",+ "name": "idx_relay_mobile_devices_push_to_start_token","nameExplicit": true,"columns": [{@@ -1201,67 +1564,63 @@"with": "","method": "btree","concurrently": false,- "name": "idx_relay_mobile_devices_push_to_start_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"+ "entityType": "indexes"},{+ "schema": "public",+ "table": "relay_agent_activity_rows",+ "name": "relay_agent_activity_rows_pkey","columns": ["environment_id", "environment_public_key", "thread_id"],"nameExplicit": false,- "name": "relay_agent_activity_rows_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_agent_activity_rows"+ "entityType": "pks"},{+ "schema": "public",+ "table": "relay_dpop_proofs",+ "name": "relay_dpop_proofs_pkey","columns": ["thumbprint", "jti"],"nameExplicit": false,- "name": "relay_dpop_proofs_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_dpop_proofs"+ "entityType": "pks"},{+ "schema": "public",+ "table": "relay_environment_links",+ "name": "relay_environment_links_pkey","columns": ["user_id", "environment_id"],"nameExplicit": false,- "name": "relay_environment_links_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_environment_links"+ "entityType": "pks"},{+ "schema": "public",+ "table": "relay_live_activities",+ "name": "relay_live_activities_pkey","columns": ["user_id", "device_id"],"nameExplicit": false,- "name": "relay_live_activities_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_live_activities"+ "entityType": "pks"},{+ "schema": "public",+ "table": "relay_mobile_devices",+ "name": "relay_mobile_devices_pkey","columns": ["user_id", "device_id"],"nameExplicit": false,- "name": "relay_mobile_devices_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_mobile_devices"+ "entityType": "pks"},{- "columns": ["id"],- "nameExplicit": false,- "name": "relay_delivery_attempts_pkey","schema": "public","table": "relay_delivery_attempts",+ "name": "relay_delivery_attempts_pkey",+ "columns": ["id"],+ "nameExplicit": false,"entityType": "pks"},{- "columns": ["credential_id"],- "nameExplicit": false,- "name": "relay_environment_credentials_pkey","schema": "public","table": "relay_environment_credentials",+ "name": "relay_environment_credentials_pkey",+ "columns": ["credential_id"],+ "nameExplicit": false,"entityType": "pks"}- ],- "renames": []+ ]}diff --git a/infra/relay/migrations/postgres/20260601225421_add_mobile_device_label/snapshot.json b/infra/relay/migrations/postgres/20260601225421_add_mobile_device_label/snapshot.jsonindex d79130adb08..971bb6ca9bf 100644--- a/infra/relay/migrations/postgres/20260601225421_add_mobile_device_label/snapshot.json+++ b/infra/relay/migrations/postgres/20260601225421_add_mobile_device_label/snapshot.json@@ -1,1280 +1,37 @@{+ "type": "diff",+ "version": "9","dialect": "postgres","id": "e189638b-4700-4656-b86e-d8baa63f5fe4","prevIds": ["ad620f05-3fd1-43b8-a3ca-d4c02543d892"],- "version": "8",- "ddl": [+ "footprints": [{- "isRlsEnabled": false,- "name": "relay_agent_activity_rows",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_delivery_attempts",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_dpop_proofs",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_credentials",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_links",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_live_activities",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_mobile_devices",- "entityType": "tables",- "schema": "public"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "state_json",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(36)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "kind",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "source_job_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "token_suffix",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_status",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_reason",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "transport_error",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thumbprint",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "jti",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "iat",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "expires_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_hash",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'T3 Environment'",- "generated": null,- "identity": null,- "name": "environment_label",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_http_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_ws_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(32)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_provider_kind",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "notifications_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "live_activities_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "false",- "generated": null,- "identity": null,- "name": "managed_tunnels_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_by_device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "activity_push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_start_queued_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_started_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ended_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_aggregate_json",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_live_activity_delivery_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'iOS device'",- "generated": null,- "identity": null,- "name": "label",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "platform",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ios_major_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "app_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_to_start_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "preferences_json",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "updated_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_agent_activity_rows_updated",- "entityType": "indexes",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "thread_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "created_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "source_job_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_source_job",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "expires_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "statementType": "add_column",+ "statementTarget": ["column", "public", "relay_mobile_devices", "label"],+ "writes": [+ "s|col|public.relay_mobile_devices.label",+ "n|col|public.relay_mobile_devices.label",+ "e|col|public.relay_mobile_devices.label"],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_dpop_proofs_expires_at",- "entityType": "indexes",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "nameExplicit": true,- "columns": [- {- "value": "credential_hash",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_hash",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "environment_public_key",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment_key",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_links_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_links"- },- {- "nameExplicit": true,- "columns": [- {- "value": "user_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_live_activities_user",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"- },- {- "nameExplicit": true,- "columns": [- {- "value": "activity_push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_live_activities_activity_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"- },- {- "nameExplicit": true,- "columns": [- {- "value": "user_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_user",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_to_start_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_to_start_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["environment_id", "environment_public_key", "thread_id"],- "nameExplicit": false,- "name": "relay_agent_activity_rows_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "columns": ["thumbprint", "jti"],- "nameExplicit": false,- "name": "relay_dpop_proofs_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_environment_links_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_environment_links"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_live_activities_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_live_activities"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_mobile_devices_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["id"],- "nameExplicit": false,- "name": "relay_delivery_attempts_pkey",- "schema": "public",- "table": "relay_delivery_attempts",- "entityType": "pks"- },- {- "columns": ["credential_id"],- "nameExplicit": false,- "name": "relay_environment_credentials_pkey",- "schema": "public",- "table": "relay_environment_credentials",- "entityType": "pks"+ "reads": ["n|tbl|public.relay_mobile_devices", "n|sch|public"]}],- "renames": []+ "deltas": [+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_mobile_devices",+ "name": "label",+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'iOS device'",+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ }+ ]}diff --git a/infra/relay/migrations/postgres/20260603035812_managed_endpoint_allocations/snapshot.json b/infra/relay/migrations/postgres/20260603035812_managed_endpoint_allocations/snapshot.jsonindex ead6f609684..40c128f66c7 100644--- a/infra/relay/migrations/postgres/20260603035812_managed_endpoint_allocations/snapshot.json+++ b/infra/relay/migrations/postgres/20260603035812_managed_endpoint_allocations/snapshot.json@@ -1,1453 +1,276 @@{- "version": "8",+ "type": "diff",+ "version": "9","dialect": "postgres","id": "385d476b-d4f6-48a3-99e6-0a95af4ee4e4","prevIds": ["e189638b-4700-4656-b86e-d8baa63f5fe4"],- "ddl": [- {- "isRlsEnabled": false,- "name": "relay_agent_activity_rows",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_delivery_attempts",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_dpop_proofs",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_credentials",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_links",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_live_activities",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_endpoint_allocations",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_mobile_devices",- "entityType": "tables",- "schema": "public"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "state_json",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(36)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "kind",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "source_job_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "token_suffix",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_status",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_reason",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "transport_error",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thumbprint",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "jti",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "iat",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "expires_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_hash",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'T3 Environment'",- "generated": null,- "identity": null,- "name": "environment_label",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_http_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_ws_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(32)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_provider_kind",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "notifications_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "live_activities_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "false",- "generated": null,- "identity": null,- "name": "managed_tunnels_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_by_device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "activity_push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_start_queued_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_started_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ended_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_aggregate_json",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_live_activity_delivery_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "hostname",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_name",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "dns_record_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ready_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'iOS device'",- "generated": null,- "identity": null,- "name": "label",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "platform",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ios_major_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "app_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_to_start_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "preferences_json",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "updated_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_agent_activity_rows_updated",- "entityType": "indexes",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "thread_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "created_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "source_job_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_source_job",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "expires_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_dpop_proofs_expires_at",- "entityType": "indexes",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "nameExplicit": true,- "columns": [- {- "value": "credential_hash",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "footprints": [+ {+ "statementType": "create_table",+ "statementTarget": ["table", "public", "relay_managed_endpoint_allocations"],+ "writes": [+ "s|tbl|public.relay_managed_endpoint_allocations",+ "n|tbl|public.relay_managed_endpoint_allocations",+ "e|tbl|public.relay_managed_endpoint_allocations",+ "n|rel|public.relay_managed_endpoint_allocations",+ "n|type|public.relay_managed_endpoint_allocations",+ "n|rel|public.relay_managed_endpoint_allocations_pkey"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_hash",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"+ "reads": ["n|sch|public"]},{- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "statementType": "create_index",+ "statementTarget": [+ "index",+ "public",+ "relay_managed_endpoint_allocations",+ "idx_relay_managed_endpoint_allocations_hostname"],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "environment_public_key",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment_key",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_links_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_links"- },- {- "nameExplicit": true,- "columns": [- {- "value": "user_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "writes": [+ "s|idx|public.idx_relay_managed_endpoint_allocations_hostname",+ "n|idx|public.idx_relay_managed_endpoint_allocations_hostname",+ "e|idx|public.idx_relay_managed_endpoint_allocations_hostname",+ "n|rel|public.idx_relay_managed_endpoint_allocations_hostname"],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_live_activities_user",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"- },- {- "nameExplicit": true,- "columns": [- {- "value": "activity_push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "reads": [+ "n|tbl|public.relay_managed_endpoint_allocations",+ "n|sch|public",+ "n|col|public.relay_managed_endpoint_allocations.hostname"+ ]+ },+ {+ "statementType": "create_index",+ "statementTarget": [+ "index",+ "public",+ "relay_managed_endpoint_allocations",+ "idx_relay_managed_endpoint_allocations_tunnel_name"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_live_activities_activity_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"- },- {- "nameExplicit": true,- "columns": [- {- "value": "hostname",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "writes": [+ "s|idx|public.idx_relay_managed_endpoint_allocations_tunnel_name",+ "n|idx|public.idx_relay_managed_endpoint_allocations_tunnel_name",+ "e|idx|public.idx_relay_managed_endpoint_allocations_tunnel_name",+ "n|rel|public.idx_relay_managed_endpoint_allocations_tunnel_name"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_hostname",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "tunnel_name",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_tunnel_name",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "user_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_user",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_to_start_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_to_start_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["environment_id", "environment_public_key", "thread_id"],- "nameExplicit": false,- "name": "relay_agent_activity_rows_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "columns": ["thumbprint", "jti"],- "nameExplicit": false,- "name": "relay_dpop_proofs_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_environment_links_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_environment_links"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_live_activities_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_live_activities"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_managed_endpoint_allocations_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_mobile_devices_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["id"],- "nameExplicit": false,- "name": "relay_delivery_attempts_pkey",- "schema": "public",- "table": "relay_delivery_attempts",- "entityType": "pks"- },- {- "columns": ["credential_id"],- "nameExplicit": false,- "name": "relay_environment_credentials_pkey",- "schema": "public",- "table": "relay_environment_credentials",- "entityType": "pks"+ "reads": [+ "n|tbl|public.relay_managed_endpoint_allocations",+ "n|sch|public",+ "n|col|public.relay_managed_endpoint_allocations.tunnel_name"+ ]}],- "renames": []+ "deltas": [+ {+ "op": "create",+ "row": {+ "schema": "public",+ "name": "relay_managed_endpoint_allocations",+ "isRlsEnabled": false,+ "entityType": "tables"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_endpoint_allocations",+ "name": "user_id",+ "type": "varchar(191)",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_endpoint_allocations",+ "name": "environment_id",+ "type": "varchar(191)",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_endpoint_allocations",+ "name": "hostname",+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_endpoint_allocations",+ "name": "tunnel_id",+ "type": "varchar(191)",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_endpoint_allocations",+ "name": "tunnel_name",+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_endpoint_allocations",+ "name": "dns_record_id",+ "type": "varchar(191)",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_endpoint_allocations",+ "name": "ready_at",+ "type": "varchar(64)",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_endpoint_allocations",+ "name": "created_at",+ "type": "varchar(64)",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_endpoint_allocations",+ "name": "updated_at",+ "type": "varchar(64)",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_endpoint_allocations",+ "name": "idx_relay_managed_endpoint_allocations_hostname",+ "nameExplicit": true,+ "columns": [+ {+ "value": "hostname",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "entityType": "indexes"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_endpoint_allocations",+ "name": "idx_relay_managed_endpoint_allocations_tunnel_name",+ "nameExplicit": true,+ "columns": [+ {+ "value": "tunnel_name",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": true,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "entityType": "indexes"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_endpoint_allocations",+ "name": "relay_managed_endpoint_allocations_pkey",+ "columns": ["user_id", "environment_id"],+ "nameExplicit": false,+ "entityType": "pks"+ }+ }+ ]}diff --git a/infra/relay/migrations/postgres/20260706061126_migration/snapshot.json b/infra/relay/migrations/postgres/20260706061126_migration/snapshot.jsonindex 0d75da1e486..1efd6827c15 100644--- a/infra/relay/migrations/postgres/20260706061126_migration/snapshot.json+++ b/infra/relay/migrations/postgres/20260706061126_migration/snapshot.json@@ -1,1479 +1,63 @@{+ "type": "diff",+ "version": "9","dialect": "postgres","id": "f4151a65-091a-4601-bde8-029b155255b0","prevIds": ["385d476b-d4f6-48a3-99e6-0a95af4ee4e4"],- "version": "8",- "ddl": [+ "footprints": [{- "isRlsEnabled": false,- "name": "relay_agent_activity_rows",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_delivery_attempts",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_dpop_proofs",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_credentials",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_links",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_live_activities",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_endpoint_allocations",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_mobile_devices",- "entityType": "tables",- "schema": "public"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "state_json",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(36)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "kind",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "source_job_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "token_suffix",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_status",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_reason",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "transport_error",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thumbprint",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "jti",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "iat",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "expires_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_hash",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'T3 Environment'",- "generated": null,- "identity": null,- "name": "environment_label",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_http_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_ws_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(32)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_provider_kind",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "notifications_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "live_activities_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "false",- "generated": null,- "identity": null,- "name": "managed_tunnels_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_by_device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "activity_push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_start_queued_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_started_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ended_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_aggregate_json",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_live_activity_delivery_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "hostname",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_name",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "dns_record_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ready_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'iOS device'",- "generated": null,- "identity": null,- "name": "label",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "platform",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ios_major_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "app_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "bundle_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "aps_environment",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_to_start_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "preferences_json",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "updated_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "statementType": "add_column",+ "statementTarget": ["column", "public", "relay_mobile_devices", "bundle_id"],+ "writes": [+ "s|col|public.relay_mobile_devices.bundle_id",+ "n|col|public.relay_mobile_devices.bundle_id",+ "e|col|public.relay_mobile_devices.bundle_id"],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_agent_activity_rows_updated",- "entityType": "indexes",- "schema": "public",- "table": "relay_agent_activity_rows"+ "reads": ["n|tbl|public.relay_mobile_devices", "n|sch|public"]},{- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "thread_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "created_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "statementType": "add_column",+ "statementTarget": ["column", "public", "relay_mobile_devices", "aps_environment"],+ "writes": [+ "s|col|public.relay_mobile_devices.aps_environment",+ "n|col|public.relay_mobile_devices.aps_environment",+ "e|col|public.relay_mobile_devices.aps_environment"],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "source_job_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_source_job",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "expires_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_dpop_proofs_expires_at",- "entityType": "indexes",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "nameExplicit": true,- "columns": [- {- "value": "credential_hash",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_hash",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "environment_public_key",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment_key",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_links_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_links"- },- {- "nameExplicit": true,- "columns": [- {- "value": "user_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_live_activities_user",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"- },- {- "nameExplicit": true,- "columns": [- {- "value": "activity_push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_live_activities_activity_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"- },- {- "nameExplicit": true,- "columns": [- {- "value": "hostname",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_hostname",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "tunnel_name",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_tunnel_name",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "user_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_user",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_to_start_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_to_start_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["environment_id", "environment_public_key", "thread_id"],- "nameExplicit": false,- "name": "relay_agent_activity_rows_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "columns": ["thumbprint", "jti"],- "nameExplicit": false,- "name": "relay_dpop_proofs_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_environment_links_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_environment_links"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_live_activities_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_live_activities"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_managed_endpoint_allocations_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_mobile_devices_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["id"],- "nameExplicit": false,- "name": "relay_delivery_attempts_pkey",- "schema": "public",- "table": "relay_delivery_attempts",- "entityType": "pks"- },- {- "columns": ["credential_id"],- "nameExplicit": false,- "name": "relay_environment_credentials_pkey",- "schema": "public",- "table": "relay_environment_credentials",- "entityType": "pks"+ "reads": ["n|tbl|public.relay_mobile_devices", "n|sch|public"]}],- "renames": []+ "deltas": [+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_mobile_devices",+ "name": "bundle_id",+ "type": "varchar(255)",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_mobile_devices",+ "name": "aps_environment",+ "type": "varchar(16)",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ }+ ]}diff --git a/infra/relay/migrations/postgres/20260727115225_migration/snapshot.json b/infra/relay/migrations/postgres/20260727115225_migration/snapshot.jsonindex 4dca2f9249d..a63b890ca75 100644--- a/infra/relay/migrations/postgres/20260727115225_migration/snapshot.json+++ b/infra/relay/migrations/postgres/20260727115225_migration/snapshot.json@@ -1,1545 +1,108 @@{+ "type": "diff",+ "version": "9","dialect": "postgres","id": "33575636-77b2-4756-8658-687165e6c9ff","prevIds": ["f4151a65-091a-4601-bde8-029b155255b0"],- "version": "8",- "ddl": [- {- "isRlsEnabled": false,- "name": "relay_agent_activity_rows",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_delivery_attempts",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_dpop_proofs",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_credentials",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_links",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_live_activities",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_endpoint_allocations",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_tunnel_limits",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_mobile_devices",- "entityType": "tables",- "schema": "public"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "state_json",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(36)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "kind",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "source_job_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "token_suffix",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_status",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_reason",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "transport_error",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thumbprint",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "jti",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "iat",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "expires_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_hash",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'T3 Environment'",- "generated": null,- "identity": null,- "name": "environment_label",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_http_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_ws_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(32)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_provider_kind",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "notifications_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "live_activities_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "false",- "generated": null,- "identity": null,- "name": "managed_tunnels_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_by_device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "activity_push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_start_queued_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_started_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ended_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_aggregate_json",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_live_activity_delivery_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "hostname",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_name",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "dns_record_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ready_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "max_tunnels",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'iOS device'",- "generated": null,- "identity": null,- "name": "label",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "platform",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ios_major_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "app_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "bundle_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "aps_environment",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_to_start_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "preferences_json",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "updated_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "footprints": [+ {+ "statementType": "create_table",+ "statementTarget": ["table", "public", "relay_managed_tunnel_limits"],+ "writes": [+ "s|tbl|public.relay_managed_tunnel_limits",+ "n|tbl|public.relay_managed_tunnel_limits",+ "e|tbl|public.relay_managed_tunnel_limits",+ "n|rel|public.relay_managed_tunnel_limits",+ "n|type|public.relay_managed_tunnel_limits",+ "n|rel|public.relay_managed_tunnel_limits_pkey"],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_agent_activity_rows_updated",- "entityType": "indexes",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "thread_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "created_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "source_job_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_source_job",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "expires_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_dpop_proofs_expires_at",- "entityType": "indexes",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "nameExplicit": true,- "columns": [- {- "value": "credential_hash",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_hash",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "environment_public_key",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment_key",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_links_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_links"- },- {- "nameExplicit": true,- "columns": [- {- "value": "user_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_live_activities_user",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"- },- {- "nameExplicit": true,- "columns": [- {- "value": "activity_push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_live_activities_activity_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"- },- {- "nameExplicit": true,- "columns": [- {- "value": "hostname",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_hostname",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "tunnel_name",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_tunnel_name",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "user_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_user",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_to_start_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_to_start_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["environment_id", "environment_public_key", "thread_id"],- "nameExplicit": false,- "name": "relay_agent_activity_rows_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "columns": ["thumbprint", "jti"],- "nameExplicit": false,- "name": "relay_dpop_proofs_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_environment_links_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_environment_links"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_live_activities_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_live_activities"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_managed_endpoint_allocations_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_mobile_devices_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["id"],- "nameExplicit": false,- "name": "relay_delivery_attempts_pkey",- "schema": "public",- "table": "relay_delivery_attempts",- "entityType": "pks"- },- {- "columns": ["credential_id"],- "nameExplicit": false,- "name": "relay_environment_credentials_pkey",- "schema": "public",- "table": "relay_environment_credentials",- "entityType": "pks"- },- {- "columns": ["user_id"],- "nameExplicit": false,- "name": "relay_managed_tunnel_limits_pkey",- "schema": "public",- "table": "relay_managed_tunnel_limits",- "entityType": "pks"+ "reads": ["n|sch|public"]}],- "renames": []+ "deltas": [+ {+ "op": "create",+ "row": {+ "schema": "public",+ "name": "relay_managed_tunnel_limits",+ "isRlsEnabled": false,+ "entityType": "tables"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_tunnel_limits",+ "name": "user_id",+ "type": "varchar(191)",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_tunnel_limits",+ "name": "max_tunnels",+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_tunnel_limits",+ "name": "created_at",+ "type": "varchar(64)",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_tunnel_limits",+ "name": "updated_at",+ "type": "varchar(64)",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_tunnel_limits",+ "name": "relay_managed_tunnel_limits_pkey",+ "columns": ["user_id"],+ "nameExplicit": false,+ "entityType": "pks"+ }+ }+ ]}diff --git a/infra/relay/migrations/postgres/20260727144838_migration/snapshot.json b/infra/relay/migrations/postgres/20260727144838_migration/snapshot.jsonindex d5be365ee29..94a7fb6fde8 100644--- a/infra/relay/migrations/postgres/20260727144838_migration/snapshot.json+++ b/infra/relay/migrations/postgres/20260727144838_migration/snapshot.json@@ -1,1503 +1,61 @@{+ "type": "diff",+ "version": "9","dialect": "postgres","id": "2374caff-40bf-423c-9255-55e76dddbc2a","prevIds": ["33575636-77b2-4756-8658-687165e6c9ff"],- "version": "8",- "ddl": [- {- "isRlsEnabled": false,- "name": "relay_agent_activity_rows",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_delivery_attempts",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_dpop_proofs",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_credentials",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_links",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_live_activities",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_endpoint_allocations",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_tunnel_limits",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_mobile_devices",- "entityType": "tables",- "schema": "public"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "state_json",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(36)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "kind",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "source_job_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "token_suffix",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_status",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_reason",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "transport_error",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thumbprint",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "jti",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "iat",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "expires_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_hash",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'T3 Environment'",- "generated": null,- "identity": null,- "name": "environment_label",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_http_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_ws_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(32)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_provider_kind",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "notifications_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "live_activities_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "false",- "generated": null,- "identity": null,- "name": "managed_tunnels_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_by_device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "activity_push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_start_queued_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_started_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ended_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_aggregate_json",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_live_activity_delivery_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "hostname",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_name",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "dns_record_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ready_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "max_tunnels",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'iOS device'",- "generated": null,- "identity": null,- "name": "label",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "platform",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ios_major_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "app_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "bundle_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "aps_environment",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_to_start_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "preferences_json",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "updated_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_agent_activity_rows_updated",- "entityType": "indexes",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "thread_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "created_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "source_job_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_source_job",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "expires_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_dpop_proofs_expires_at",- "entityType": "indexes",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "nameExplicit": true,- "columns": [- {- "value": "credential_hash",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_hash",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "environment_public_key",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment_key",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_links_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_links"- },- {- "nameExplicit": true,- "columns": [- {- "value": "activity_push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_live_activities_activity_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"- },- {- "nameExplicit": true,- "columns": [- {- "value": "hostname",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_hostname",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "tunnel_name",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_tunnel_name",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_to_start_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_to_start_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["environment_id", "environment_public_key", "thread_id"],- "nameExplicit": false,- "name": "relay_agent_activity_rows_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "columns": ["thumbprint", "jti"],- "nameExplicit": false,- "name": "relay_dpop_proofs_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_environment_links_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_environment_links"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_live_activities_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_live_activities"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_managed_endpoint_allocations_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_mobile_devices_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["id"],- "nameExplicit": false,- "name": "relay_delivery_attempts_pkey",- "schema": "public",- "table": "relay_delivery_attempts",- "entityType": "pks"- },+ "footprints": [+ {+ "statementType": "drop_index",+ "statementTarget": [+ "index",+ "public",+ "relay_live_activities",+ "idx_relay_live_activities_user"+ ],+ "writes": [+ "s|idx|public.idx_relay_live_activities_user",+ "n|idx|public.idx_relay_live_activities_user",+ "e|idx|public.idx_relay_live_activities_user",+ "n|rel|public.idx_relay_live_activities_user"+ ],+ "reads": [+ "e|tbl|public.relay_live_activities",+ "n|sch|public",+ "e|col|public.relay_live_activities.user_id"+ ],+ "sharedWrites": []+ },+ {+ "statementType": "drop_index",+ "statementTarget": [+ "index",+ "public",+ "relay_mobile_devices",+ "idx_relay_mobile_devices_user"+ ],+ "writes": [+ "s|idx|public.idx_relay_mobile_devices_user",+ "n|idx|public.idx_relay_mobile_devices_user",+ "e|idx|public.idx_relay_mobile_devices_user",+ "n|rel|public.idx_relay_mobile_devices_user"+ ],+ "reads": [+ "e|tbl|public.relay_mobile_devices",+ "n|sch|public",+ "e|col|public.relay_mobile_devices.user_id"+ ],+ "sharedWrites": []+ }+ ],+ "deltas": [{- "columns": ["credential_id"],- "nameExplicit": false,- "name": "relay_environment_credentials_pkey",- "schema": "public",- "table": "relay_environment_credentials",- "entityType": "pks"+ "op": "drop",+ "key": "indexes\u0000[\"public\",\"idx_relay_live_activities_user\"]"},{- "columns": ["user_id"],- "nameExplicit": false,- "name": "relay_managed_tunnel_limits_pkey",- "schema": "public",- "table": "relay_managed_tunnel_limits",- "entityType": "pks"+ "op": "drop",+ "key": "indexes\u0000[\"public\",\"idx_relay_mobile_devices_user\"]"}- ],- "renames": []+ ]}diff --git a/infra/relay/migrations/postgres/20260906042516_android_devices/snapshot.json b/infra/relay/migrations/postgres/20260906042516_android_devices/snapshot.jsonindex 9d89ffe61a1..0760153d0ee 100644--- a/infra/relay/migrations/postgres/20260906042516_android_devices/snapshot.json+++ b/infra/relay/migrations/postgres/20260906042516_android_devices/snapshot.json@@ -1,1516 +1,55 @@{- "version": "8",+ "type": "diff",+ "version": "9","dialect": "postgres","id": "1109ed23-036c-4c39-a459-52422a7ffd99","prevIds": ["2374caff-40bf-423c-9255-55e76dddbc2a"],- "ddl": [+ "footprints": [{- "isRlsEnabled": false,- "name": "relay_agent_activity_rows",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_delivery_attempts",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_dpop_proofs",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_credentials",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_links",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_live_activities",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_endpoint_allocations",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_tunnel_limits",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_mobile_devices",- "entityType": "tables",- "schema": "public"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "state_json",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(36)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "kind",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "source_job_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "token_suffix",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_status",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_reason",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "transport_error",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thumbprint",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "jti",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "iat",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "expires_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_hash",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'T3 Environment'",- "generated": null,- "identity": null,- "name": "environment_label",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_http_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_ws_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(32)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_provider_kind",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "notifications_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "live_activities_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "false",- "generated": null,- "identity": null,- "name": "managed_tunnels_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_by_device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "activity_push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_start_queued_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_started_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ended_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_aggregate_json",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_live_activity_delivery_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "hostname",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_name",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "dns_record_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ready_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "max_tunnels",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'iOS device'",- "generated": null,- "identity": null,- "name": "label",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "platform",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ios_major_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "android_api_level",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "app_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "bundle_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "aps_environment",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_to_start_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "preferences_json",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "updated_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_agent_activity_rows_updated",- "entityType": "indexes",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "thread_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "created_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "source_job_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_source_job",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "expires_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_dpop_proofs_expires_at",- "entityType": "indexes",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "nameExplicit": true,- "columns": [- {- "value": "credential_hash",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_hash",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "environment_public_key",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment_key",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_links_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_links"- },- {- "nameExplicit": true,- "columns": [- {- "value": "activity_push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_live_activities_activity_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"- },- {- "nameExplicit": true,- "columns": [- {- "value": "hostname",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "statementType": "add_column",+ "statementTarget": ["column", "public", "relay_mobile_devices", "android_api_level"],+ "writes": [+ "s|col|public.relay_mobile_devices.android_api_level",+ "n|col|public.relay_mobile_devices.android_api_level",+ "e|col|public.relay_mobile_devices.android_api_level"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_hostname",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"+ "reads": ["n|tbl|public.relay_mobile_devices", "n|sch|public"]},{- "nameExplicit": true,- "columns": [- {- "value": "tunnel_name",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "statementType": "alter_column",+ "statementTarget": ["column", "public", "relay_mobile_devices", "ios_major_version"],+ "writes": ["s|colprop|public.relay_mobile_devices.ios_major_version.notNull"],+ "reads": [+ "n|tbl|public.relay_mobile_devices",+ "n|sch|public",+ "n|col|public.relay_mobile_devices.ios_major_version"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_tunnel_name",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_to_start_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_to_start_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["environment_id", "environment_public_key", "thread_id"],- "nameExplicit": false,- "name": "relay_agent_activity_rows_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "columns": ["thumbprint", "jti"],- "nameExplicit": false,- "name": "relay_dpop_proofs_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_environment_links_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_environment_links"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_live_activities_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_live_activities"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_managed_endpoint_allocations_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_mobile_devices_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["id"],- "nameExplicit": false,- "name": "relay_delivery_attempts_pkey",- "schema": "public",- "table": "relay_delivery_attempts",- "entityType": "pks"- },- {- "columns": ["credential_id"],- "nameExplicit": false,- "name": "relay_environment_credentials_pkey",- "schema": "public",- "table": "relay_environment_credentials",- "entityType": "pks"- },- {- "columns": ["user_id"],- "nameExplicit": false,- "name": "relay_managed_tunnel_limits_pkey",- "schema": "public",- "table": "relay_managed_tunnel_limits",- "entityType": "pks"+ "sqlHash": "b777cbc1f38bf2c6"}],- "renames": []+ "deltas": [+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_mobile_devices",+ "name": "android_api_level",+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "alter",+ "key": "columns\u0000[\"public\",\"relay_mobile_devices\",\"ios_major_version\"]",+ "set": {+ "notNull": false+ }+ }+ ]}diff --git a/infra/relay/migrations/postgres/20260918175607_long_thread_ids/snapshot.json b/infra/relay/migrations/postgres/20260918175607_long_thread_ids/snapshot.jsonindex 4e56b797b94..2043fa7d485 100644--- a/infra/relay/migrations/postgres/20260918175607_long_thread_ids/snapshot.json+++ b/infra/relay/migrations/postgres/20260918175607_long_thread_ids/snapshot.json@@ -1,1516 +1,53 @@{- "version": "8",+ "type": "diff",+ "version": "9","dialect": "postgres","id": "4b6d0d21-8d78-4499-9dde-b42bcf633d05","prevIds": ["1109ed23-036c-4c39-a459-52422a7ffd99"],- "ddl": [+ "footprints": [{- "isRlsEnabled": false,- "name": "relay_agent_activity_rows",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_delivery_attempts",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_dpop_proofs",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_credentials",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_links",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_live_activities",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_endpoint_allocations",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_tunnel_limits",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_mobile_devices",- "entityType": "tables",- "schema": "public"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(512)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "state_json",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(36)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(512)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "kind",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "source_job_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "token_suffix",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_status",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_reason",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "transport_error",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thumbprint",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "jti",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "iat",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "expires_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_hash",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'T3 Environment'",- "generated": null,- "identity": null,- "name": "environment_label",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_http_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_ws_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(32)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_provider_kind",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "notifications_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "live_activities_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "false",- "generated": null,- "identity": null,- "name": "managed_tunnels_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_by_device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "activity_push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_start_queued_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_started_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ended_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_aggregate_json",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_live_activity_delivery_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "hostname",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_name",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "dns_record_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ready_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "max_tunnels",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'iOS device'",- "generated": null,- "identity": null,- "name": "label",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "platform",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ios_major_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "android_api_level",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "app_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "bundle_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "aps_environment",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_to_start_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "preferences_json",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "updated_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "statementType": "alter_column",+ "statementTarget": ["column", "public", "relay_agent_activity_rows", "thread_id"],+ "writes": [+ "s|colprop|public.relay_agent_activity_rows.thread_id.type",+ "s|colprop|public.relay_agent_activity_rows.thread_id.default"],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_agent_activity_rows_updated",- "entityType": "indexes",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "thread_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "created_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "reads": [+ "n|tbl|public.relay_agent_activity_rows",+ "n|sch|public",+ "n|col|public.relay_agent_activity_rows.thread_id"],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"+ "sqlHash": "df6de7390e33e593"},{- "nameExplicit": true,- "columns": [- {- "value": "source_job_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "statementType": "alter_column",+ "statementTarget": ["column", "public", "relay_delivery_attempts", "thread_id"],+ "writes": [+ "s|colprop|public.relay_delivery_attempts.thread_id.type",+ "s|colprop|public.relay_delivery_attempts.thread_id.default"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_source_job",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "expires_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_dpop_proofs_expires_at",- "entityType": "indexes",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "nameExplicit": true,- "columns": [- {- "value": "credential_hash",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "reads": [+ "n|tbl|public.relay_delivery_attempts",+ "n|sch|public",+ "n|col|public.relay_delivery_attempts.thread_id"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_hash",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "environment_public_key",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment_key",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_links_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_links"- },- {- "nameExplicit": true,- "columns": [- {- "value": "activity_push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_live_activities_activity_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"- },- {- "nameExplicit": true,- "columns": [- {- "value": "hostname",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_hostname",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "tunnel_name",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_tunnel_name",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_to_start_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_to_start_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["environment_id", "environment_public_key", "thread_id"],- "nameExplicit": false,- "name": "relay_agent_activity_rows_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "columns": ["thumbprint", "jti"],- "nameExplicit": false,- "name": "relay_dpop_proofs_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_environment_links_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_environment_links"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_live_activities_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_live_activities"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_managed_endpoint_allocations_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_mobile_devices_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["id"],- "nameExplicit": false,- "name": "relay_delivery_attempts_pkey",- "schema": "public",- "table": "relay_delivery_attempts",- "entityType": "pks"- },+ "sqlHash": "81b2354fef2a0f7e"+ }+ ],+ "deltas": [{- "columns": ["credential_id"],- "nameExplicit": false,- "name": "relay_environment_credentials_pkey",- "schema": "public",- "table": "relay_environment_credentials",- "entityType": "pks"+ "op": "alter",+ "key": "columns\u0000[\"public\",\"relay_agent_activity_rows\",\"thread_id\"]",+ "set": {+ "type": "varchar(512)"+ }},{- "columns": ["user_id"],- "nameExplicit": false,- "name": "relay_managed_tunnel_limits_pkey",- "schema": "public",- "table": "relay_managed_tunnel_limits",- "entityType": "pks"+ "op": "alter",+ "key": "columns\u0000[\"public\",\"relay_delivery_attempts\",\"thread_id\"]",+ "set": {+ "type": "varchar(512)"+ }}- ],- "renames": []+ ]}diff --git a/infra/relay/migrations/postgres/20260919015455_managed_endpoint_recovery/snapshot.json b/infra/relay/migrations/postgres/20260919015455_managed_endpoint_recovery/snapshot.jsonindex c0660307197..7e2935a6770 100644--- a/infra/relay/migrations/postgres/20260919015455_managed_endpoint_recovery/snapshot.json+++ b/infra/relay/migrations/postgres/20260919015455_managed_endpoint_recovery/snapshot.json@@ -1,1568 +1,125 @@{+ "type": "diff",+ "version": "9","dialect": "postgres","id": "3809c51e-3821-4a08-818d-e5d28dd3e9b4","prevIds": ["4b6d0d21-8d78-4499-9dde-b42bcf633d05"],- "version": "8",- "ddl": [- {- "isRlsEnabled": false,- "name": "relay_agent_activity_rows",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_delivery_attempts",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_dpop_proofs",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_credentials",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_links",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_live_activities",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_endpoint_allocations",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_tunnel_limits",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_mobile_devices",- "entityType": "tables",- "schema": "public"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(512)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "state_json",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(36)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(512)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "kind",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "source_job_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "token_suffix",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_status",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_reason",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "transport_error",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thumbprint",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "jti",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "iat",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "expires_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_hash",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'T3 Environment'",- "generated": null,- "identity": null,- "name": "environment_label",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_http_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_ws_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(32)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_provider_kind",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "notifications_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "live_activities_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "false",- "generated": null,- "identity": null,- "name": "managed_tunnels_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_by_device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "activity_push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_start_queued_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_started_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ended_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_aggregate_json",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_live_activity_delivery_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "hostname",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_name",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "dns_record_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ready_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "recovery_enabled_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "recovery_environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "origin",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "0",- "generated": null,- "identity": null,- "name": "generation",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "max_tunnels",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'iOS device'",- "generated": null,- "identity": null,- "name": "label",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "platform",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ios_major_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "android_api_level",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "app_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "bundle_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "aps_environment",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_to_start_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "preferences_json",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "updated_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_agent_activity_rows_updated",- "entityType": "indexes",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "thread_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "created_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "source_job_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_source_job",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "expires_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_dpop_proofs_expires_at",- "entityType": "indexes",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "nameExplicit": true,- "columns": [- {- "value": "credential_hash",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_hash",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "footprints": [+ {+ "statementType": "add_column",+ "statementTarget": [+ "column",+ "public",+ "relay_managed_endpoint_allocations",+ "recovery_enabled_at"],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "environment_public_key",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment_key",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "writes": [+ "s|col|public.relay_managed_endpoint_allocations.recovery_enabled_at",+ "n|col|public.relay_managed_endpoint_allocations.recovery_enabled_at",+ "e|col|public.relay_managed_endpoint_allocations.recovery_enabled_at"],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_links_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_links"+ "reads": ["n|tbl|public.relay_managed_endpoint_allocations", "n|sch|public"]},{- "nameExplicit": true,- "columns": [- {- "value": "activity_push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "statementType": "add_column",+ "statementTarget": [+ "column",+ "public",+ "relay_managed_endpoint_allocations",+ "recovery_environment_public_key"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_live_activities_activity_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"- },- {- "nameExplicit": true,- "columns": [- {- "value": "hostname",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "writes": [+ "s|col|public.relay_managed_endpoint_allocations.recovery_environment_public_key",+ "n|col|public.relay_managed_endpoint_allocations.recovery_environment_public_key",+ "e|col|public.relay_managed_endpoint_allocations.recovery_environment_public_key"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_hostname",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"+ "reads": ["n|tbl|public.relay_managed_endpoint_allocations", "n|sch|public"]},{- "nameExplicit": true,- "columns": [- {- "value": "tunnel_name",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "statementType": "add_column",+ "statementTarget": ["column", "public", "relay_managed_endpoint_allocations", "origin"],+ "writes": [+ "s|col|public.relay_managed_endpoint_allocations.origin",+ "n|col|public.relay_managed_endpoint_allocations.origin",+ "e|col|public.relay_managed_endpoint_allocations.origin"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_tunnel_name",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"+ "reads": ["n|tbl|public.relay_managed_endpoint_allocations", "n|sch|public"]},{- "nameExplicit": true,- "columns": [- {- "value": "push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "statementType": "add_column",+ "statementTarget": ["column", "public", "relay_managed_endpoint_allocations", "generation"],+ "writes": [+ "s|col|public.relay_managed_endpoint_allocations.generation",+ "n|col|public.relay_managed_endpoint_allocations.generation",+ "e|col|public.relay_managed_endpoint_allocations.generation"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_to_start_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_to_start_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["environment_id", "environment_public_key", "thread_id"],- "nameExplicit": false,- "name": "relay_agent_activity_rows_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "columns": ["thumbprint", "jti"],- "nameExplicit": false,- "name": "relay_dpop_proofs_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_environment_links_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_environment_links"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_live_activities_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_live_activities"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_managed_endpoint_allocations_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_mobile_devices_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["id"],- "nameExplicit": false,- "name": "relay_delivery_attempts_pkey",- "schema": "public",- "table": "relay_delivery_attempts",- "entityType": "pks"- },- {- "columns": ["credential_id"],- "nameExplicit": false,- "name": "relay_environment_credentials_pkey",- "schema": "public",- "table": "relay_environment_credentials",- "entityType": "pks"- },- {- "columns": ["user_id"],- "nameExplicit": false,- "name": "relay_managed_tunnel_limits_pkey",- "schema": "public",- "table": "relay_managed_tunnel_limits",- "entityType": "pks"+ "reads": ["n|tbl|public.relay_managed_endpoint_allocations", "n|sch|public"]}],- "renames": []+ "deltas": [+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_endpoint_allocations",+ "name": "recovery_enabled_at",+ "type": "varchar(64)",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_endpoint_allocations",+ "name": "recovery_environment_public_key",+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_endpoint_allocations",+ "name": "origin",+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_endpoint_allocations",+ "name": "generation",+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ }+ ]}diff --git a/infra/relay/migrations/postgres/20261004061459_hold_webhooks_while_offline/snapshot.json b/infra/relay/migrations/postgres/20261004061459_hold_webhooks_while_offline/snapshot.jsonindex 21c7a374717..7fe6cdcd7ee 100644--- a/infra/relay/migrations/postgres/20261004061459_hold_webhooks_while_offline/snapshot.json+++ b/infra/relay/migrations/postgres/20261004061459_hold_webhooks_while_offline/snapshot.json@@ -1,1581 +1,42 @@{- "version": "8",+ "type": "diff",+ "version": "9","dialect": "postgres","id": "13972659-45db-4ce9-9818-523b450bceca","prevIds": ["3809c51e-3821-4a08-818d-e5d28dd3e9b4"],- "ddl": [+ "footprints": [{- "isRlsEnabled": false,- "name": "relay_agent_activity_rows",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_delivery_attempts",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_dpop_proofs",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_credentials",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_links",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_live_activities",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_endpoint_allocations",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_tunnel_limits",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_mobile_devices",- "entityType": "tables",- "schema": "public"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(512)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "state_json",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(36)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(512)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "kind",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "source_job_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "token_suffix",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_status",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_reason",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "transport_error",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thumbprint",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "jti",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "iat",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "expires_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_hash",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'T3 Environment'",- "generated": null,- "identity": null,- "name": "environment_label",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_http_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_ws_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(32)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_provider_kind",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "notifications_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "live_activities_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "false",- "generated": null,- "identity": null,- "name": "managed_tunnels_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "false",- "generated": null,- "identity": null,- "name": "hold_webhooks_while_offline",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_by_device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "activity_push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_start_queued_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_started_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ended_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_aggregate_json",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_live_activity_delivery_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "hostname",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_name",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "dns_record_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ready_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "recovery_enabled_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "recovery_environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "origin",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "0",- "generated": null,- "identity": null,- "name": "generation",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "max_tunnels",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'iOS device'",- "generated": null,- "identity": null,- "name": "label",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "platform",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ios_major_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "android_api_level",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "app_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "bundle_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "aps_environment",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_to_start_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "preferences_json",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "updated_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_agent_activity_rows_updated",- "entityType": "indexes",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "thread_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "created_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "source_job_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_source_job",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "expires_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_dpop_proofs_expires_at",- "entityType": "indexes",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "nameExplicit": true,- "columns": [- {- "value": "credential_hash",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_hash",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "environment_public_key",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment_key",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_links_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_links"- },- {- "nameExplicit": true,- "columns": [- {- "value": "activity_push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_live_activities_activity_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"- },- {- "nameExplicit": true,- "columns": [- {- "value": "hostname",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_hostname",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "tunnel_name",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_tunnel_name",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "statementType": "add_column",+ "statementTarget": [+ "column",+ "public",+ "relay_environment_links",+ "hold_webhooks_while_offline"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_to_start_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "writes": [+ "s|col|public.relay_environment_links.hold_webhooks_while_offline",+ "n|col|public.relay_environment_links.hold_webhooks_while_offline",+ "e|col|public.relay_environment_links.hold_webhooks_while_offline"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_to_start_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["environment_id", "environment_public_key", "thread_id"],- "nameExplicit": false,- "name": "relay_agent_activity_rows_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "columns": ["thumbprint", "jti"],- "nameExplicit": false,- "name": "relay_dpop_proofs_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_environment_links_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_environment_links"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_live_activities_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_live_activities"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_managed_endpoint_allocations_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_mobile_devices_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["id"],- "nameExplicit": false,- "name": "relay_delivery_attempts_pkey",- "schema": "public",- "table": "relay_delivery_attempts",- "entityType": "pks"- },- {- "columns": ["credential_id"],- "nameExplicit": false,- "name": "relay_environment_credentials_pkey",- "schema": "public",- "table": "relay_environment_credentials",- "entityType": "pks"- },- {- "columns": ["user_id"],- "nameExplicit": false,- "name": "relay_managed_tunnel_limits_pkey",- "schema": "public",- "table": "relay_managed_tunnel_limits",- "entityType": "pks"+ "reads": ["n|tbl|public.relay_environment_links", "n|sch|public"]}],- "renames": []+ "deltas": [+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_environment_links",+ "name": "hold_webhooks_while_offline",+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ }+ ]}diff --git a/infra/relay/migrations/postgres/20261005232034_managed_endpoint_tunnel_released_at/snapshot.json b/infra/relay/migrations/postgres/20261005232034_managed_endpoint_tunnel_released_at/snapshot.jsonindex 5f4673a9879..7dfc4ef2bc2 100644--- a/infra/relay/migrations/postgres/20261005232034_managed_endpoint_tunnel_released_at/snapshot.json+++ b/infra/relay/migrations/postgres/20261005232034_managed_endpoint_tunnel_released_at/snapshot.json@@ -1,1594 +1,42 @@{- "version": "8",+ "type": "diff",+ "version": "9","dialect": "postgres","id": "7b10c420-1566-4dfc-8e9c-c73efa561d3b","prevIds": ["13972659-45db-4ce9-9818-523b450bceca"],- "ddl": [+ "footprints": [{- "isRlsEnabled": false,- "name": "relay_agent_activity_rows",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_delivery_attempts",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_dpop_proofs",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_credentials",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_links",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_live_activities",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_endpoint_allocations",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_tunnel_limits",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_mobile_devices",- "entityType": "tables",- "schema": "public"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(512)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "state_json",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(36)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(512)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "kind",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "source_job_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "token_suffix",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_status",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_reason",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "transport_error",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thumbprint",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "jti",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "iat",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "expires_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_hash",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'T3 Environment'",- "generated": null,- "identity": null,- "name": "environment_label",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_http_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_ws_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(32)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_provider_kind",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "notifications_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "live_activities_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "false",- "generated": null,- "identity": null,- "name": "managed_tunnels_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "false",- "generated": null,- "identity": null,- "name": "hold_webhooks_while_offline",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_by_device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "activity_push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_start_queued_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_started_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ended_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_aggregate_json",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_live_activity_delivery_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "hostname",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_name",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "dns_record_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ready_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "recovery_enabled_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "recovery_environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_released_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "origin",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "0",- "generated": null,- "identity": null,- "name": "generation",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "max_tunnels",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'iOS device'",- "generated": null,- "identity": null,- "name": "label",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "platform",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ios_major_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "android_api_level",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "app_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "bundle_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "aps_environment",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_to_start_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "preferences_json",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "updated_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "statementType": "add_column",+ "statementTarget": [+ "column",+ "public",+ "relay_managed_endpoint_allocations",+ "tunnel_released_at"],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_agent_activity_rows_updated",- "entityType": "indexes",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "thread_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "created_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "writes": [+ "s|col|public.relay_managed_endpoint_allocations.tunnel_released_at",+ "n|col|public.relay_managed_endpoint_allocations.tunnel_released_at",+ "e|col|public.relay_managed_endpoint_allocations.tunnel_released_at"],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "source_job_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_source_job",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "expires_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_dpop_proofs_expires_at",- "entityType": "indexes",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "nameExplicit": true,- "columns": [- {- "value": "credential_hash",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_hash",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "environment_public_key",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment_key",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_links_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_links"- },- {- "nameExplicit": true,- "columns": [- {- "value": "activity_push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_live_activities_activity_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"- },- {- "nameExplicit": true,- "columns": [- {- "value": "hostname",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_hostname",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "tunnel_name",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_tunnel_name",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_to_start_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_to_start_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["environment_id", "environment_public_key", "thread_id"],- "nameExplicit": false,- "name": "relay_agent_activity_rows_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "columns": ["thumbprint", "jti"],- "nameExplicit": false,- "name": "relay_dpop_proofs_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_environment_links_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_environment_links"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_live_activities_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_live_activities"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_managed_endpoint_allocations_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_mobile_devices_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["id"],- "nameExplicit": false,- "name": "relay_delivery_attempts_pkey",- "schema": "public",- "table": "relay_delivery_attempts",- "entityType": "pks"- },- {- "columns": ["credential_id"],- "nameExplicit": false,- "name": "relay_environment_credentials_pkey",- "schema": "public",- "table": "relay_environment_credentials",- "entityType": "pks"- },- {- "columns": ["user_id"],- "nameExplicit": false,- "name": "relay_managed_tunnel_limits_pkey",- "schema": "public",- "table": "relay_managed_tunnel_limits",- "entityType": "pks"+ "reads": ["n|tbl|public.relay_managed_endpoint_allocations", "n|sch|public"]}],- "renames": []+ "deltas": [+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_managed_endpoint_allocations",+ "name": "tunnel_released_at",+ "type": "varchar(64)",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ }+ ]}diff --git a/infra/relay/migrations/postgres/20261020013101_upstream_api_pauses/snapshot.json b/infra/relay/migrations/postgres/20261020013101_upstream_api_pauses/snapshot.jsonindex 84acbfa6fd4..a51ea5a1bae 100644--- a/infra/relay/migrations/postgres/20261020013101_upstream_api_pauses/snapshot.json+++ b/infra/relay/migrations/postgres/20261020013101_upstream_api_pauses/snapshot.json@@ -1,1634 +1,76 @@{- "version": "8",+ "type": "diff",+ "version": "9","dialect": "postgres","id": "f8594baa-6f4a-4a0d-a7f0-0aa717dfe785","prevIds": ["7b10c420-1566-4dfc-8e9c-c73efa561d3b"],- "ddl": [- {- "isRlsEnabled": false,- "name": "relay_agent_activity_rows",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_delivery_attempts",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_dpop_proofs",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_credentials",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_links",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_live_activities",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_endpoint_allocations",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_tunnel_limits",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_mobile_devices",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_upstream_api_pauses",- "entityType": "tables",- "schema": "public"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(512)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "state_json",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(36)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(512)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "kind",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "source_job_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "token_suffix",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_status",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_reason",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "transport_error",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thumbprint",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "jti",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "iat",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "expires_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_hash",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'T3 Environment'",- "generated": null,- "identity": null,- "name": "environment_label",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_http_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_ws_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(32)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_provider_kind",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "notifications_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "live_activities_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "false",- "generated": null,- "identity": null,- "name": "managed_tunnels_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "false",- "generated": null,- "identity": null,- "name": "hold_webhooks_while_offline",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_by_device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "activity_push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_start_queued_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_started_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ended_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_aggregate_json",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_live_activity_delivery_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "hostname",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_name",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "dns_record_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ready_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "recovery_enabled_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "recovery_environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_released_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "origin",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "0",- "generated": null,- "identity": null,- "name": "generation",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "max_tunnels",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'iOS device'",- "generated": null,- "identity": null,- "name": "label",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "platform",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ios_major_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "android_api_level",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "app_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "bundle_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "aps_environment",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_to_start_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "preferences_json",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "api",- "entityType": "columns",- "schema": "public",- "table": "relay_upstream_api_pauses"- },- {- "type": "bigint",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "paused_until_ms",- "entityType": "columns",- "schema": "public",- "table": "relay_upstream_api_pauses"- },- {- "nameExplicit": true,- "columns": [- {- "value": "updated_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_agent_activity_rows_updated",- "entityType": "indexes",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "thread_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "created_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "source_job_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_source_job",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "expires_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_dpop_proofs_expires_at",- "entityType": "indexes",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "nameExplicit": true,- "columns": [- {- "value": "credential_hash",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_hash",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "environment_public_key",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment_key",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_links_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_links"- },- {- "nameExplicit": true,- "columns": [- {- "value": "activity_push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_live_activities_activity_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"- },- {- "nameExplicit": true,- "columns": [- {- "value": "hostname",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_hostname",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "tunnel_name",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_tunnel_name",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "footprints": [+ {+ "statementType": "create_table",+ "statementTarget": ["table", "public", "relay_upstream_api_pauses"],+ "writes": [+ "s|tbl|public.relay_upstream_api_pauses",+ "n|tbl|public.relay_upstream_api_pauses",+ "e|tbl|public.relay_upstream_api_pauses",+ "n|rel|public.relay_upstream_api_pauses",+ "n|type|public.relay_upstream_api_pauses",+ "n|rel|public.relay_upstream_api_pauses_pkey"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_to_start_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_to_start_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["environment_id", "environment_public_key", "thread_id"],- "nameExplicit": false,- "name": "relay_agent_activity_rows_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "columns": ["thumbprint", "jti"],- "nameExplicit": false,- "name": "relay_dpop_proofs_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_environment_links_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_environment_links"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_live_activities_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_live_activities"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_managed_endpoint_allocations_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_mobile_devices_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["id"],- "nameExplicit": false,- "name": "relay_delivery_attempts_pkey",- "schema": "public",- "table": "relay_delivery_attempts",- "entityType": "pks"- },- {- "columns": ["credential_id"],- "nameExplicit": false,- "name": "relay_environment_credentials_pkey",- "schema": "public",- "table": "relay_environment_credentials",- "entityType": "pks"- },- {- "columns": ["user_id"],- "nameExplicit": false,- "name": "relay_managed_tunnel_limits_pkey",- "schema": "public",- "table": "relay_managed_tunnel_limits",- "entityType": "pks"- },- {- "columns": ["api"],- "nameExplicit": false,- "name": "relay_upstream_api_pauses_pkey",- "schema": "public",- "table": "relay_upstream_api_pauses",- "entityType": "pks"+ "reads": ["n|sch|public"]}],- "renames": []+ "deltas": [+ {+ "op": "create",+ "row": {+ "schema": "public",+ "name": "relay_upstream_api_pauses",+ "isRlsEnabled": false,+ "entityType": "tables"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_upstream_api_pauses",+ "name": "api",+ "type": "varchar(64)",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_upstream_api_pauses",+ "name": "paused_until_ms",+ "type": "bigint",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "entityType": "columns"+ }+ },+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_upstream_api_pauses",+ "name": "relay_upstream_api_pauses_pkey",+ "columns": ["api"],+ "nameExplicit": false,+ "entityType": "pks"+ }+ }+ ]}diff --git a/infra/relay/migrations/postgres/20261027210820_delivery_attempts_retention/snapshot.json b/infra/relay/migrations/postgres/20261027210820_delivery_attempts_retention/snapshot.jsonindex 05c1ee2d059..5fd867bea8f 100644--- a/infra/relay/migrations/postgres/20261027210820_delivery_attempts_retention/snapshot.json+++ b/infra/relay/migrations/postgres/20261027210820_delivery_attempts_retention/snapshot.json@@ -1,1571 +1,133 @@{- "version": "8",+ "type": "diff",+ "version": "9","dialect": "postgres","id": "7d8c1702-6f47-4453-a8ee-66ce5e3bfb41","prevIds": ["f8594baa-6f4a-4a0d-a7f0-0aa717dfe785"],- "ddl": [- {- "isRlsEnabled": false,- "name": "relay_agent_activity_rows",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_delivery_attempts",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_dpop_proofs",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_credentials",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_links",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_live_activities",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_endpoint_allocations",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_tunnel_limits",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_mobile_devices",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_upstream_api_pauses",- "entityType": "tables",- "schema": "public"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(512)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "state_json",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(36)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(512)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "kind",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "source_job_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "token_suffix",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_status",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_reason",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "transport_error",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thumbprint",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "jti",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "iat",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "expires_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_hash",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'T3 Environment'",- "generated": null,- "identity": null,- "name": "environment_label",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_http_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_ws_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(32)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_provider_kind",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "notifications_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "live_activities_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "false",- "generated": null,- "identity": null,- "name": "managed_tunnels_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "false",- "generated": null,- "identity": null,- "name": "hold_webhooks_while_offline",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_by_device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "activity_push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_start_queued_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_started_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ended_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_aggregate_json",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_live_activity_delivery_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "hostname",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_name",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "dns_record_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ready_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "recovery_enabled_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "recovery_environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_released_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "origin",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "0",- "generated": null,- "identity": null,- "name": "generation",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "max_tunnels",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'iOS device'",- "generated": null,- "identity": null,- "name": "label",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "platform",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ios_major_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "android_api_level",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "app_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "bundle_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "aps_environment",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_to_start_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "preferences_json",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "api",- "entityType": "columns",- "schema": "public",- "table": "relay_upstream_api_pauses"- },- {- "type": "bigint",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "paused_until_ms",- "entityType": "columns",- "schema": "public",- "table": "relay_upstream_api_pauses"- },- {- "nameExplicit": true,- "columns": [- {- "value": "created_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "footprints": [+ {+ "statementType": "drop_index",+ "statementTarget": [+ "index",+ "public",+ "relay_delivery_attempts",+ "idx_relay_delivery_attempts_environment"],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_created",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "source_job_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "writes": [+ "s|idx|public.idx_relay_delivery_attempts_environment",+ "n|idx|public.idx_relay_delivery_attempts_environment",+ "e|idx|public.idx_relay_delivery_attempts_environment",+ "n|rel|public.idx_relay_delivery_attempts_environment"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_source_job",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "expires_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "reads": [+ "e|tbl|public.relay_delivery_attempts",+ "n|sch|public",+ "e|col|public.relay_delivery_attempts.environment_id",+ "e|col|public.relay_delivery_attempts.thread_id",+ "e|col|public.relay_delivery_attempts.created_at"],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_dpop_proofs_expires_at",- "entityType": "indexes",- "schema": "public",- "table": "relay_dpop_proofs"+ "sharedWrites": []},{- "nameExplicit": true,- "columns": [- {- "value": "credential_hash",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "statementType": "drop_index",+ "statementTarget": [+ "index",+ "public",+ "relay_agent_activity_rows",+ "idx_relay_agent_activity_rows_updated"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_hash",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "environment_public_key",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "writes": [+ "s|idx|public.idx_relay_agent_activity_rows_updated",+ "n|idx|public.idx_relay_agent_activity_rows_updated",+ "e|idx|public.idx_relay_agent_activity_rows_updated",+ "n|rel|public.idx_relay_agent_activity_rows_updated"],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment_key",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "reads": [+ "e|tbl|public.relay_agent_activity_rows",+ "n|sch|public",+ "e|col|public.relay_agent_activity_rows.updated_at"],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_links_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_links"+ "sharedWrites": []},{- "nameExplicit": true,- "columns": [- {- "value": "activity_push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "statementType": "drop_index",+ "statementTarget": [+ "index",+ "public",+ "relay_environment_credentials",+ "idx_relay_environment_credentials_environment"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_live_activities_activity_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"- },- {- "nameExplicit": true,- "columns": [- {- "value": "hostname",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "writes": [+ "s|idx|public.idx_relay_environment_credentials_environment",+ "n|idx|public.idx_relay_environment_credentials_environment",+ "e|idx|public.idx_relay_environment_credentials_environment",+ "n|rel|public.idx_relay_environment_credentials_environment"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_hostname",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "tunnel_name",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "reads": [+ "e|tbl|public.relay_environment_credentials",+ "n|sch|public",+ "e|col|public.relay_environment_credentials.environment_id",+ "e|col|public.relay_environment_credentials.revoked_at"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_tunnel_name",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"+ "sharedWrites": []},{- "nameExplicit": true,- "columns": [- {- "value": "push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "statementType": "create_index",+ "statementTarget": [+ "index",+ "public",+ "relay_delivery_attempts",+ "idx_relay_delivery_attempts_created"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_to_start_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }+ "writes": [+ "s|idx|public.idx_relay_delivery_attempts_created",+ "n|idx|public.idx_relay_delivery_attempts_created",+ "e|idx|public.idx_relay_delivery_attempts_created",+ "n|rel|public.idx_relay_delivery_attempts_created"],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_to_start_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["environment_id", "environment_public_key", "thread_id"],- "nameExplicit": false,- "name": "relay_agent_activity_rows_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "columns": ["thumbprint", "jti"],- "nameExplicit": false,- "name": "relay_dpop_proofs_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_environment_links_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_environment_links"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_live_activities_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_live_activities"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_managed_endpoint_allocations_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_mobile_devices_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["id"],- "nameExplicit": false,- "name": "relay_delivery_attempts_pkey",- "schema": "public",- "table": "relay_delivery_attempts",- "entityType": "pks"- },- {- "columns": ["credential_id"],- "nameExplicit": false,- "name": "relay_environment_credentials_pkey",- "schema": "public",- "table": "relay_environment_credentials",- "entityType": "pks"- },- {- "columns": ["user_id"],- "nameExplicit": false,- "name": "relay_managed_tunnel_limits_pkey",- "schema": "public",- "table": "relay_managed_tunnel_limits",- "entityType": "pks"- },- {- "columns": ["api"],- "nameExplicit": false,- "name": "relay_upstream_api_pauses_pkey",- "schema": "public",- "table": "relay_upstream_api_pauses",- "entityType": "pks"+ "reads": [+ "n|tbl|public.relay_delivery_attempts",+ "n|sch|public",+ "n|col|public.relay_delivery_attempts.created_at"+ ]}],- "renames": []+ "deltas": [+ {+ "op": "create",+ "row": {+ "schema": "public",+ "table": "relay_delivery_attempts",+ "name": "idx_relay_delivery_attempts_created",+ "nameExplicit": true,+ "columns": [+ {+ "value": "created_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "entityType": "indexes"+ }+ },+ {+ "op": "drop",+ "key": "indexes\u0000[\"public\",\"idx_relay_agent_activity_rows_updated\"]"+ },+ {+ "op": "drop",+ "key": "indexes\u0000[\"public\",\"idx_relay_delivery_attempts_environment\"]"+ },+ {+ "op": "drop",+ "key": "indexes\u0000[\"public\",\"idx_relay_environment_credentials_environment\"]"+ }+ ]}diff --git a/infra/relay/migrations/postgres/20261028062605_backfill_withdrawn_tunnel_allocations/snapshot.json b/infra/relay/migrations/postgres/20261028062605_backfill_withdrawn_tunnel_allocations/snapshot.jsonindex e02f3a0c6f2..d5bc42f1064 100644--- a/infra/relay/migrations/postgres/20261028062605_backfill_withdrawn_tunnel_allocations/snapshot.json+++ b/infra/relay/migrations/postgres/20261028062605_backfill_withdrawn_tunnel_allocations/snapshot.json@@ -1,1571 +1,9 @@{+ "type": "diff",+ "version": "9",+ "dialect": "postgres","id": "4413755a-63f1-4f93-bdc9-d1357283c23e","prevIds": ["7d8c1702-6f47-4453-a8ee-66ce5e3bfb41"],- "version": "8",- "dialect": "postgres",- "ddl": [- {- "isRlsEnabled": false,- "name": "relay_agent_activity_rows",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_delivery_attempts",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_dpop_proofs",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_credentials",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_environment_links",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_live_activities",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_endpoint_allocations",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_managed_tunnel_limits",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_mobile_devices",- "entityType": "tables",- "schema": "public"- },- {- "isRlsEnabled": false,- "name": "relay_upstream_api_pauses",- "entityType": "tables",- "schema": "public"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(512)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "state_json",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "type": "varchar(36)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(512)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thread_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "kind",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "source_job_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "token_suffix",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_status",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_reason",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "apns_id",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "transport_error",- "entityType": "columns",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "type": "varchar(128)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "thumbprint",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "jti",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "iat",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "expires_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "credential_hash",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'T3 Environment'",- "generated": null,- "identity": null,- "name": "environment_label",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_http_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_ws_base_url",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(32)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "endpoint_provider_kind",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "notifications_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "true",- "generated": null,- "identity": null,- "name": "live_activities_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "false",- "generated": null,- "identity": null,- "name": "managed_tunnels_enabled",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "boolean",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "false",- "generated": null,- "identity": null,- "name": "hold_webhooks_while_offline",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_by_device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "revoked_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_environment_links"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "activity_push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_start_queued_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "remote_started_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ended_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_aggregate_json",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "last_live_activity_delivery_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_live_activities"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "environment_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "hostname",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_name",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "dns_record_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ready_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "recovery_enabled_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "recovery_environment_public_key",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "tunnel_released_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "origin",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "0",- "generated": null,- "identity": null,- "name": "generation",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "type": "varchar(191)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "integer",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "max_tunnels",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_managed_tunnel_limits"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "user_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "device_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": "'iOS device'",- "generated": null,- "identity": null,- "name": "label",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "platform",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "ios_major_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "integer",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "android_api_level",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "app_version",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(255)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "bundle_id",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(16)",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "aps_environment",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "text",- "typeSchema": null,- "notNull": false,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "push_to_start_token",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "jsonb",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "preferences_json",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "created_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "updated_at",- "entityType": "columns",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "type": "varchar(64)",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "api",- "entityType": "columns",- "schema": "public",- "table": "relay_upstream_api_pauses"- },- {- "type": "bigint",- "typeSchema": null,- "notNull": true,- "dimensions": 0,- "default": null,- "generated": null,- "identity": null,- "name": "paused_until_ms",- "entityType": "columns",- "schema": "public",- "table": "relay_upstream_api_pauses"- },- {- "nameExplicit": true,- "columns": [- {- "value": "created_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_created",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "source_job_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_delivery_attempts_source_job",- "entityType": "indexes",- "schema": "public",- "table": "relay_delivery_attempts"- },- {- "nameExplicit": true,- "columns": [- {- "value": "expires_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_dpop_proofs_expires_at",- "entityType": "indexes",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "nameExplicit": true,- "columns": [- {- "value": "credential_hash",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_hash",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "environment_public_key",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_credentials_environment_key",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_credentials"- },- {- "nameExplicit": true,- "columns": [- {- "value": "environment_id",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- },- {- "value": "revoked_at",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": false,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_environment_links_environment",- "entityType": "indexes",- "schema": "public",- "table": "relay_environment_links"- },- {- "nameExplicit": true,- "columns": [- {- "value": "activity_push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_live_activities_activity_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_live_activities"- },- {- "nameExplicit": true,- "columns": [- {- "value": "hostname",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_hostname",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "tunnel_name",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_managed_endpoint_allocations_tunnel_name",- "entityType": "indexes",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "nameExplicit": true,- "columns": [- {- "value": "push_to_start_token",- "isExpression": false,- "asc": true,- "nullsFirst": false,- "opclass": null- }- ],- "isUnique": true,- "where": null,- "with": "",- "method": "btree",- "concurrently": false,- "name": "idx_relay_mobile_devices_push_to_start_token",- "entityType": "indexes",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["environment_id", "environment_public_key", "thread_id"],- "nameExplicit": false,- "name": "relay_agent_activity_rows_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_agent_activity_rows"- },- {- "columns": ["thumbprint", "jti"],- "nameExplicit": false,- "name": "relay_dpop_proofs_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_dpop_proofs"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_environment_links_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_environment_links"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_live_activities_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_live_activities"- },- {- "columns": ["user_id", "environment_id"],- "nameExplicit": false,- "name": "relay_managed_endpoint_allocations_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_managed_endpoint_allocations"- },- {- "columns": ["user_id", "device_id"],- "nameExplicit": false,- "name": "relay_mobile_devices_pkey",- "entityType": "pks",- "schema": "public",- "table": "relay_mobile_devices"- },- {- "columns": ["id"],- "nameExplicit": false,- "name": "relay_delivery_attempts_pkey",- "schema": "public",- "table": "relay_delivery_attempts",- "entityType": "pks"- },- {- "columns": ["credential_id"],- "nameExplicit": false,- "name": "relay_environment_credentials_pkey",- "schema": "public",- "table": "relay_environment_credentials",- "entityType": "pks"- },- {- "columns": ["user_id"],- "nameExplicit": false,- "name": "relay_managed_tunnel_limits_pkey",- "schema": "public",- "table": "relay_managed_tunnel_limits",- "entityType": "pks"- },- {- "columns": ["api"],- "nameExplicit": false,- "name": "relay_upstream_api_pauses_pkey",- "schema": "public",- "table": "relay_upstream_api_pauses",- "entityType": "pks"- }- ],- "renames": []+ "footprints": [],+ "deltas": []}diff --git a/infra/relay/package.json b/infra/relay/package.jsonindex d69e71dfa5f..5a8fe06f1ee 100644--- a/infra/relay/package.json+++ b/infra/relay/package.json@@ -26,7 +26,7 @@"@t3tools/contracts": "workspace:*","@t3tools/shared": "workspace:*","alchemy": "catalog:",- "drizzle-orm": "1.0.0-rc.5-ab785fc",+ "drizzle-orm": "1.0.0-rc.5","effect": "catalog:"},"devDependencies": {@@ -36,7 +36,7 @@"@effect/vitest": "catalog:","@electric-sql/pglite": "0.3.15","@types/node": "catalog:",- "drizzle-kit": "1.0.0-rc.5-ab785fc",+ "drizzle-kit": "1.0.0-rc.5","typescript": "catalog:","vite": "catalog:","vite-plus": "catalog:"diff --git a/patches/@[email protected] b/patches/@[email protected]deleted file mode 100644index def5a11fca3..00000000000--- a/patches/@[email protected]+++ /dev/null@@ -1,23 +0,0 @@-diff --git a/lib/Schema.js b/lib/Schema.js-index c24265b3c23237d846c7b8ff249cb6c23452ec31..744c7bce4de464d472b183b3c9c25987b67b3a5e 100644---- a/lib/Schema.js-+++ b/lib/Schema.js-@@ -7,6 +7,7 @@ var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExte- return path;- };- import * as crypto from "node:crypto";-+import * as NodePath from "node:path";- import * as Artifacts from "alchemy/Artifacts";- import { isResolved } from "alchemy/Diff";- import { Interaction } from "alchemy/Interaction";-@@ -150,7 +151,9 @@ Effect.tryPromise({- // A `drizzle-kit/cli` command as an Effect, failing on a thrown or reported error.- const command = (name) => Effect.fn(`drizzleKit.${name}`)(function* (options) {- const cli = yield* importModule("drizzle-kit/cli");-- const result = yield* callDrizzleKit(name, () => cli[name](options));-+ // drizzle-kit reads snapshots as `./${path}`, which breaks an absolute `out`.-+ const kitOptions = { ...options, out: NodePath.relative(process.cwd(), options.out) || "." };-+ const result = yield* callDrizzleKit(name, () => cli[name](kitOptions));- if (result.status === "error") {- return yield* new DrizzleKitFailed({ command: name, cause: result.error });- }diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 6ddbc362245..26037a25e78 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -307,16 +307,10 @@ overrides:'@anthropic-ai/claude-agent-sdk>@anthropic-ai/claude-agent-sdk-linux-x64-musl': '-''@anthropic-ai/claude-agent-sdk>@anthropic-ai/claude-agent-sdk-win32-arm64': '-''@anthropic-ai/claude-agent-sdk>@anthropic-ai/claude-agent-sdk-win32-x64': '-'- '@alchemy.run/sigil>react': '-'- '@alchemy.run/sigil>react-reconciler': '-'- '@alchemy.run/sigil>scheduler': '-''@clerk/backend': 3.25.0'@clerk/clerk-js': 6.40.0'@clerk/clerk-js>@base-org/account': '-''@clerk/clerk-js>@coinbase/wallet-sdk': '-'- '@clerk/clerk-js>@solana/wallet-adapter-base': '-'- '@clerk/clerk-js>@solana/wallet-adapter-react': '-'- '@clerk/clerk-js>@solana/wallet-standard': '-''@clerk/clerk-js>@wallet-standard/core': '-''@clerk/electron': 0.1.3'@clerk/electron-passkeys': 0.0.3@@ -333,10 +327,9 @@ overrides:'@expo/dom-webview': 58.0.2'@expo/metro-config': 58.0.14expo-constants: 58.0.12- expo-router: 58.0.20expo-sharing>@expo/config-plugins: 58.0.9expo-sharing>@expo/config-types: 58.0.3- '@pierre/diffs>@shikijs/transformers': ^4.2.0+ '@pierre/trees>@pierre/theming': 1.0.2remark-math>micromark-extension-math: npm:[email protected]micromark-extension-gfm-table: 2.1.1'@tailwindcss/node': 4.3.3@@ -347,6 +340,7 @@ overrides:'@opencode/protocol>effect': 4.1.2'@opencode/schema>effect': 4.1.2node-abi: 4.33.0+ '@react-native/metro-config': 0.88.0electron-webauthn>@electron-webauthn/macos: 1.3.1'@electron-webauthn/macos>objc-js': 1.5.0lightningcss: 1.33.0@@ -363,7 +357,6 @@ packageExtensionsChecksum: sha256-EowbsmlBFaoO0Ypufw901RnvdyjKG5dcdk2FRbc7Dr0=pnpmfileChecksum: sha256-STsbxG7+RxOFI611PrDEj1TonJgqKKllY9hYCFMLYiU=patchedDependencies:- '@alchemy.run/[email protected]': 2cee685395dc78be51c09096e212b72c67110b487b988b8cf862761055266f47'@alchemy.run/[email protected]': 29c0539ea71d9cc372f0b16558640599beb9bc609605feb2a493da268d72713e'@clerk/[email protected]': 7a808b92da8460750b85818552e13be3fb73d111691c7db76965970351e124e4'@effect/[email protected]': 299510b71c36537a832a67e9d160a5f112a5f326a29e95c41cb45fc8234e47c7@@ -1371,7 +1364,7 @@ importers:version: 2.0.0-beta.85(dd7c32aca3799e8e8ce256cb7e3dc7c9)'@alchemy.run/drizzle':specifier: 'catalog:'- version: 2.0.0-beta.85(patch_hash=2cee685395dc78be51c09096e212b72c67110b487b988b8cf862761055266f47)(c1f3d09c6baaf4c1733ba821d1f217d2)+ version: 2.0.0-beta.85(63673b07147c5dca6e2221b35ba436c0)'@alchemy.run/planetscale':specifier: 'catalog:'version: 2.0.0-beta.85(@effect/[email protected]([email protected]))([email protected](patch_hash=07cc8c7e14b3b9af143ddd40a059f117c27e55139fbf20bd5dde2eb30509cedd)(@effect/[email protected]([email protected])([email protected])([email protected]))(@effect/[email protected]([email protected])([email protected])([email protected])([email protected]))(@types/[email protected])(@voidzero-dev/[email protected](@tsc-rs/[email protected])(@types/[email protected])(@volar/[email protected](@tsc-rs/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]([email protected])([email protected]))([email protected]([email protected])([email protected])))([email protected])([email protected])@@ -1406,8 +1399,8 @@ importers:specifier: 2.0.0-beta.85version: 2.0.0-beta.85(patch_hash=07cc8c7e14b3b9af143ddd40a059f117c27e55139fbf20bd5dde2eb30509cedd)(@effect/[email protected]([email protected])([email protected])([email protected]))(@effect/[email protected]([email protected])([email protected])([email protected])([email protected]))(@types/[email protected])(@voidzero-dev/[email protected](@tsc-rs/[email protected])(@types/[email protected])(@volar/[email protected](@tsc-rs/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]([email protected])([email protected]))([email protected]([email protected])([email protected]))drizzle-orm:- specifier: 1.0.0-rc.5-ab785fc- version: 1.0.0-rc.5-ab785fc(@cloudflare/[email protected])(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@electric-sql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]([email protected])([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])([email protected])([email protected])+ specifier: 1.0.0-rc.5+ version: 1.0.0-rc.5(@cloudflare/[email protected])(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@electric-sql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]([email protected])([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])([email protected])([email protected])effect:specifier: 4.1.2version: 4.1.2@@ -1431,8 +1424,8 @@ importers:specifier: 24.12.4version: 24.12.4drizzle-kit:- specifier: 1.0.0-rc.5-ab785fc- version: 1.0.0-rc.5-ab785fc+ specifier: 1.0.0-rc.5+ version: 1.0.0-rc.5([email protected](@cloudflare/[email protected])(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@electric-sql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]([email protected])([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])([email protected])([email protected]))typescript:specifier: 'catalog:'version: '@tsc-rs/[email protected]'@@ -3703,9 +3696,6 @@ packages:peerDependencies:react: '>=16.8.0'- '@drizzle-team/[email protected]':- resolution: {integrity: sha512-mlUE+rZ8CatQekLhnaiN91Iemdd+e2gFKooGlnRB3oPTL3VghLfX24dx7HrzMNeC1JrIB/0kpsfyty3f5HNfxQ==}-'@effect/[email protected]':resolution: {integrity: sha512-XRAm4lks2kzNFQIz9QTGKR02CaDTR9VJNRXDjDAR8OzM15ybrK4YkB7OlFZ9U+hxXe3DXJZx7RU1/xI2Em2PGQ==}peerDependencies:@@ -3888,312 +3878,156 @@ packages:'@epic-web/[email protected]':resolution: {integrity: sha512-lrTPqgvfFQtR/eY/qkIzp98OGdNJu0m5ji3q/nJI8v3SXkRKEnWiOxMmbvcSoAIzv/cGiuvRy57k4suKQSAdwA==}- '@esbuild/[email protected]':- resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==}- engines: {node: '>=18'}- cpu: [ppc64]- os: [aix]-'@esbuild/[email protected]':resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==}engines: {node: '>=18'}cpu: [ppc64]os: [aix]- '@esbuild/[email protected]':- resolution: {integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==}- engines: {node: '>=18'}- cpu: [arm64]- os: [android]-'@esbuild/[email protected]':resolution: {integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==}engines: {node: '>=18'}cpu: [arm64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==}- engines: {node: '>=18'}- cpu: [arm]- os: [android]-'@esbuild/[email protected]':resolution: {integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==}engines: {node: '>=18'}cpu: [arm]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==}- engines: {node: '>=18'}- cpu: [x64]- os: [android]-'@esbuild/[email protected]':resolution: {integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==}engines: {node: '>=18'}cpu: [x64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==}- engines: {node: '>=18'}- cpu: [arm64]- os: [darwin]-'@esbuild/[email protected]':resolution: {integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==}engines: {node: '>=18'}cpu: [arm64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==}- engines: {node: '>=18'}- cpu: [x64]- os: [darwin]-'@esbuild/[email protected]':resolution: {integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==}engines: {node: '>=18'}cpu: [x64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==}- engines: {node: '>=18'}- cpu: [arm64]- os: [freebsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==}engines: {node: '>=18'}cpu: [arm64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==}- engines: {node: '>=18'}- cpu: [x64]- os: [freebsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==}engines: {node: '>=18'}cpu: [x64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==}- engines: {node: '>=18'}- cpu: [arm64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==}engines: {node: '>=18'}cpu: [arm64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==}- engines: {node: '>=18'}- cpu: [arm]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==}engines: {node: '>=18'}cpu: [arm]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==}- engines: {node: '>=18'}- cpu: [ia32]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==}engines: {node: '>=18'}cpu: [ia32]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==}- engines: {node: '>=18'}- cpu: [loong64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==}engines: {node: '>=18'}cpu: [loong64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==}- engines: {node: '>=18'}- cpu: [mips64el]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==}engines: {node: '>=18'}cpu: [mips64el]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==}- engines: {node: '>=18'}- cpu: [ppc64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==}engines: {node: '>=18'}cpu: [ppc64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==}- engines: {node: '>=18'}- cpu: [riscv64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==}engines: {node: '>=18'}cpu: [riscv64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==}- engines: {node: '>=18'}- cpu: [s390x]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==}engines: {node: '>=18'}cpu: [s390x]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==}- engines: {node: '>=18'}- cpu: [x64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==}engines: {node: '>=18'}cpu: [x64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==}- engines: {node: '>=18'}- cpu: [arm64]- os: [netbsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==}engines: {node: '>=18'}cpu: [arm64]os: [netbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==}- engines: {node: '>=18'}- cpu: [x64]- os: [netbsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==}engines: {node: '>=18'}cpu: [x64]os: [netbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==}- engines: {node: '>=18'}- cpu: [arm64]- os: [openbsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==}engines: {node: '>=18'}cpu: [arm64]os: [openbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==}- engines: {node: '>=18'}- cpu: [x64]- os: [openbsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==}engines: {node: '>=18'}cpu: [x64]os: [openbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==}- engines: {node: '>=18'}- cpu: [arm64]- os: [openharmony]-'@esbuild/[email protected]':resolution: {integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==}engines: {node: '>=18'}cpu: [arm64]os: [openharmony]- '@esbuild/[email protected]':- resolution: {integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==}- engines: {node: '>=18'}- cpu: [x64]- os: [sunos]-'@esbuild/[email protected]':resolution: {integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==}engines: {node: '>=18'}cpu: [x64]os: [sunos]- '@esbuild/[email protected]':- resolution: {integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==}- engines: {node: '>=18'}- cpu: [arm64]- os: [win32]-'@esbuild/[email protected]':resolution: {integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==}engines: {node: '>=18'}cpu: [arm64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==}- engines: {node: '>=18'}- cpu: [ia32]- os: [win32]-'@esbuild/[email protected]':resolution: {integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==}engines: {node: '>=18'}cpu: [ia32]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==}- engines: {node: '>=18'}- cpu: [x64]- os: [win32]-'@esbuild/[email protected]':resolution: {integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==}engines: {node: '>=18'}@@ -4227,7 +4061,7 @@ packages:hasBin: truepeerDependencies:expo: '*'- expo-router: 58.0.20+ expo-router: '*'react-native: '*'peerDependenciesMeta:expo-router:@@ -4384,7 +4218,7 @@ packages:expo: '*'expo-constants: 58.0.12expo-font: ^58.0.8- expo-router: 58.0.20+ expo-router: '*'expo-server: ^58.0.5react: '*'react-dom: '*'@@ -4887,10 +4721,6 @@ packages:'@jridgewell/[email protected]':resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}- '@js-temporal/[email protected]':- resolution: {integrity: sha512-hloP58zRVCRSpgDxmqCWJNlizAlUgJFqG2ypq79DCvyv9tHjRYMDOcPFjzfl/A1/YxDvRCZz8wvZvmapQnKwFQ==}- engines: {node: '>=12'}-'@legendapp/[email protected]':resolution: {integrity: sha512-XTsLYtpg41SVb5uLBYA+YcDSA3w0tgoPq/W8ZggQ2tx+3lrC/rf+ehTP9KYHea9oFaZIuePAgzACs5/auVMJlQ==}peerDependencies:@@ -6074,26 +5904,6 @@ packages:resolution: {integrity: sha512-yNDd9GYLQl1mEUJR8AneJ5e4ohLIHQd/wZLWr4fagt78vS2RwwZNW530vVgHqXFAyFVcFlRmGUD5ramXH46OXw==}engines: {vscode: ^1.0.0}- '@pierre/[email protected]':- resolution: {integrity: sha512-WsdrnhKfjeyXGDikZmN9pkpeZ5S/cl6EE72feiSc0tlynT1tMYqXqouhuv/foK+PY9OEnebOAVRQn3+rAstR8g==}- peerDependencies:- '@pierre/theme': ^1.1.0- '@shikijs/themes': ^3.0.0 || ^4.0.0- react: ^18.3.1 || ^19.0.0- react-dom: ^18.3.1 || ^19.0.0- shiki: ^3.0.0 || ^4.0.0- peerDependenciesMeta:- '@pierre/theme':- optional: true- '@shikijs/themes':- optional: true- react:- optional: true- react-dom:- optional: true- shiki:- optional: true-'@pierre/[email protected]':resolution: {integrity: sha512-RmXLLqtx31UGcR8kZyO5hGAQ1EXz6loT1Cu0BFAGsbnBboIxp2BlomkLfWyvdT4WZXnBGyu25onL1gKpFQuSUw==}peerDependencies:@@ -8431,24 +8241,32 @@ packages:resolution: {integrity: sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==}engines: {node: '>=12'}- resolution: {integrity: sha512-TSg7sK1finOxdo48O9mDfyMY3lhi/aHCVIil5TFhthyq/H/89H/3nwX5V9Gdp7HYMUGFHyWJD5iowSn98l0elw==}+ resolution: {integrity: sha512-8glQN7iFK3e1aOIoRit1NtslcsqE/rnlqNw/1jUC5Ph4RFVh/E5Jricxd6Nu2ugj2HlFZlZ6O4006AwqJ9e24g==}hasBin: true+ peerDependencies:+ drizzle-orm: '>=1.0.0-rc.5'+ peerDependenciesMeta:+ drizzle-orm:+ optional: true- resolution: {integrity: sha512-28PVt0PS/+4kPa8eKr4mqP8y/YcbdOgdVcGUa6LGl2Kd2bykNWuf/WUOFoSCoynagblbcRgMO1zChLvRcWD6Tg==}+ resolution: {integrity: sha512-7BMYTsAZbQ9DcQCtLG4G202Hq6nc/e8o1EBKN6nBweRI8EGPFe/VdyvWQCsU9fuZSiRjNpELolUSi//JFBq+lw==}peerDependencies:'@aws-sdk/client-rds-data': '>=3'+ '@aws/aurora-dsql-node-postgres-connector': '>=0.1.9'+ '@aws/aurora-dsql-postgresjs-connector': '>=0.3.0''@cloudflare/workers-types': '>=4'- '@effect/sql-d1': '>=4.0.0-beta.105 || >=4.0.0'- '@effect/sql-libsql': '>=4.0.0-beta.105 || >=4.0.0'- '@effect/sql-mysql2': '>=4.0.0-beta.105 || >=4.0.0'+ '@drizzle-team/minipg': '>=0.4.2'+ '@effect/sql-d1': '>=4.0.0'+ '@effect/sql-libsql': '>=4.0.0'+ '@effect/sql-mysql2': '>=4.0.0''@effect/sql-pg': 4.1.2- '@effect/sql-pglite': '>=4.0.0-beta.105 || >=4.0.0'- '@effect/sql-sqlite-bun': '>=4.0.0-beta.105 || >=4.0.0'- '@effect/sql-sqlite-do': '>=4.0.0-beta.105 || >=4.0.0'- '@effect/sql-sqlite-node': '>=4.0.0-beta.105 || >=4.0.0'- '@effect/sql-sqlite-wasm': '>=4.0.0-beta.105 || >=4.0.0'+ '@effect/sql-pglite': '>=4.0.0'+ '@effect/sql-sqlite-bun': '>=4.0.0'+ '@effect/sql-sqlite-do': '>=4.0.0'+ '@effect/sql-sqlite-node': '>=4.0.0'+ '@effect/sql-sqlite-wasm': '>=4.0.0''@electric-sql/pglite': '>=0.2.0''@libsql/client': '>=0.10.0''@libsql/client-wasm': '>=0.10.0'@@ -8476,7 +8294,6 @@ packages:bun-types: '*'effect: 4.1.2expo-sqlite: '>=14.0.0'- minipg: '>=0.2.0'mssql: ^11.0.1mysql2: '>=2'pg: '>=8'@@ -8489,8 +8306,14 @@ packages:peerDependenciesMeta:'@aws-sdk/client-rds-data':optional: true+ '@aws/aurora-dsql-node-postgres-connector':+ optional: true+ '@aws/aurora-dsql-postgresjs-connector':+ optional: true'@cloudflare/workers-types':optional: true+ '@drizzle-team/minipg':+ optional: true'@effect/sql-d1':optional: true'@effect/sql-libsql':@@ -8563,8 +8386,6 @@ packages:optional: trueexpo-sqlite:optional: true- minipg:- optional: truemssql:optional: truemysql2:@@ -8721,11 +8542,6 @@ packages:resolution: {integrity: sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg==}- resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==}- engines: {node: '>=18'}- hasBin: true-resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==}engines: {node: '>=18'}@@ -9005,7 +8821,7 @@ packages:peerDependencies:'@react-navigation/native': ^7.0.0expo: '*'- expo-router: 58.0.20+ expo-router: '*'react: '*'react-native: '*'react-native-reanimated: 4.7.1@@ -9716,9 +9532,6 @@ packages:resolution: {integrity: sha512-TzO/62Hxeb26QMb4IGlI/5X+QLr9Uqp1FPkwp2+KOICW+Q+vSuFj61c8pkT6wAns4WcK56X7CmSHhJeDGWOqxQ==}- resolution: {integrity: sha512-9fqMSQbhJykSeii05nxKl4m6Eqn2P6rOlYiS+C5Dr/HPIU/7yZxu5qzbs40tgaFORiw2Amd0mirjxatXYMkIew==}-resolution: {integrity: sha512-0wM3YBWtYePOjfyXQH5MWQ8H7sdk5EXSwZvmSLKk2RboVQ2Bu239jycHDz5J/8Blf3K0Qnoy2b6xD+z10MFB+Q==}@@ -11121,7 +10934,7 @@ packages:resolution: {integrity: sha512-1OrhAeAKaZF4XrBa4YbPQbKzNOpjh52HDlId8e6ete1OCHNdAlrQHzG4gznJ225EAj3dgQXHViJvK51M9B52jQ==}peerDependencies:'@babel/core': '*'- '@react-native/metro-config': '*'+ '@react-native/metro-config': 0.88.0react: '*'react-native: 0.86 - 0.88@@ -12613,18 +12426,18 @@ snapshots:optionalDependencies:- '@alchemy.run/[email protected](patch_hash=2cee685395dc78be51c09096e212b72c67110b487b988b8cf862761055266f47)(c1f3d09c6baaf4c1733ba821d1f217d2)':+ '@alchemy.run/[email protected](63673b07147c5dca6e2221b35ba436c0)':dependencies:'@alchemy.run/sql': 2.0.0-beta.85(@effect/[email protected]([email protected]))([email protected](patch_hash=07cc8c7e14b3b9af143ddd40a059f117c27e55139fbf20bd5dde2eb30509cedd)(@effect/[email protected]([email protected])([email protected])([email protected]))(@effect/[email protected]([email protected])([email protected])([email protected])([email protected]))(@types/[email protected])(@voidzero-dev/[email protected](@tsc-rs/[email protected])(@types/[email protected])(@volar/[email protected](@tsc-rs/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]([email protected])([email protected]))([email protected]([email protected])([email protected])))([email protected])([email protected])'@effect/sql-d1': 4.1.1([email protected])'@effect/sql-sqlite-do': 4.1.2([email protected])alchemy: 2.0.0-beta.85(patch_hash=07cc8c7e14b3b9af143ddd40a059f117c27e55139fbf20bd5dde2eb30509cedd)(@effect/[email protected]([email protected])([email protected])([email protected]))(@effect/[email protected]([email protected])([email protected])([email protected])([email protected]))(@types/[email protected])(@voidzero-dev/[email protected](@tsc-rs/[email protected])(@types/[email protected])(@volar/[email protected](@tsc-rs/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]([email protected])([email protected]))([email protected]([email protected])([email protected]))- drizzle-orm: 1.0.0-rc.5-ab785fc(@cloudflare/[email protected])(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@electric-sql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]([email protected])([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])([email protected])([email protected])+ drizzle-orm: 1.0.0-rc.5(@cloudflare/[email protected])(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@electric-sql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]([email protected])([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])([email protected])([email protected])effect: 4.1.2optionalDependencies:'@alchemy.run/cloudflare': 2.0.0-beta.85(dd7c32aca3799e8e8ce256cb7e3dc7c9)'@effect/sql-pg': 4.1.2([email protected])- drizzle-kit: 1.0.0-rc.5-ab785fc+ drizzle-kit: 1.0.0-rc.5([email protected](@cloudflare/[email protected])(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@electric-sql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]([email protected])([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])([email protected])([email protected]))transitivePeerDependencies:- mysql2- pg@@ -13707,8 +13520,6 @@ snapshots:react: 19.3.0tslib: 2.8.1- '@drizzle-team/[email protected]': {}-dependencies:effect: 4.1.2@@ -14014,159 +13825,81 @@ snapshots:'@epic-web/[email protected]': {}- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -14939,10 +14672,6 @@ snapshots:'@jridgewell/resolve-uri': 3.1.2'@jridgewell/sourcemap-codec': 1.6.0- '@js-temporal/[email protected]':- dependencies:- jsbi: 4.3.2-'@legendapp/[email protected](patch_hash=6cbdacd8c380d9a5afb9f73d4198dc2cc44be6ef28a955b1183c781469307896)([email protected]([email protected]))([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])':dependencies:react: 19.3.0@@ -15697,14 +15426,6 @@ snapshots:'@pierre/[email protected]': {}- '@pierre/[email protected](@pierre/[email protected])(@shikijs/[email protected])([email protected]([email protected]))([email protected])([email protected])':- optionalDependencies:- '@pierre/theme': 2.0.0- '@shikijs/themes': 4.2.0- react: 19.3.0- react-dom: 19.3.0([email protected])- shiki: 4.2.0-'@pierre/[email protected](@pierre/[email protected])(@shikijs/[email protected])([email protected]([email protected]))([email protected])([email protected])':optionalDependencies:'@pierre/theme': 2.0.0@@ -15715,7 +15436,7 @@ snapshots:'@pierre/[email protected](@pierre/[email protected])(@shikijs/[email protected])([email protected]([email protected]))([email protected])([email protected])':dependencies:- '@pierre/theming': 1.0.0(@pierre/[email protected])(@shikijs/[email protected])([email protected]([email protected]))([email protected])([email protected])+ '@pierre/theming': 1.0.2(@pierre/[email protected])(@shikijs/[email protected])([email protected]([email protected]))([email protected])([email protected])preact: 11.0.0-beta.0preact-render-to-string: 6.6.5([email protected])react: 19.3.0@@ -18187,15 +17908,11 @@ snapshots:- dependencies:- '@drizzle-team/brocli': 0.12.0- '@js-temporal/polyfill': 0.5.1- esbuild: 0.25.12- get-tsconfig: 4.14.3- jiti: 2.7.0+ [email protected]([email protected](@cloudflare/[email protected])(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@electric-sql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]([email protected])([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])([email protected])([email protected])):+ optionalDependencies:+ drizzle-orm: 1.0.0-rc.5(@cloudflare/[email protected])(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@electric-sql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]([email protected])([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])([email protected])([email protected])- [email protected](@cloudflare/[email protected])(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@electric-sql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]([email protected])([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])([email protected])([email protected]):+ [email protected](@cloudflare/[email protected])(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@effect/[email protected]([email protected]))(@electric-sql/[email protected])(@libsql/[email protected]([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]([email protected])([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))([email protected])([email protected])([email protected]):optionalDependencies:'@cloudflare/workers-types': 4.20260604.1'@effect/sql-d1': 4.1.1([email protected])@@ -18384,35 +18101,6 @@ snapshots:- optionalDependencies:- '@esbuild/aix-ppc64': 0.25.12- '@esbuild/android-arm': 0.25.12- '@esbuild/android-arm64': 0.25.12- '@esbuild/android-x64': 0.25.12- '@esbuild/darwin-arm64': 0.25.12- '@esbuild/darwin-x64': 0.25.12- '@esbuild/freebsd-arm64': 0.25.12- '@esbuild/freebsd-x64': 0.25.12- '@esbuild/linux-arm': 0.25.12- '@esbuild/linux-arm64': 0.25.12- '@esbuild/linux-ia32': 0.25.12- '@esbuild/linux-loong64': 0.25.12- '@esbuild/linux-mips64el': 0.25.12- '@esbuild/linux-ppc64': 0.25.12- '@esbuild/linux-riscv64': 0.25.12- '@esbuild/linux-s390x': 0.25.12- '@esbuild/linux-x64': 0.25.12- '@esbuild/netbsd-arm64': 0.25.12- '@esbuild/netbsd-x64': 0.25.12- '@esbuild/openbsd-arm64': 0.25.12- '@esbuild/openbsd-x64': 0.25.12- '@esbuild/openharmony-arm64': 0.25.12- '@esbuild/sunos-x64': 0.25.12- '@esbuild/win32-arm64': 0.25.12- '@esbuild/win32-ia32': 0.25.12- '@esbuild/win32-x64': 0.25.12-optionalDependencies:'@esbuild/aix-ppc64': 0.28.2@@ -19585,8 +19273,6 @@ snapshots:- [email protected]: {}-[email protected](@noble/[email protected]):diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 72167e4d891..7f13ce7a33d 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -18,8 +18,6 @@ allowBuilds:electron: falseelectron-winstaller: falseesbuild: true- msgpackr-extract: true- msw: falsenode-pty: true# Ships N-API prebuilds; its install script only rebuilds from source.objc-js: false@@ -99,145 +97,6 @@ catalog:remark-rehype: 11.1.2unified: 11.0.5-minimumReleaseAgeExclude:- - "@alchemy.run/[email protected]"- - "@alchemy.run/[email protected]"- - "@alchemy.run/[email protected]"- - "@alchemy.run/[email protected]"- - "@alchemy.run/[email protected]"- - "@alchemy.run/[email protected]"- - "@alchemy.run/[email protected]"- - "@alchemy.run/[email protected]"- - "@alchemy.run/[email protected]"- - "@alchemy.run/[email protected]"- - "@distilled.cloud/[email protected]"- - "@distilled.cloud/[email protected]"- - "@distilled.cloud/[email protected]"- - "@distilled.cloud/[email protected]"- - "@distilled.cloud/[email protected]"- - "@distilled.cloud/[email protected]"- - "@distilled.cloud/[email protected]"- - "@tsc-rs/*"- - "@clerk/[email protected]"- - "@clerk/[email protected]"- - "@clerk/[email protected]"- - "@clerk/[email protected]"- - "@clerk/[email protected]"- - "@clerk/[email protected]"- - "@clerk/[email protected]"- - "@effect/[email protected]"- - "@effect/[email protected]"- - "@effect/[email protected]"- - "@effect/[email protected]"- - "@effect/[email protected]"- - "@effect/[email protected]"- - "@effect/[email protected]"- - "@effect/[email protected]"- - "@effect/[email protected]"- - "@legendapp/[email protected]"- - "@expo/[email protected] || 58.1.9 || 58.1.11"- - "@expo/[email protected]"- - "@expo/[email protected]"- - "@expo/[email protected]"- - "@expo/[email protected]"- - "@expo/[email protected]"- - "@expo/[email protected]"- - "@expo/[email protected]"- - "@expo/[email protected]"- - "@expo/[email protected] || 58.0.14"- - "@expo/[email protected] || 58.0.14"- - "@expo/[email protected]"- - [email protected] || 58.0.14- - [email protected] || 58.0.19 || 58.0.22- - [email protected] || 58.0.14 || 58.0.15- - "@shadcn/[email protected]"- - "@expo/[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "[email protected]"- - "@expo/[email protected]"- - [email protected] || 58.1.2- - "@opencode/[email protected]"- - "@opencode/[email protected]"- - "@opencode/[email protected]"- - "@muse-code/[email protected]"- - "@expo/[email protected]"- - "@react-native/[email protected]"- - "@react-native/[email protected]"- - "@react-native/[email protected]"- - "@react-native/[email protected]"- - "@react-native/[email protected]"- - "@react-native/[email protected]"- - "@react-native/[email protected]"- - "@react-native/[email protected]"- - "@react-native/[email protected]"- - "@react-native/[email protected]"- - "@react-native/[email protected]"- - "@react-native/[email protected]"- - "@react-native/[email protected]"- - "@react-native/[email protected]"- - "@expo/[email protected]"- - "@pierre/[email protected]"- - "@pierre/[email protected]"- - "@pierre/[email protected]"- - "@cursor/[email protected]"- - "@cursor/[email protected]"- - "@cursor/[email protected]"- - "@cursor/[email protected]"- - "@cursor/[email protected]"- - "@cursor/[email protected]"- - "@distilled.cloud/[email protected]"-overrides:# Pin every patched package, including transitive dependencies, so lockfile-free# release installs cannot drift past the patch. Update these with patchedDependencies.@@ -287,19 +146,10 @@ overrides:"@anthropic-ai/claude-agent-sdk>@anthropic-ai/claude-agent-sdk-linux-x64-musl": "-""@anthropic-ai/claude-agent-sdk>@anthropic-ai/claude-agent-sdk-win32-arm64": "-""@anthropic-ai/claude-agent-sdk>@anthropic-ai/claude-agent-sdk-win32-x64": "-"- # Alchemy's Ink fork declares React as a hard dependency, but the relay only- # reaches its terminal-capability helpers; the TUI is never imported, so the- # extra React copy is pure install weight.- "@alchemy.run/sigil>react": "-"- "@alchemy.run/sigil>react-reconciler": "-"- "@alchemy.run/sigil>scheduler": "-""@clerk/backend": "catalog:""@clerk/clerk-js": "catalog:""@clerk/clerk-js>@base-org/account": "-""@clerk/clerk-js>@coinbase/wallet-sdk": "-"- "@clerk/clerk-js>@solana/wallet-adapter-base": "-"- "@clerk/clerk-js>@solana/wallet-adapter-react": "-"- "@clerk/clerk-js>@solana/wallet-standard": "-""@clerk/clerk-js>@wallet-standard/core": "-""@clerk/electron": "catalog:""@clerk/electron-passkeys": "catalog:"@@ -316,10 +166,10 @@ overrides:"@expo/dom-webview": 58.0.2"@expo/metro-config": 58.0.14expo-constants: 58.0.12- expo-router: 58.0.20"expo-sharing>@expo/config-plugins": 58.0.9"expo-sharing>@expo/config-types": 58.0.3- "@pierre/diffs>@shikijs/transformers": ^4.2.0+ # @pierre/trees pins @pierre/theming 1.0.0, whose peer range predates @pierre/theme 2.+ "@pierre/trees>@pierre/theming": 1.0.2# Resolve below remark-math so Vite, Metro and Node use the same tokenizer."remark-math>micromark-extension-math": npm:[email protected]micromark-extension-gfm-table: 2.1.1@@ -337,6 +187,9 @@ overrides:"@opencode/protocol>effect": "catalog:""@opencode/schema>effect": "catalog:"node-abi: 4.33.0+ # react-native-worklets peers on any version, so a fresh resolve takes the newest+ # one; React Native's CLI plugin wants exactly its own. Move with react-native.+ "@react-native/metro-config": 0.88.0# The desktop app installs these without a lockfile when it packages them, so# pin the native passkey code that runs in its main process."electron-webauthn>@electron-webauthn/macos": "catalog:"@@ -409,17 +262,23 @@ patchedDependencies:# Observe the owned host exit independently of descendants retaining its stdio."@muse-code/[email protected]": patches/@[email protected][email protected]: patches/[email protected]- # drizzle-kit fails on an absolute `out`: https://github.com/alchemy-run/alchemy/issues/2980- "@alchemy.run/[email protected]": patches/@[email protected]# A failed Artifacts.cached effect hangs every later caller: https://github.com/alchemy-run/alchemy/issues/2981[email protected]: patches/[email protected]+# Unmet peers fail resolution, so a pin outside a dependency's peer range is+# caught when the lockfile changes instead of scrolling past as a warning.+strictPeerDependencies: true+peerDependencyRules:allowAny:- typescript- viteallowedVersions:vite: "*"+ # Our react-native-screens fork is a 5.x prerelease, which ">= 4.0.0" excludes.+ "@react-navigation/native-stack>react-native-screens": "*"+ # ws 7 (React Native dev tooling) only calls isValidUTF8, unchanged in v6.+ "ws@7>utf-8-validate": "6"# pnpm 12 links agent skills that dependencies ship into .claude/skills once# approved. We curate our own skills, so deny these to keep installs quiet.