View file File name : 2023_08_23_145015_create_tickets_table.php Content :<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateTicketsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tickets', function (Blueprint $table) { $table->id('ticket_id')->autoIncrement(); $table->integer('status_id')->default(1); $table->integer('solicitante_id'); $table->string('solicitante_nome', 250); $table->integer('atendente_id')->nullable(); $table->string('ultimaResposta', 250)->nullable(); $table->integer('categoria_id'); $table->timestamps(); $table->index('status_id'); $table->index('solicitante_id'); $table->index('atendente_id'); $table->index('categoria_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('tickets'); } }