{
  "db_name": "PostgreSQL",
  "query": "\n        SELECT\n            COUNT(*) as total_requests,\n            COALESCE(SUM(total_tokens), 0)::bigint as total_tokens,\n            SUM(total_cost)::float8 as total_cost\n        FROM http_analytics\n        WHERE model = $1\n            AND timestamp >= $2\n            AND timestamp <= $3\n            AND user_id IS NOT NULL\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "total_requests",
        "type_info": "Int8"
      },
      {
        "ordinal": 1,
        "name": "total_tokens",
        "type_info": "Int8"
      },
      {
        "ordinal": 2,
        "name": "total_cost",
        "type_info": "Float8"
      }
    ],
    "parameters": {
      "Left": [
        "Text",
        "Timestamptz",
        "Timestamptz"
      ]
    },
    "nullable": [
      null,
      null,
      null
    ]
  },
  "hash": "012a8e3c197fbb7f86182901042294b2c8f590c08a787cde0f64286374819451"
}
