more schema adjustments to tighten up column types and constraints

This commit is contained in:
Nabeel Shahzad
2017-06-21 11:40:08 -05:00
parent 8dd29476c0
commit 381a713882
13 changed files with 19 additions and 43 deletions

View File

@@ -18,18 +18,18 @@ class CreateUsersTable extends Migration
$table->string('name')->nullable();
$table->string('email')->unique();
$table->string('password');
$table->string('code')->nullable();
$table->string('location')->nullable();
$table->string('hub')->nullable();
$table->unsignedBigInteger('flights')->nullable();
$table->float('hours')->nullable();
$table->float('pay')->nullable();
$table->boolean('confirmed')->nullable();
$table->boolean('retired')->nullable();
$table->dateTime('last_pirep')->nullable();
$table->integer('timezone')->default(0);
$table->integer('airline_id')->nullable()->unsigned();
$table->integer('home_airport_id')->nullable()->unsigned();
$table->integer('curr_airport_id')->nullable()->unsigned();
$table->bigInteger('last_pirep_id')->nullable()->unsigned();
$table->bigInteger('flights')->nullable()->unsigned();
$table->bigInteger('flight_time')->nullable()->unsigned();
$table->decimal('balance', 19, 2)->nullable();
$table->tinyInteger('timezone')->default(0);
$table->boolean('active')->nullable();
$table->rememberToken();
$table->timestamps();
$table->softDeletes();
});
// Create table for storing roles