set/add timezone information for airports and users

This commit is contained in:
Nabeel Shahzad
2017-12-06 16:07:25 -06:00
parent 43e9603fbc
commit f0309e65de
13 changed files with 124 additions and 52 deletions

View File

@@ -12,6 +12,7 @@ class Airport extends Model
{
public $table = 'airports';
public $timestamps = false;
public $incrementing = false;
public $fillable = [
'id',
@@ -20,11 +21,15 @@ class Airport extends Model
'location',
'lat',
'lon',
'timezone',
'fuel_100ll_cost',
'fuel_jeta_cost',
'fuel_mogas_cost',
];
protected $casts = [
'id' => 'string',
];
/**
* Validation rules
*

View File

@@ -64,6 +64,7 @@ class User extends Authenticatable
'home_airport_id',
'curr_airport_id',
'rank_id',
'timezone',
'active',
];