2017_11_30_091756_create_cutoffs_table.php
679 Bytes
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCutoffsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('cutoffs', function (Blueprint $table) {
$table->increments('id');
$table->integer('user_id')->index('user_id');
$table->time('starttime');
$table->time('endtime');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('cutoffs');
}
}