id(); $table->string('nombre', 100); $table->timestamps(); }); Schema::create('barrios', function (Blueprint $table) { $table->id(); $table->string('nombre', 100); $table->unsignedBigInteger('region_id'); $table->timestamps(); $table->foreign('region_id')->references('id')->on('regiones'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('barrios'); Schema::dropIfExists('regiones'); } };