{
  "db_name": "PostgreSQL",
  "query": "\n        UPDATE service_accounts\n        SET\n            issuer_url = COALESCE($2, issuer_url),\n            claims = COALESCE($3, claims),\n            allowed_environment_ids = CASE WHEN $4 THEN $5 ELSE allowed_environment_ids END,\n            updated_at = NOW()\n        WHERE id = $1 AND deleted_at IS NULL\n        RETURNING id, project_id, user_id, issuer_url, claims, sequence, allowed_environment_ids,\n                  deleted_at, created_at, updated_at\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "project_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 2,
        "name": "user_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 3,
        "name": "issuer_url",
        "type_info": "Text"
      },
      {
        "ordinal": 4,
        "name": "claims",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 5,
        "name": "sequence",
        "type_info": "Int4"
      },
      {
        "ordinal": 6,
        "name": "allowed_environment_ids",
        "type_info": "UuidArray"
      },
      {
        "ordinal": 7,
        "name": "deleted_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 8,
        "name": "created_at",
        "type_info": "Timestamptz"
      },
      {
        "ordinal": 9,
        "name": "updated_at",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Text",
        "Jsonb",
        "Bool",
        "UuidArray"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false,
      false,
      false,
      true,
      true,
      false,
      false
    ]
  },
  "hash": "e3965349ea8bf5ed1cd30baa8b9e3f88226122595640a36ac3b0640cb3fb44ea"
}
