id(); $table->foreignId("test_id")->references("id")->on("tests")->constrained()->cascadeOnDelete(); $table->string("question"); $table->enum("answer_type", ["single_answer", "single_choice", "multiple_choice"]); $table->unsignedInteger("points")->default(1); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('questions'); } };