{
  "meta": {
    "$_GET": [
      {
        "type": "text",
        "name": "sort"
      },
      {
        "type": "text",
        "name": "dir"
      }
    ]
  },
  "exec": {
    "steps": [
      {
        "name": "",
        "module": "auth",
        "action": "restrict",
        "options": {
          "provider": "security",
          "permissions": [
            "Active"
          ]
        }
      },
      {
        "name": "querySomeday",
        "module": "dbconnector",
        "action": "select",
        "options": {
          "connection": "db",
          "sql": {
            "type": "SELECT",
            "columns": [
              {
                "table": "todos",
                "column": "*"
              }
            ],
            "table": {
              "name": "todos"
            },
            "primary": "id",
            "joins": [],
            "wheres": {
              "condition": "AND",
              "rules": [
                {
                  "id": "todos.section",
                  "field": "todos.section",
                  "type": "string",
                  "operator": "equal",
                  "value": "someday",
                  "data": {
                    "table": "todos",
                    "column": "section",
                    "type": "text",
                    "columnObj": {
                      "type": "enum",
                      "primary": false,
                      "nullable": false,
                      "name": "section"
                    }
                  },
                  "operation": "="
                }
              ],
              "conditional": null,
              "valid": true
            },
            "query": "select * from `todos` where `todos`.`section` = 'someday' order by `todos`.`created_at` DESC",
            "params": [],
            "orders": [
              {
                "table": "todos",
                "column": "created_at",
                "direction": "DESC",
                "recid": 1
              }
            ]
          }
        },
        "output": true,
        "meta": [
          {
            "type": "number",
            "name": "id"
          },
          {
            "type": "text",
            "name": "title"
          },
          {
            "type": "text",
            "name": "description"
          },
          {
            "type": "text",
            "name": "category"
          },
          {
            "type": "text",
            "name": "priority"
          },
          {
            "type": "text",
            "name": "section"
          },
          {
            "type": "date",
            "name": "due_date"
          },
          {
            "type": "boolean",
            "name": "is_financial"
          },
          {
            "type": "boolean",
            "name": "is_recurring"
          },
          {
            "type": "boolean",
            "name": "is_completed"
          },
          {
            "type": "datetime",
            "name": "completed_at"
          },
          {
            "type": "datetime",
            "name": "created_at"
          },
          {
            "type": "datetime",
            "name": "updated_at"
          }
        ],
        "outputType": "array"
      }
    ]
  }
}