3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5 use Illuminate\Support\Facades\Schema;
7 return new class extends Migration
12 public function up(): void
14 Schema::create('jobs', function (Blueprint $table) {
15 $table->bigIncrements('id');
16 $table->string('queue')->index();
17 $table->longText('payload');
18 $table->unsignedTinyInteger('attempts');
19 $table->unsignedInteger('reserved_at')->nullable();
20 $table->unsignedInteger('available_at');
21 $table->unsignedInteger('created_at');
26 * Reverse the migrations.
28 public function down(): void
30 Schema::dropIfExists('jobs');