{
  "meta": {
    "$_GET": [
      {
        "type": "text",
        "name": "cliente"
      },
      {
        "type": "text",
        "name": "status"
      }
    ],
    "$_POST": [
      {
        "type": "text",
        "name": "status_atendimento"
      }
    ]
  },
  "exec": {
    "steps": {
      "name": "update",
      "module": "dbupdater",
      "action": "update",
      "options": {
        "connection": "db",
        "sql": {
          "type": "update",
          "values": [
            {
              "table": "cadastro_participante",
              "column": "status_atendimento",
              "type": "text",
              "value": "{{$_GET.status}}"
            }
          ],
          "table": "cadastro_participante",
          "wheres": {
            "condition": "AND",
            "rules": [
              {
                "id": "id_cliente",
                "field": "id_cliente",
                "type": "double",
                "operator": "equal",
                "value": "{{$_GET.cliente}}",
                "data": {
                  "column": "id_cliente"
                },
                "operation": "="
              }
            ],
            "conditional": null,
            "valid": true
          },
          "returning": "id_cad_cliente",
          "query": "update \"cadastro_participante\" set \"status_atendimento\" = ? where \"id_cliente\" = ? returning \"id_cad_cliente\"",
          "params": [
            {
              "name": ":P1",
              "type": "expression",
              "value": "{{$_GET.status}}",
              "test": ""
            },
            {
              "operator": "equal",
              "type": "expression",
              "name": ":P2",
              "value": "{{$_GET.cliente}}",
              "test": ""
            }
          ]
        }
      },
      "meta": [
        {
          "name": "affected",
          "type": "number"
        }
      ]
    }
  }
}