{
  "meta": {
    "$_POST": [
      {
        "type": "number",
        "name": "id"
      },
      {
        "type": "text",
        "name": "firstname"
      },
      {
        "type": "text",
        "name": "lastname"
      },
      {
        "type": "text",
        "name": "email"
      },
      {
        "type": "text",
        "name": "pwd"
      }
    ]
  },
  "exec": {
    "steps": {
      "name": "update",
      "module": "dbupdater",
      "action": "update",
      "options": {
        "connection": "authdb",
        "sql": {
          "type": "update",
          "values": [
            {
              "table": "users",
              "column": "firstname",
              "type": "text",
              "value": "{{$_POST.firstname}}"
            },
            {
              "table": "users",
              "column": "lastname",
              "type": "text",
              "value": "{{$_POST.lastname}}"
            },
            {
              "table": "users",
              "column": "email",
              "type": "text",
              "value": "{{$_POST.email}}"
            },
            {
              "table": "users",
              "column": "pwd",
              "type": "text",
              "value": "{{$_POST.pwd}}"
            },
            {
              "table": "users",
              "column": "validated",
              "type": "boolean",
              "value": "1"
            },
            {
              "table": "users",
              "column": "regcode",
              "type": "text",
              "value": ""
            },
            {
              "table": "users",
              "column": "regdate",
              "type": "datetime",
              "value": "{{NOW}}"
            }
          ],
          "table": "users",
          "wheres": {
            "condition": "AND",
            "rules": [
              {
                "id": "id",
                "type": "double",
                "operator": "equal",
                "value": "{{$_POST.id}}",
                "data": {
                  "column": "id"
                },
                "operation": "="
              }
            ]
          },
          "returning": "id",
          "query": "update `users` set `firstname` = ?, `lastname` = ?, `email` = ?, `pwd` = ?, `validated` = ?, `regcode` = ?, `regdate` = ? where `id` = ? returning `id`",
          "params": [
            {
              "name": ":P1",
              "type": "expression",
              "value": "{{$_POST.firstname}}",
              "test": ""
            },
            {
              "name": ":P2",
              "type": "expression",
              "value": "{{$_POST.lastname}}",
              "test": ""
            },
            {
              "name": ":P3",
              "type": "expression",
              "value": "{{$_POST.email}}",
              "test": ""
            },
            {
              "name": ":P4",
              "type": "expression",
              "value": "{{$_POST.pwd}}",
              "test": ""
            },
            {
              "name": ":P5",
              "type": "expression",
              "value": "{{NOW}}",
              "test": ""
            },
            {
              "operator": "equal",
              "type": "expression",
              "name": ":P6",
              "value": "{{$_POST.id}}",
              "test": ""
            }
          ]
        }
      },
      "meta": [
        {
          "name": "affected",
          "type": "number"
        }
      ]
    }
  }
}