id(); $table->foreignId('attempt_id')->constrained()->onDelete('cascade'); $table->foreignId('question_id')->constrained()->onDelete('cascade'); $table->foreignId('option_id')->nullable()->constrained()->onDelete('cascade'); $table->text('text_content')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('answers'); } };