relationships

This commit is contained in:
2018-11-05 21:38:35 -06:00
parent 67bb006812
commit 834ddfe34f
@@ -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();