{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT \n                owner, \n                premium, \n                usage.usage as \"usage?\", \n                workspace_settings.customer_id, \n                workspace_settings.plan, \n                COALESCE(cw.is_past_due, false) as \"is_past_due!\", \n                cw.max_tolerated_executions\n            FROM workspace\n            LEFT JOIN workspace_settings \n                ON workspace_settings.workspace_id = $1\n            LEFT JOIN usage \n                ON usage.id = $1\n                AND month_ = EXTRACT(YEAR FROM current_date) * 12 + EXTRACT(MONTH FROM current_date)\n                AND usage.is_workspace IS true\n            LEFT JOIN cloud_workspace_settings cw\n                ON cw.workspace_id = $1\n            WHERE workspace.id = $1\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "owner",
        "type_info": "Varchar"
      },
      {
        "ordinal": 1,
        "name": "premium",
        "type_info": "Bool"
      },
      {
        "ordinal": 2,
        "name": "usage?",
        "type_info": "Int4"
      },
      {
        "ordinal": 3,
        "name": "customer_id",
        "type_info": "Varchar"
      },
      {
        "ordinal": 4,
        "name": "plan",
        "type_info": "Varchar"
      },
      {
        "ordinal": 5,
        "name": "is_past_due!",
        "type_info": "Bool"
      },
      {
        "ordinal": 6,
        "name": "max_tolerated_executions",
        "type_info": "Int4"
      }
    ],
    "parameters": {
      "Left": [
        "Text"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      true,
      true,
      null,
      true
    ]
  },
  "hash": "ac4a375035049304db7ae084b2d1789afb8250adde6f38f458b115e787ed876f"
}
