added primary keys to all models

This commit is contained in:
2021-03-10 23:29:30 +09:00
parent 91bde37441
commit 4db6dac439
35 changed files with 197 additions and 19 deletions
+5 -1
View File
@@ -28,7 +28,11 @@ class EsiToken extends Model
'expires_in',
];
public function user() {
return $this->belongsTo(App\Models\User\User::class, 'character_id', 'character_id');
}
public function esiscopes() {
return $this->hasMany('App\Models\EsiScope', 'character_id', 'character_id');
return $this->hasMany(App\Models\EsiScope::class, 'character_id', 'character_id');
}
}