{
  "db_name": "PostgreSQL",
  "query": "\n        SELECT\n            drid.id AS \"id!: DelphiReportIssueDetailsId\",\n            drid.issue_id AS \"issue_id!: DelphiReportIssueId\",\n            drid.key AS \"key!: String\",\n            drid.jar AS \"jar?: String\",\n            drid.file_path AS \"file_path!: String\",\n            drid.data AS \"data!: sqlx::types::Json<HashMap<String, serde_json::Value>>\",\n            drid.severity AS \"severity!: DelphiSeverity\",\n            COALESCE(didv.verdict, 'pending'::delphi_report_issue_status) AS \"status!: DelphiStatus\"\n        FROM delphi_report_issue_details drid\n        INNER JOIN delphi_report_issues dri ON dri.id = drid.issue_id\n        INNER JOIN delphi_reports dr ON dr.id = dri.report_id\n        INNER JOIN files f ON f.id = dr.file_id\n        INNER JOIN versions v ON v.id = f.version_id\n        INNER JOIN mods m ON m.id = v.mod_id\n        LEFT JOIN delphi_issue_detail_verdicts didv\n            ON m.id = didv.project_id AND drid.key = didv.detail_key\n        WHERE drid.issue_id = ANY($1::bigint[])\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id!: DelphiReportIssueDetailsId",
        "type_info": "Int8"
      },
      {
        "ordinal": 1,
        "name": "issue_id!: DelphiReportIssueId",
        "type_info": "Int8"
      },
      {
        "ordinal": 2,
        "name": "key!: String",
        "type_info": "Text"
      },
      {
        "ordinal": 3,
        "name": "jar?: String",
        "type_info": "Text"
      },
      {
        "ordinal": 4,
        "name": "file_path!: String",
        "type_info": "Text"
      },
      {
        "ordinal": 5,
        "name": "data!: sqlx::types::Json<HashMap<String, serde_json::Value>>",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 6,
        "name": "severity!: DelphiSeverity",
        "type_info": {
          "Custom": {
            "name": "delphi_severity",
            "kind": {
              "Enum": [
                "low",
                "medium",
                "high",
                "severe"
              ]
            }
          }
        }
      },
      {
        "ordinal": 7,
        "name": "status!: DelphiStatus",
        "type_info": {
          "Custom": {
            "name": "delphi_report_issue_status",
            "kind": {
              "Enum": [
                "pending",
                "safe",
                "unsafe"
              ]
            }
          }
        }
      }
    ],
    "parameters": {
      "Left": [
        "Int8Array"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      true,
      false,
      false,
      false,
      null
    ]
  },
  "hash": "263ad3654f544ffb6061c839d49dada47fb382a76fdcabad2077fb1ef6d1010a"
}
