create("registrations", function (Blueprint $table) { $table->id(); $table->foreignId("group_id")->constrained("groups"); $table->integer("group_amount"); $table->foreignId("game_jam_id")->constrained("game_jams"); $table->foreignId("game_data_id")->unique()->nullable()->constrained("game_data"); $table->timestamps(); });