WP QueryBuilder 1.6.2 is released.
Documentation
Library API
Create API

Create API

	function column(string $column_name): self;
 
    function int(int $size = 255): self;
 
    function bigInt(int $size = 255): self;
 
    function double(int $size = 255, int $d = 2): self;
 
    function boolean(): self;
 
    function string(int $size = 255): self;
 
    function text(int $size = 10000): self;
 
    function longText(int $size): self;
 
	function json(): self;
 
    function required(): self;
 
	function nullable(): self;
 
    function primary($columns = []): self;
 
    function index(array $columns): self;
 
    function date(): self;
 
    function dateTime(): self;
 
    function unsigned(): self;
 
    function autoIncrement(): self;
 
    function default($value): self;
 
    public function foreignKey(string $column, string $ref_table_column, string $on_delete = null): self;
 
    function getSql();
 
    function execute();