Add first pass of pirep import; additional fields in flight/pirep tables #114

This commit is contained in:
Nabeel Shahzad
2018-01-29 18:14:55 -06:00
parent 5c164e2cf6
commit a5f51f6264
10 changed files with 206 additions and 30 deletions

View File

@@ -11,9 +11,8 @@ class Flight extends BaseModel
public $table = 'flights';
public $incrementing = false;
protected $dates = ['deleted_at'];
public $fillable = [
'id',
'airline_id',
'flight_number',
'route_code',
@@ -21,11 +20,12 @@ class Flight extends BaseModel
'dpt_airport_id',
'arr_airport_id',
'alt_airport_id',
'route',
'dpt_time',
'arr_time',
'level',
'distance',
'flight_type',
'route',
'notes',
'has_bid',
'active',
@@ -35,6 +35,7 @@ class Flight extends BaseModel
'flight_number' => 'integer',
'level' => 'integer',
'distance' => 'float',
'flight_type' => 'integer',
'has_bid' => 'boolean',
'active' => 'boolean',
];