style and updates to the dashboard

This commit is contained in:
Nabeel Shahzad
2017-08-04 20:17:04 -05:00
parent 021083f58e
commit 6e3f293fcb
4 changed files with 132 additions and 25 deletions

View File

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

View File

@@ -17,7 +17,7 @@ users:
home_airport_id: 1
curr_airport_id: 2
flights: 1
flight_time: 21600
flight_time: 43200
created_at: now
updated_at: now
@@ -198,6 +198,7 @@ user_flights:
pireps:
- id: pirepid_1
user_id: 1
airline_id: 1
flight_id: flightid_1
aircraft_id: 1
dpt_airport_id: 1
@@ -206,6 +207,17 @@ pireps:
level: 320
status: -1
notes: just a pilot report
- id: pirepid_2
user_id: 1
airline_id: 1
flight_id: flightid_2
aircraft_id: 1
dpt_airport_id: 2
arr_airport_id: 1
flight_time: 21600 # 6 hours
level: 320
status: -1
notes: just a pilot report
pirep_fields:
- id: 1