bigIncrements('id'); $table->unsignedBigInteger('mal_id')->unique()->default('0'); $table->float('score_begin')->default(0)->nullable(); $table->float('score_today')->default(0)->nullable(); $table->integer('watching')->default(0)->nullable(); $table->integer('members')->default(0)->nullable(); $table->foreign('mal_id')->references('mal_id')->on('anime'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('anime_details'); } }