{
  "db_name": "PostgreSQL",
  "query": "\n                SELECT ak.id as api_key_id, dg.deployment_id\n                FROM api_keys ak\n                INNER JOIN user_groups ug ON ak.user_id = ug.user_id\n                INNER JOIN deployment_groups dg ON ug.group_id = dg.group_id\n                WHERE ak.id = ANY($1)\n\n                UNION\n\n                SELECT ak.id as api_key_id, dg.deployment_id\n                FROM api_keys ak\n                INNER JOIN deployment_groups dg ON dg.group_id = '00000000-0000-0000-0000-000000000000'\n                WHERE ak.id = ANY($1)\n                AND ak.user_id != '00000000-0000-0000-0000-000000000000'\n                ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "api_key_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "deployment_id",
        "type_info": "Uuid"
      }
    ],
    "parameters": {
      "Left": [
        "UuidArray"
      ]
    },
    "nullable": [
      null,
      null
    ]
  },
  "hash": "1e2533c8d8257f3442f324a4e7c606aa021083c003b68c3b17365ca5313f86de"
}
