#41 add fuel prices to the airports table
This commit is contained in:
parent
e6b338cd32
commit
d44d374218
@ -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',
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user