<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTicketsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tickets', function (Blueprint $table) { $table->bigIncrements('id'); $table->string('title'); $table->integer('employee_id'); $table->string('priority'); $table->date('end_date'); $table->text('description')->nullable(); $table->string('ticket_code'); $table->integer('created_by'); $table->string('status'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('tickets'); } }