Add fuel_used column to PIREPs table
This commit is contained in:
parent
7300cdddf4
commit
9a426f79f9
@ -43,6 +43,7 @@ $factory->define(App\Models\Pirep::class, function (Faker $faker) {
|
|||||||
'planned_flight_time' => $faker->randomFloat(2),
|
'planned_flight_time' => $faker->randomFloat(2),
|
||||||
'zfw' => $faker->randomFloat(2),
|
'zfw' => $faker->randomFloat(2),
|
||||||
'block_fuel' => $faker->randomFloat(2),
|
'block_fuel' => $faker->randomFloat(2),
|
||||||
|
'fuel_used' => $faker->randomFloat(2),
|
||||||
'route' => $faker->text(200),
|
'route' => $faker->text(200),
|
||||||
'notes' => $faker->text(200),
|
'notes' => $faker->text(200),
|
||||||
'source' => $faker->randomElement([PirepSource::MANUAL, PirepSource::ACARS]),
|
'source' => $faker->randomElement([PirepSource::MANUAL, PirepSource::ACARS]),
|
||||||
|
@ -35,6 +35,7 @@ class CreatePirepTables extends Migration
|
|||||||
$table->unsignedDecimal('planned_flight_time', 19)->nullable();
|
$table->unsignedDecimal('planned_flight_time', 19)->nullable();
|
||||||
$table->unsignedDecimal('zfw', 19)->nullable();
|
$table->unsignedDecimal('zfw', 19)->nullable();
|
||||||
$table->unsignedDecimal('block_fuel', 19)->nullable();
|
$table->unsignedDecimal('block_fuel', 19)->nullable();
|
||||||
|
$table->unsignedDecimal('fuel_used', 19)->nullable();
|
||||||
$table->decimal('landing_rate', 19)->nullable();
|
$table->decimal('landing_rate', 19)->nullable();
|
||||||
$table->text('route')->nullable();
|
$table->text('route')->nullable();
|
||||||
$table->text('notes')->nullable();
|
$table->text('notes')->nullable();
|
||||||
|
@ -22,6 +22,7 @@ class FileRequest extends FormRequest
|
|||||||
{
|
{
|
||||||
$rules = [
|
$rules = [
|
||||||
'flight_time' => 'required|integer',
|
'flight_time' => 'required|integer',
|
||||||
|
'fuel_used' => 'required|numeric',
|
||||||
|
|
||||||
'airline_id' => 'nullable|exists:airlines,id',
|
'airline_id' => 'nullable|exists:airlines,id',
|
||||||
'aircraft_id' => 'nullable|exists:aircraft,id',
|
'aircraft_id' => 'nullable|exists:aircraft,id',
|
||||||
|
@ -36,6 +36,7 @@ class Pirep extends BaseModel
|
|||||||
'planned_flight_time',
|
'planned_flight_time',
|
||||||
'zfw',
|
'zfw',
|
||||||
'block_fuel',
|
'block_fuel',
|
||||||
|
'fuel_used',
|
||||||
'landing_rate',
|
'landing_rate',
|
||||||
'route',
|
'route',
|
||||||
'notes',
|
'notes',
|
||||||
@ -60,6 +61,7 @@ class Pirep extends BaseModel
|
|||||||
'planned_flight_time' => 'integer',
|
'planned_flight_time' => 'integer',
|
||||||
'zfw' => 'float',
|
'zfw' => 'float',
|
||||||
'block_fuel' => 'float',
|
'block_fuel' => 'float',
|
||||||
|
'fuel_used' => 'float',
|
||||||
'landing_rate' => 'float',
|
'landing_rate' => 'float',
|
||||||
'source' => 'integer',
|
'source' => 'integer',
|
||||||
'flight_type' => 'integer',
|
'flight_type' => 'integer',
|
||||||
|
Loading…
Reference in New Issue
Block a user