Creating Tables and Views
create
schema.create( "users", function( table ) {
table.increments( "id" );
table.string( "email" );
table.string( "password" );
table.timestamp( "created_date" );
table.timestamp( "modified_date" );
table.timestamp( "last_logged_in" ).nullable();
} );createAs
Argument
Type
Required
Default
Description
createView
Argument
Type
Required
Default
Description
Was this helpful?