{
  "db_name": "PostgreSQL",
  "query": "SELECT\n                WIDTH_BUCKET(\n                    EXTRACT(EPOCH FROM created)::bigint,\n                    EXTRACT(EPOCH FROM $1::timestamp with time zone AT TIME ZONE 'UTC')::bigint,\n                    EXTRACT(EPOCH FROM $2::timestamp with time zone AT TIME ZONE 'UTC')::bigint,\n                    $3::integer\n                ) AS bucket,\n                COALESCE(mod_id, 0) AS mod_id,\n                SUM(amount) amount_sum\n            FROM payouts_values\n            WHERE\n                user_id = $4\n                AND created BETWEEN $1 AND $2\n            GROUP BY bucket, mod_id",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "bucket",
        "type_info": "Int4"
      },
      {
        "ordinal": 1,
        "name": "mod_id",
        "type_info": "Int8"
      },
      {
        "ordinal": 2,
        "name": "amount_sum",
        "type_info": "Numeric"
      }
    ],
    "parameters": {
      "Left": [
        "Timestamptz",
        "Timestamptz",
        "Int4",
        "Int8"
      ]
    },
    "nullable": [
      null,
      null,
      null
    ]
  },
  "hash": "82b4d6e555dd727d31cca036b923611289b509ade9e1996d711598cd14c7f8fa"
}
