phpvms/database/migrations/2017_06_08_0000_create_users_table.php
2017-06-08 20:02:52 -05:00

47 lines
1.3 KiB
PHP
Executable File

<?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');
$table->string('name');
$table->string('first_name')->nullable();
$table->string('last_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->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('users');
}
}