{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT COALESCE(SUM(\n                CASE WHEN transaction_type IN ('admin_grant', 'purchase') THEN amount ELSE -amount END\n            ), 0) as \"sum!\"\n            FROM credits_transactions\n            WHERE user_id = $1\n              AND created_at > $2\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "sum!",
        "type_info": "Numeric"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Timestamptz"
      ]
    },
    "nullable": [
      null
    ]
  },
  "hash": "929fac35bc3013b287fa189ace3f16c0b0ca80602ed687d9e53981a1b138efd7"
}
