#41 add fuel prices to the airports table

This commit is contained in:
Nabeel Shahzad 2017-07-05 13:25:40 -05:00
parent e6b338cd32
commit d44d374218
2 changed files with 11 additions and 2 deletions

View File

@ -17,7 +17,10 @@ class Airline extends Model
public $fillable = [
'code',
'name',
'active'
'fuel_100ll_cost',
'fuel_jeta_cost',
'fuel_mogas_cost',
'active',
];
/**
@ -28,7 +31,10 @@ class Airline extends Model
protected $casts = [
'code' => 'string',
'name' => 'string',
'active' => 'boolean'
'fuel_100ll_cost' => 'double',
'fuel_jeta_cost' => 'double',
'fuel_mogas_cost' => 'double',
'active' => 'boolean',
];
/**

View File

@ -19,6 +19,9 @@ class CreateAirportsTable extends Migration
$table->string('name');
$table->string('location')->nullable();
$table->string('country')->nullable();
$table->double('fuel_100ll_cost', 19, 2)->nullable();
$table->double('fuel_jeta_cost', 19, 2)->nullable();
$table->double('fuel_mogas_cost', 19, 2)->nullable();
$table->float('lat', 7, 4)->default(0.0);
$table->float('lon', 7, 4)->default(0.0);
$table->timestamps();