Expand flight types to match IATA SSIM

This commit is contained in:
Nabeel Shahzad
2018-03-29 11:34:36 -05:00
parent ec553f06c8
commit b31384f429
7 changed files with 53 additions and 14093 deletions

View File

@@ -28,7 +28,7 @@ class CreateFlightTables extends Migration
$table->unsignedInteger('level')->nullable()->default(0);
$table->unsignedDecimal('distance')->nullable()->default(0.0);
$table->unsignedInteger('flight_time')->nullable();
$table->tinyInteger('flight_type')->default(FlightType::PASSENGER);
$table->char('flight_type', 1)->default(FlightType::SCHED_PAX);
$table->text('route')->nullable();
$table->text('notes')->nullable();
$table->boolean('has_bid')->default(false);

View File

@@ -38,7 +38,7 @@ class CreatePirepTables extends Migration
$table->text('notes')->nullable();
$table->unsignedTinyInteger('source')->nullable()->default(0);
$table->string('source_name', 25)->nullable();
$table->tinyInteger('flight_type')->default(FlightType::PASSENGER);
$table->tinyInteger('flight_type')->default(FlightType::SCHED_PAX);
$table->tinyInteger('state')->default(PirepState::PENDING);
$table->tinyInteger('status')->default(PirepStatus::SCHEDULED);
$table->timestamps();

View File

@@ -315,6 +315,7 @@ flights:
level: 360
dpt_time: 6PM CST
arr_time: 11PM EST
flight_type: J
created_at: NOW
updated_at: NOW
- id: flightid_2
@@ -325,6 +326,7 @@ flights:
arr_airport_id: LGRP
dpt_time: 9AM CST
arr_time: 1030AM CST
flight_type: J
route: PITZZ4 MNURE WLEEE4
created_at: NOW
updated_at: NOW
@@ -335,6 +337,7 @@ flights:
route_leg: 1
dpt_airport_id: EGLL
arr_airport_id: KJFK
flight_type: J
dpt_time: 9AM CST
arr_time: 1030AM CST
route: PITZZ4 MNURE WLEEE4