id(); $table->foreignId('teacher_subject_id')->constrained('teacher_subjects'); $table->foreignId('student_id')->constrained('students'); $table->float('score'); $table->string('semester'); $table->timestamps(); $table->unique(['teacher_subject_id', 'student_id', 'semester']); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('assessments'); } };