id(); $table->string('full_name_ru'); $table->string('full_name_en'); $table->unsignedInteger('weight'); $table->unsignedInteger('height'); $table->tinyInteger('squad_number'); $table->foreignIdFor(\App\Models\Club::class) ->constrained() ->onUpdate('cascade') ->onDelete('restrict'); $table->unique(['club_id', 'squad_number']); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('players'); } };