esitoken model and relationship

This commit is contained in:
2018-11-05 11:42:45 -06:00
parent 92a990c477
commit 9ca1415e10
2 changed files with 6 additions and 1 deletions
@@ -15,7 +15,8 @@ class CreateEsiTokens extends Migration
{
Schema::create('EsiTokens', function(Blueprint $table) {
$table->integer('id')->increments();
$table->integer('character_id');
$table->integer('character_id')->unique();
$table->foreign('character_id')->references('character_id')->on('users');
$table->string('access_token');
$table->string('refresh_token');
$table->integer('expires_in');