relationships
This commit is contained in:
@@ -16,7 +16,7 @@ class CreateUserRolesTable extends Migration
|
||||
if(!Schema::hasTable('user_roles')) {
|
||||
Schema::create('user_roles', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('character_id');
|
||||
$table->integer('character_id')->index();
|
||||
$table->string('role')->default('None');
|
||||
$table->foreign('character_id')->references('character_id')->on('users');
|
||||
$table->timestamps();
|
||||
|
||||
Reference in New Issue
Block a user