2017-06-09 02:28:26 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
|
|
|
class CreateUsersTable extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::create('users', function (Blueprint $table) {
|
|
|
|
$table->increments('id');
|
2017-06-09 09:02:52 +08:00
|
|
|
$table->string('name');
|
|
|
|
$table->string('first_name')->nullable();
|
|
|
|
$table->string('last_name')->nullable();
|
2017-06-09 02:28:26 +08:00
|
|
|
$table->string('email')->unique();
|
|
|
|
$table->string('password');
|
2017-06-09 09:02:52 +08:00
|
|
|
$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();
|
2017-06-09 02:28:26 +08:00
|
|
|
$table->rememberToken();
|
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::drop('users');
|
|
|
|
}
|
|
|
|
}
|