{
  "meta": {
    "$_POST": [
      {
        "type": "text",
        "name": "userid"
      },
      {
        "type": "text",
        "name": "roleid"
      }
    ]
  },
  "exec": {
    "steps": {
      "name": "insert",
      "module": "dbupdater",
      "action": "insert",
      "options": {
        "connection": "authdb",
        "sql": {
          "type": "insert",
          "values": [
            {
              "table": "xuserrole",
              "column": "userid",
              "type": "number",
              "value": "{{$_POST.userid}}"
            },
            {
              "table": "xuserrole",
              "column": "roleid",
              "type": "number",
              "value": "{{$_POST.roleid}}"
            }
          ],
          "table": "xuserrole",
          "returning": "id",
          "query": "insert into `xuserrole` (`roleid`, `userid`) values (?, ?)",
          "params": [
            {
              "name": ":P1",
              "type": "expression",
              "value": "{{$_POST.userid}}",
              "test": ""
            },
            {
              "name": ":P2",
              "type": "expression",
              "value": "{{$_POST.roleid}}",
              "test": ""
            }
          ]
        }
      },
      "meta": [
        {
          "name": "identity",
          "type": "text"
        },
        {
          "name": "affected",
          "type": "number"
        }
      ],
      "output": true
    }
  }
}