id(); $table->string('name'); $table->unsignedInteger('nami_id'); }); Schema::create('subscriptions', function (Blueprint $table) { $table->id(); $table->string('name'); $table->unsignedInteger('amount'); $table->foreignId('fee_id')->constrained(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('subscriptions'); Schema::dropIfExists('fees'); } }