Laravel Users and Roles Migrations

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
Schema::create('users', function($table) {
$table->increments('id');
$table->string('forename', 32);
$table->string('surname', 32);
$table->string('email', 64)->unique();
$table->string('password', 128);
$table->integer('role');
$table->string('remember_token', 300);
$table->timestamps();
});
Schema::create('roles', function($table) {
$table->increments('id');
$table->string('name', 32);
$table->text('about');
});