add PIREP pre-file and ACARS updates; removing caching from ACARS/Pirep/User repositories; adjust PirepState enum values; add additional columns
This commit is contained in:
@@ -37,6 +37,7 @@ class User extends Authenticatable
|
||||
'airline_id',
|
||||
'home_airport_id',
|
||||
'curr_airport_id',
|
||||
'last_pirep_id',
|
||||
'rank_id',
|
||||
'timezone',
|
||||
'state',
|
||||
@@ -96,6 +97,11 @@ class User extends Authenticatable
|
||||
return $this->belongsTo('App\Models\Airport', 'curr_airport_id');
|
||||
}
|
||||
|
||||
public function last_pirep()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Pirep', 'last_pirep_id');
|
||||
}
|
||||
|
||||
public function bids()
|
||||
{
|
||||
return $this->hasMany('App\Models\UserBid', 'user_id');
|
||||
|
||||
Reference in New Issue
Block a user