Edit file File name : 2023_01_25_134037_create_schedules_table.php Content :<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateSchedulesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('schedules', function (Blueprint $table) { $table->integer('id', true); $table->integer('atendimento_id')->nullable(); $table->integer('status')->nullable()->default(1); $table->string('description'); $table->date('date'); $table->time('hour')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('schedules'); } } Save