{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT id, user_id, transaction_type as \"transaction_type: CreditTransactionType\", amount, source_id, description, created_at, seq, api_key_id\n            FROM credits_transactions\n            WHERE user_id = $1\n              AND ($4::text IS NULL OR description ILIKE '%' || $4 || '%')\n              AND ($5::text[] IS NULL OR transaction_type::text = ANY($5))\n              AND ($6::timestamptz IS NULL OR created_at >= $6)\n              AND ($7::timestamptz IS NULL OR created_at <= $7)\n            ORDER BY seq DESC\n            OFFSET $2\n            LIMIT $3\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "user_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 2,
        "name": "transaction_type: CreditTransactionType",
        "type_info": "Text"
      },
      {
        "ordinal": 3,
        "name": "amount",
        "type_info": "Numeric"
      },
      {
        "ordinal": 4,
        "name": "source_id",
        "type_info": "Text"
      },
      {
        "ordinal": 5,
        "name": "description",
        "type_info": "Text"
      },
      {
        "ordinal": 6,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 7,
        "name": "seq",
        "type_info": "Int8"
      },
      {
        "ordinal": 8,
        "name": "api_key_id",
        "type_info": "Uuid"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Int8",
        "Int8",
        "Text",
        "TextArray",
        "Timestamptz",
        "Timestamptz"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false,
      false,
      true,
      false,
      false,
      true
    ]
  },
  "hash": "6a216c83127e3e9dcad9e60d00b25d419697c3240d0bb086f68af606a27c7a99"
}
