id(); $table->foreignId('subject_id')->constrained()->onDelete('cascade'); $table->text('question_text'); $table->enum('type', ['multiple_choice', 'number_input'])->default('multiple_choice'); $table->unsignedTinyInteger('difficulty')->default(1); $table->unsignedTinyInteger('points_value')->default(5); $table->boolean('active')->default(true); $table->timestamps(); }); } public function down(): void { Schema::dropIfExists('questions'); } };