{
  "db_name": "PostgreSQL",
  "query": "\n        SELECT\n            c.id, c.name, c.slug, c.description, c.display_order, c.is_active,\n            COUNT(a.id) AS article_count\n        FROM kb_categories c\n        LEFT JOIN kb_articles a ON a.category_id = c.id\n        GROUP BY c.id\n        ORDER BY c.display_order ASC, c.name ASC\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "name",
        "type_info": "Varchar"
      },
      {
        "ordinal": 2,
        "name": "slug",
        "type_info": "Varchar"
      },
      {
        "ordinal": 3,
        "name": "description",
        "type_info": "Text"
      },
      {
        "ordinal": 4,
        "name": "display_order",
        "type_info": "Int4"
      },
      {
        "ordinal": 5,
        "name": "is_active",
        "type_info": "Bool"
      },
      {
        "ordinal": 6,
        "name": "article_count",
        "type_info": "Int8"
      }
    ],
    "parameters": {
      "Left": []
    },
    "nullable": [
      false,
      false,
      false,
      true,
      false,
      false,
      null
    ]
  },
  "hash": "1ef51ec77c3f2c2c7db139746dc0bc8807c8ac6bd0636a00cbac34a903673b52"
}
