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 02:54:12 +08:00
|
|
|
$table->string('first_name');
|
|
|
|
$table->string('last_name');
|
2017-06-09 02:28:26 +08:00
|
|
|
$table->string('email')->unique();
|
|
|
|
$table->string('password');
|
2017-06-09 02:54:12 +08:00
|
|
|
$table->string('code');
|
|
|
|
$table->string('location');
|
|
|
|
$table->string('hub');
|
|
|
|
$table->unsignedBigInteger('flights');
|
|
|
|
$table->float('hours');
|
|
|
|
$table->float('pay');
|
|
|
|
$table->boolean('confirmed');
|
|
|
|
$table->boolean('retired');
|
|
|
|
$table->dateTime('last_pirep');
|
|
|
|
$table->dateTime('created_at');
|
|
|
|
$table->dateTime('updated_at');
|
2017-06-09 02:28:26 +08:00
|
|
|
$table->rememberToken();
|
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::drop('users');
|
|
|
|
}
|
|
|
|
}
|