{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT values, a.normal_balance_type AS \"normal_balance_type!: DebitOrCredit\"\n            FROM cala_cumulative_effective_balances\n            JOIN cala_accounts a\n            ON account_id = a.id\n            WHERE journal_id = $1\n            AND account_id = $2\n            AND currency = $3\n            AND effective <= $4\n            ORDER BY effective DESC, version DESC\n            LIMIT 1\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "values",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 1,
        "name": "normal_balance_type!: DebitOrCredit",
        "type_info": {
          "Custom": {
            "name": "debitorcredit",
            "kind": {
              "Enum": [
                "debit",
                "credit"
              ]
            }
          }
        }
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Uuid",
        "Text",
        "Date"
      ]
    },
    "nullable": [
      false,
      false
    ]
  },
  "hash": "f1c05d5e666750f7bced3e29318173278cd087f3ccfa8cb70816c9ece21aad31"
}
