#21 file PIREP; populate custom fields and set correct status

This commit is contained in:
Nabeel Shahzad
2017-08-23 14:19:05 -05:00
parent 2c41144c61
commit 0d29369e54
7 changed files with 168 additions and 89 deletions

View File

@@ -17,8 +17,9 @@ class CreatePirepsTable extends Migration
$table->uuid('id');
$table->integer('user_id')->unsigned();
$table->integer('airline_id')->unsigned();
$table->uuid('flight_id')->nullable();
$table->integer('aircraft_id')->nullable();
$table->uuid('flight_id')->nullable();
$table->string('flight_number', 10)->nullable();
$table->string('route_code', 5)->nullable();
$table->string('route_leg', 5)->nullable();
$table->integer('dpt_airport_id')->unsigned();
@@ -26,7 +27,6 @@ class CreatePirepsTable extends Migration
$table->double('flight_time', 19, 2)->unsigned();
$table->double('gross_weight', 19, 2)->nullable();
$table->double('fuel_used', 19, 2)->nullable();
$table->integer('level')->unsigned();
$table->string('route')->nullable();
$table->string('notes')->nullable();
$table->tinyInteger('source')->default(0);

View File

@@ -232,7 +232,6 @@ pireps:
dpt_airport_id: 1
arr_airport_id: 2
flight_time: 21600 # 6 hours
level: 320
status: -1
notes: just a pilot report
- id: pirepid_2
@@ -243,7 +242,6 @@ pireps:
dpt_airport_id: 2
arr_airport_id: 1
flight_time: 21600 # 6 hours
level: 320
status: -1
notes: just a pilot report