id(); $table->foreignIdFor(School::class)->constrained()->cascadeOnUpdate()->restrictOnDelete(); $table->string('first_name'); $table->string('last_name'); $table->integer('grade'); $table->timestamps(); $table->unique(['school_id','first_name','last_name']); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('students'); } };