Airlines model and controller

This commit is contained in:
Nabeel Shahzad
2017-06-08 20:02:52 -05:00
parent 1e049fa8a9
commit 4fcfc84ccf
25 changed files with 724 additions and 138 deletions

View File

@@ -0,0 +1,46 @@
<?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');
}
}