/** * Runs the migrations. * * @param Blueprint $table * * @return void */ public function up($table) { $table->increments('id'); $table->integer('map_id')->unsigned(); $table->foreign('map_id')->references('id')->on('maps')->onDelete('cascade'); $table->integer('current_round'); $table->string('type'); $table->json('data'); $table->timestamps(); }