{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT\n                d.controller_did,\n                u.handle as \"handle?\",\n                d.granted_scopes,\n                d.granted_at,\n                CASE WHEN u.did IS NOT NULL\n                     THEN u.deactivated_at IS NULL AND u.takedown_ref IS NULL\n                     ELSE true\n                END as \"is_active!\",\n                u.did IS NOT NULL as \"is_local!\"\n            FROM account_delegations d\n            LEFT JOIN users u ON u.did = d.controller_did\n            WHERE d.delegated_did = $1 AND d.revoked_at IS NULL\n            ORDER BY d.granted_at DESC\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "controller_did",
        "type_info": "Text"
      },
      {
        "ordinal": 1,
        "name": "handle?",
        "type_info": "Text"
      },
      {
        "ordinal": 2,
        "name": "granted_scopes",
        "type_info": "Text"
      },
      {
        "ordinal": 3,
        "name": "granted_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 4,
        "name": "is_active!",
        "type_info": "Bool"
      },
      {
        "ordinal": 5,
        "name": "is_local!",
        "type_info": "Bool"
      }
    ],
    "parameters": {
      "Left": [
        "Text"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false,
      null,
      null
    ]
  },
  "hash": "dd6021dd12823e042b011b2c1507736a46c0dcf0eb94cb41de58f8ca0b3a2f08"
}
