Add distance and planned_distance to PIREP api

This commit is contained in:
Nabeel Shahzad 2018-01-29 16:27:55 -06:00
parent 23dbbc788f
commit c55b55726e
4 changed files with 9 additions and 0 deletions

View File

@ -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();

View File

@ -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',

View File

@ -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',

View File

@ -31,6 +31,8 @@ class Pirep extends BaseModel
'airline_id',
'aircraft_id',
'altitude',
'distance',
'planned_distance',
'flight_time',
'planned_flight_time',
'dpt_airport_id',