id(); $table->foreignId('student_log_id')->constrained('student_portal_logs')->onDelete('cascade'); $table->string('module_code'); $table->string('academic_year'); $table->string('semester'); $table->string('module_name'); $table->integer('marks'); $table->string('grade'); // e.g., 'A+', 'A', 'B', 'C', 'F' $table->string('status')->default('Pass'); // 'Pass' or 'Fail' $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('results'); } };