{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT n.id, n.user_id, n.name, n.text, n.link, n.created, n.read, n.type notification_type, n.body,\n            JSONB_AGG(DISTINCT jsonb_build_object('id', na.id, 'notification_id', na.notification_id, 'name', na.name, 'action_route_method', na.action_route_method, 'action_route', na.action_route)) filter (where na.id is not null) actions\n            FROM notifications n\n            LEFT OUTER JOIN notifications_actions na on n.id = na.notification_id\n            WHERE n.user_id = $1\n            GROUP BY n.id, n.user_id\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Int8"
      },
      {
        "ordinal": 1,
        "name": "user_id",
        "type_info": "Int8"
      },
      {
        "ordinal": 2,
        "name": "name",
        "type_info": "Varchar"
      },
      {
        "ordinal": 3,
        "name": "text",
        "type_info": "Varchar"
      },
      {
        "ordinal": 4,
        "name": "link",
        "type_info": "Varchar"
      },
      {
        "ordinal": 5,
        "name": "created",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 6,
        "name": "read",
        "type_info": "Bool"
      },
      {
        "ordinal": 7,
        "name": "notification_type",
        "type_info": "Varchar"
      },
      {
        "ordinal": 8,
        "name": "body",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 9,
        "name": "actions",
        "type_info": "Jsonb"
      }
    ],
    "parameters": {
      "Left": [
        "Int8"
      ]
    },
    "nullable": [
      false,
      false,
      true,
      true,
      true,
      false,
      false,
      true,
      true,
      null
    ]
  },
  "hash": "bc21f3bef3585780f445725576ca6a1a9e89a896a8e8cfaae46137d22d40a837"
}
