id(); $table->string('name'); $table->string('description'); $table->string('slug'); $table->integer('difficulty')->default(0); $table->foreignId('image_id')->nullable()->constrained()->cascadeOnDelete(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('patches'); } };