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:
@@ -1,10 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\Models\Traits\HashId;
|
||||
|
||||
class Acars extends Model
|
||||
class Acars extends BaseModel
|
||||
{
|
||||
use HashId;
|
||||
public $incrementing = false;
|
||||
|
||||
public $table = 'acars';
|
||||
|
||||
public $fillable = [
|
||||
'pirep_id',
|
||||
'name',
|
||||
'lat',
|
||||
'lon',
|
||||
'altitude',
|
||||
'vs',
|
||||
'gs',
|
||||
'transponder',
|
||||
'autopilot',
|
||||
'fuel_flow',
|
||||
'sim_time',
|
||||
];
|
||||
|
||||
/**
|
||||
* FKs
|
||||
*/
|
||||
|
||||
public function pirep()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Pirep', 'pirep_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user