relationships and roles

This commit is contained in:
2018-11-05 21:35:17 -06:00
parent 19b26cb54f
commit 67bb006812
4 changed files with 17 additions and 5 deletions
@@ -18,6 +18,7 @@ class CreateUserRolesTable extends Migration
$table->increments('id');
$table->integer('character_id');
$table->string('role')->default('None');
$table->foreign('character_id')->references('character_id')->on('users');
$table->timestamps();
});
}
@@ -17,6 +17,7 @@ class CreateEsiScopes extends Migration
Schema::create('EsiScopes', function(Blueprint $table) {
$table->increments('id');
$table->integer('character_id');
$table->foreign('character_id')->references('character_id')->on('EsiToken');
$table->string('scope');
$table->timestamps();
});