relationships and roles
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user