{ "db_name": "PostgreSQL", "query": "\n SELECT\n id, user_id, recipient, subject, body,\n channel as \"channel: CommsChannel\",\n comms_type as \"comms_type: CommsType\",\n status as \"status: CommsStatus\"\n FROM comms_queue\n WHERE id = $1\n ", "describe": { "columns": [ { "ordinal": 0, "name": "id", "type_info": "Uuid" }, { "ordinal": 1, "name": "user_id", "type_info": "Uuid" }, { "ordinal": 2, "name": "recipient", "type_info": "Text" }, { "ordinal": 3, "name": "subject", "type_info": "Text" }, { "ordinal": 4, "name": "body", "type_info": "Text" }, { "ordinal": 5, "name": "channel: CommsChannel", "type_info": { "Custom": { "name": "comms_channel", "kind": { "Enum": [ "email", "discord", "telegram", "signal" ] } } } }, { "ordinal": 6, "name": "comms_type: CommsType", "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": 7, "name": "status: CommsStatus", "type_info": { "Custom": { "name": "comms_status", "kind": { "Enum": [ "pending", "processing", "sent", "failed" ] } } } } ], "parameters": { "Left": [ "Uuid" ] }, "nullable": [ false, false, false, true, false, false, false, false ] }, "hash": "9e772a967607553a0ab800970eaeadcaab7e06bdb79e0c89eb919b1bc1d6fabe" }