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