<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; class CreateChecklistsTable extends Migration { /* * Run the migrations. * * @return void */ public function up() { /* * Table: checklists */ Schema::create('checklists', function ($table) { $table->increments('id'); $table->string('name', 255)->nullable(); $table->enum('type', ['Safety Checklist','Equipment Checklist','Risk Assessment'])->nullable(); $table->text('slug')->nullable(); $table->integer('user_id')->nullable(); $table->string('user_type', 255)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('checklists'); } }