{
  "db_name": "PostgreSQL",
  "query": "\n        SELECT\n            r.id, r.key, r.name, r.audience, r.description,\n            r.department_id, d.name AS \"department_name?\",\n            r.is_active, r.can_approve_requests, r.can_manage_system_settings,\n            r.created_at\n        FROM roles r\n        LEFT JOIN departments d ON d.id = r.department_id\n        WHERE r.id = $1\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "key",
        "type_info": "Varchar"
      },
      {
        "ordinal": 2,
        "name": "name",
        "type_info": "Varchar"
      },
      {
        "ordinal": 3,
        "name": "audience",
        "type_info": "Varchar"
      },
      {
        "ordinal": 4,
        "name": "description",
        "type_info": "Text"
      },
      {
        "ordinal": 5,
        "name": "department_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 6,
        "name": "department_name?",
        "type_info": "Varchar"
      },
      {
        "ordinal": 7,
        "name": "is_active",
        "type_info": "Bool"
      },
      {
        "ordinal": 8,
        "name": "can_approve_requests",
        "type_info": "Bool"
      },
      {
        "ordinal": 9,
        "name": "can_manage_system_settings",
        "type_info": "Bool"
      },
      {
        "ordinal": 10,
        "name": "created_at",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false,
      true,
      true,
      false,
      false,
      false,
      false,
      false
    ]
  },
  "hash": "5d0b05bbdf8661781c356d70576c2a5b6b8b8e7bc95e533500ddd6d5ce63f4c1"
}
