id(); $table->foreignId('candidate_id')->constrained()->onDelete('cascade'); $table->foreignId('quiz_id')->constrained()->onDelete('cascade'); $table->float('score')->nullable(); $table->timestamp('started_at')->useCurrent(); $table->timestamp('finished_at')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('attempts'); } };