{ "db_name": "PostgreSQL", "query": "\n SELECT\n created_at,\n channel as \"channel: String\",\n comms_type as \"comms_type: String\",\n status as \"status: String\",\n subject,\n body\n FROM comms_queue\n WHERE user_id = $1\n ORDER BY created_at DESC\n LIMIT 50\n ", "describe": { "columns": [ { "ordinal": 0, "name": "created_at", "type_info": "Timestamptz" }, { "ordinal": 1, "name": "channel: String", "type_info": { "Custom": { "name": "comms_channel", "kind": { "Enum": [ "email", "discord", "telegram", "signal" ] } } } }, { "ordinal": 2, "name": "comms_type: String", "type_info": { "Custom": { "name": "comms_type", "kind": { "Enum": [ "welcome", "email_verification", "password_reset", "email_update", "account_deletion", "admin_email", "plc_operation", "two_factor_code", "channel_verification", "passkey_recovery", "legacy_login_alert", "migration_verification" ] } } } }, { "ordinal": 3, "name": "status: String", "type_info": { "Custom": { "name": "comms_status", "kind": { "Enum": [ "pending", "processing", "sent", "failed" ] } } } }, { "ordinal": 4, "name": "subject", "type_info": "Text" }, { "ordinal": 5, "name": "body", "type_info": "Text" } ], "parameters": { "Left": [ "Uuid" ] }, "nullable": [ false, false, false, false, true, false ] }, "hash": "fde01bb40898f8a5d45a6e8f89c635c06b4179b5858a7b388404c4b03fc92ab4" }