Add user setup to installer
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -3,7 +3,13 @@
|
||||
# want to modify or erase any of this here
|
||||
#
|
||||
|
||||
ranks:
|
||||
- id: 1
|
||||
name: New Pilot
|
||||
hours: 0
|
||||
airports:
|
||||
- id: KAUS
|
||||
iata: AUS
|
||||
icao: KAUS
|
||||
name: Austin-Bergstrom
|
||||
location: Austin, Texas, USA
|
||||
country: United States
|
||||
lat: 30.1945278
|
||||
lon: -97.6698889
|
||||
tz: America/Chicago
|
||||
|
||||
Reference in New Issue
Block a user