create static method
Creates a table schema.
tableName
is the name of the table to be created.
buildFunction
is a function that takes a Blueprint object as an argument.
make calls to the Blueprint object to define the schema.
Implementation
static String create(String tableName, Function(Blueprint) buildFunction) {
final blueprint = DB.connection()!.driver.initBlueprint(tableName, false);
buildFunction(blueprint);
return DB.connection()!.driver.executeBlueprint(blueprint);
}