add airline reference to PIREP

This commit is contained in:
Nabeel Shahzad
2017-07-23 09:45:33 -05:00
parent 0dcdd5cba5
commit 9986f5df33
3 changed files with 150 additions and 128 deletions

View File

@@ -15,9 +15,10 @@ class CreatePirepsTable extends Migration
{
Schema::create('pireps', function (Blueprint $table) {
$table->uuid('id');
$table->integer('user_id');
$table->integer('user_id')->unsigned();
$table->integer('airline_id')->unsigned()->nullable();
$table->uuid('flight_id')->nullable();
$table->integer('aircraft_id');
$table->integer('aircraft_id')->nullable();
$table->string('route_code', 5)->nullable();
$table->string('route_leg', 5)->nullable();
$table->integer('dpt_airport_id')->unsigned();