[
  {
    "name": "",
    "module": "auth",
    "action": "restrict",
    "options": {
      "provider": "security",
      "permissions": [
        "Active"
      ]
    }
  },
  {
    "name": "list",
    "module": "dbupdater",
    "action": "custom",
    "options": {
      "connection": "db",
      "sql": {
        "query": "SELECT \n    dc.brand_id,\n    c.name,\n    COUNT(*) AS total\nFROM diecast_cars dc\nLEFT JOIN collections c ON c.id = dc.brand_id\nGROUP BY dc.brand_id, c.name\nORDER BY total DESC;",
        "params": []
      }
    },
    "output": true,
    "meta": [
      {
        "name": "series",
        "type": "number"
      },
      {
        "name": "name",
        "type": "text"
      },
      {
        "name": "total",
        "type": "text"
      }
    ],
    "outputType": "array"
  }
]