{
  "db_name": "PostgreSQL",
  "query": "\n        UPDATE deployments\n        SET\n            status = 'Stopped',\n            termination_reason = 'UserStopped',\n            controller_metadata = '{}',\n            updated_at = NOW()\n        WHERE id = $1\n        RETURNING\n            id, deployment_id, project_id, created_by_id,\n            status as \"status: DeploymentStatus\",\n            deployment_group, environment_id, expires_at,\n            termination_reason as \"termination_reason: _\",\n            completed_at, error_message, build_logs,\n            controller_metadata as \"controller_metadata: serde_json::Value\",\n            image, image_digest, rolled_back_from_deployment_id,\n            http_port, needs_reconcile, is_active,\n            deploying_started_at,\n            first_healthy_at, job_url, pull_request_url,\n            created_at, updated_at\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "deployment_id",
        "type_info": "Text"
      },
      {
        "ordinal": 2,
        "name": "project_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 3,
        "name": "created_by_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 4,
        "name": "status: DeploymentStatus",
        "type_info": "Text"
      },
      {
        "ordinal": 5,
        "name": "deployment_group",
        "type_info": "Text"
      },
      {
        "ordinal": 6,
        "name": "environment_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 7,
        "name": "expires_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 8,
        "name": "termination_reason: _",
        "type_info": {
          "Custom": {
            "name": "termination_reason",
            "kind": {
              "Enum": [
                "UserStopped",
                "Superseded",
                "Cancelled",
                "Failed",
                "Expired"
              ]
            }
          }
        }
      },
      {
        "ordinal": 9,
        "name": "completed_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 10,
        "name": "error_message",
        "type_info": "Text"
      },
      {
        "ordinal": 11,
        "name": "build_logs",
        "type_info": "Text"
      },
      {
        "ordinal": 12,
        "name": "controller_metadata: serde_json::Value",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 13,
        "name": "image",
        "type_info": "Text"
      },
      {
        "ordinal": 14,
        "name": "image_digest",
        "type_info": "Text"
      },
      {
        "ordinal": 15,
        "name": "rolled_back_from_deployment_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 16,
        "name": "http_port",
        "type_info": "Int4"
      },
      {
        "ordinal": 17,
        "name": "needs_reconcile",
        "type_info": "Bool"
      },
      {
        "ordinal": 18,
        "name": "is_active",
        "type_info": "Bool"
      },
      {
        "ordinal": 19,
        "name": "deploying_started_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 20,
        "name": "first_healthy_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 21,
        "name": "job_url",
        "type_info": "Text"
      },
      {
        "ordinal": 22,
        "name": "pull_request_url",
        "type_info": "Text"
      },
      {
        "ordinal": 23,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 24,
        "name": "updated_at",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false,
      false,
      false,
      true,
      true,
      true,
      true,
      true,
      true,
      true,
      true,
      true,
      true,
      false,
      false,
      false,
      true,
      true,
      true,
      true,
      false,
      false
    ]
  },
  "hash": "f09afbd1762036dd43281f80c4d860f2ecdf96dc799d5f7097c103119e14ac61"
}
