{
  "meta": {
    "$_GET": [
      {
        "type": "number",
        "name": "todo_id"
      }
    ]
  },
  "exec": {
    "steps": [
      {
        "name": "",
        "module": "auth",
        "action": "restrict",
        "options": {
          "provider": "security",
          "permissions": [
            "Active"
          ]
        }
      },
      {
        "name": "queryTransactions",
        "module": "dbconnector",
        "action": "select",
        "options": {
          "connection": "db",
          "sql": {
            "type": "SELECT",
            "columns": [
              {
                "table": "todo_transactions",
                "column": "*"
              }
            ],
            "table": {
              "name": "todo_transactions"
            },
            "primary": "id",
            "joins": [],
            "wheres": {
              "condition": "AND",
              "rules": [
                {
                  "id": "todo_transactions.todo_id",
                  "field": "todo_transactions.todo_id",
                  "type": "double",
                  "operator": "equal",
                  "value": "{{$_GET.todo_id}}",
                  "data": {
                    "table": "todo_transactions",
                    "column": "todo_id",
                    "type": "number",
                    "columnObj": {
                      "type": "integer",
                      "primary": false,
                      "nullable": false,
                      "name": "todo_id"
                    }
                  },
                  "operation": "="
                }
              ],
              "conditional": null,
              "valid": true
            },
            "query": "select * from `todo_transactions` where `todo_transactions`.`todo_id` = ? order by `todo_transactions`.`created_at` DESC",
            "params": [
              {
                "operator": "equal",
                "type": "expression",
                "name": ":P1",
                "value": "{{$_GET.todo_id}}",
                "test": ""
              }
            ],
            "orders": [
              {
                "table": "todo_transactions",
                "column": "created_at",
                "direction": "DESC",
                "recid": 1
              }
            ]
          }
        },
        "output": true,
        "meta": [
          {
            "type": "number",
            "name": "id"
          },
          {
            "type": "number",
            "name": "todo_id"
          },
          {
            "type": "text",
            "name": "type"
          },
          {
            "type": "number",
            "name": "amount"
          },
          {
            "type": "text",
            "name": "note"
          },
          {
            "type": "datetime",
            "name": "created_at"
          }
        ],
        "outputType": "array"
      }
    ]
  }
}