{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT\n                created_at,\n                channel as \"channel: CommsChannel\",\n                comms_type as \"comms_type: CommsType\",\n                status as \"status: CommsStatus\",\n                subject,\n                body\n            FROM comms_queue\n            WHERE user_id = $1\n            ORDER BY created_at DESC\n            LIMIT $2\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 1,
        "name": "channel: CommsChannel",
        "type_info": {
          "Custom": {
            "name": "comms_channel",
            "kind": {
              "Enum": [
                "email",
                "discord",
                "telegram",
                "signal"
              ]
            }
          }
        }
      },
      {
        "ordinal": 2,
        "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",
                "channel_verified"
              ]
            }
          }
        }
      },
      {
        "ordinal": 3,
        "name": "status: CommsStatus",
        "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",
        "Int8"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false,
      true,
      false
    ]
  },
  "hash": "25309f4a08845a49557d694ad9b5b9a137be4dcce28e9293551c8c3fd40fdd86"
}
