{
  "meta": {
    "$_GET": [
      {
        "type": "text",
        "name": "id"
      }
    ]
  },
  "exec": {
    "steps": [
      {
        "name": "delete",
        "module": "dbupdater",
        "action": "delete",
        "options": {
          "connection": "authdb",
          "sql": {
            "type": "delete",
            "table": "xuserrole",
            "wheres": {
              "condition": "AND",
              "rules": [
                {
                  "id": "userid",
                  "field": "userid",
                  "type": "double",
                  "operator": "equal",
                  "value": "{{$_GET.id}}",
                  "data": {
                    "column": "userid"
                  },
                  "operation": "="
                }
              ],
              "conditional": null,
              "valid": true
            },
            "returning": "id",
            "query": "delete from `xuserrole` where `userid` = ?",
            "params": [
              {
                "operator": "equal",
                "type": "expression",
                "name": ":P1",
                "value": "{{$_GET.id}}",
                "test": ""
              }
            ]
          }
        },
        "meta": [
          {
            "name": "affected",
            "type": "number"
          }
        ],
        "output": true
      },
      {
        "name": "delete1",
        "module": "dbupdater",
        "action": "delete",
        "options": {
          "connection": "authdb",
          "sql": {
            "type": "delete",
            "table": "users",
            "wheres": {
              "condition": "AND",
              "rules": [
                {
                  "id": "id",
                  "field": "id",
                  "type": "double",
                  "operator": "equal",
                  "value": "{{$_GET.id}}",
                  "data": {
                    "column": "id"
                  },
                  "operation": "="
                }
              ],
              "conditional": null,
              "valid": true
            },
            "returning": "id",
            "query": "delete from `users` where `id` = ?",
            "params": [
              {
                "operator": "equal",
                "type": "expression",
                "name": ":P1",
                "value": "{{$_GET.id}}",
                "test": ""
              }
            ]
          }
        },
        "meta": [
          {
            "name": "affected",
            "type": "number"
          }
        ],
        "output": true
      },
      {
        "name": "api",
        "module": "api",
        "action": "send",
        "options": {
          "method": "DELETE",
          "url": "{{$_ENV.API_BASEURL+'xuserroles/byuser'+$_GET.id}}"
        },
        "output": true,
        "metaData": {}
      }
    ]
  }
}