Add user setup to installer

This commit is contained in:
Nabeel Shahzad
2017-12-29 16:56:46 -06:00
parent 50da3a9e54
commit 7cd4bf5ffb
24 changed files with 28377 additions and 41 deletions

View File

@@ -20,7 +20,7 @@ class CreateUsersTable extends Migration
$table->string('password');
$table->string('api_key', 40)->nullable();
$table->unsignedInteger('airline_id');
$table->unsignedInteger('rank_id');
$table->unsignedInteger('rank_id')->nullable();
$table->string('home_airport_id', 5)->nullable();
$table->string('curr_airport_id', 5)->nullable();
$table->string('last_pirep_id', 12)->nullable();

View File

@@ -20,7 +20,7 @@ class CreateAirlinesTable extends Migration
$table->string('name', 50);
$table->string('country', 2)->nullable();
$table->string('logo', 255)->nullable();
$table->boolean('active');
$table->boolean('active')->default(true);
$table->timestamps();
$table->index('icao');

View File

@@ -15,6 +15,7 @@ class CreateAirportsTable extends Migration
$table->string('location', 100)->nullable();
$table->string('country', 64)->nullable();
$table->string('tz', 64)->nullable();
$table->boolean('hub')->default(true);
$table->unsignedDecimal('fuel_100ll_cost', 19)->default(0);
$table->unsignedDecimal('fuel_jeta_cost', 19)->default(0);
$table->unsignedDecimal('fuel_mogas_cost', 19)->default(0);