{
  "db_name": "PostgreSQL",
  "query": "WITH limits AS (\n              SELECT id, l.created_at AS entity_created_at\n              FROM cala_velocity_limits l\n              JOIN cala_velocity_control_limits ON id = velocity_limit_id\n              WHERE velocity_control_id = $1\n            )\n            SELECT l.id as entity_id, e.sequence, e.event, e.recorded_at\n            FROM limits l\n            JOIN cala_velocity_limit_events e ON l.id = e.id\n            ORDER BY l.id, e.sequence",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "entity_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "sequence",
        "type_info": "Int4"
      },
      {
        "ordinal": 2,
        "name": "event",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 3,
        "name": "recorded_at",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false
    ]
  },
  "hash": "0c3bbb19b3fc1c3b341b798779881d7b31d7da4f7aaead8d64a7e1a8840b8133"
}
