Add distance and planned_distance to PIREP api
This commit is contained in:
parent
23dbbc788f
commit
c55b55726e
@ -27,6 +27,8 @@ class CreatePirepTables extends Migration
|
||||
$table->string('route_leg', 5)->nullable();
|
||||
$table->string('dpt_airport_id', 5);
|
||||
$table->string('arr_airport_id', 5);
|
||||
$table->unsignedInteger('distance')->nullable();
|
||||
$table->unsignedInteger('planned_distance')->nullable();
|
||||
$table->unsignedInteger('altitude')->nullable();
|
||||
$table->unsignedInteger('level')->nullable();
|
||||
$table->unsignedDecimal('flight_time', 19)->nullable();
|
||||
|
@ -30,6 +30,9 @@ class FileRequest extends FormRequest
|
||||
'flight_id' => 'nullable',
|
||||
'route_code' => 'nullable',
|
||||
'route_leg' => 'nullable',
|
||||
'distance' => 'nullable|numeric',
|
||||
'planned_distance' => 'nullable|numeric',
|
||||
'flight_time' => 'nullable|integer',
|
||||
'planned_flight_time' => 'nullable|integer',
|
||||
'level' => 'nullable',
|
||||
'route' => 'nullable',
|
||||
|
@ -26,6 +26,8 @@ class PrefileRequest extends FormRequest
|
||||
'flight_number' => 'required',
|
||||
'route_code' => 'nullable',
|
||||
'route_leg' => 'nullable',
|
||||
'distance' => 'nullable|numeric',
|
||||
'planned_distance' => 'nullable|numeric',
|
||||
'flight_time' => 'nullable|integer',
|
||||
'planned_flight_time' => 'nullable|integer',
|
||||
'level' => 'required|integer',
|
||||
|
@ -31,6 +31,8 @@ class Pirep extends BaseModel
|
||||
'airline_id',
|
||||
'aircraft_id',
|
||||
'altitude',
|
||||
'distance',
|
||||
'planned_distance',
|
||||
'flight_time',
|
||||
'planned_flight_time',
|
||||
'dpt_airport_id',
|
||||
|
Loading…
Reference in New Issue
Block a user