Feat: Обновление вопросов

 Удалён input тип (не имеет смысла без автопроверки)
 Добавлен ordering тип (сортировка элементов)
 Добавлено поле image для ответов
 Миграции применены
 QuestionOrderingItem модель

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
mirivlad
2026-03-27 09:51:17 +08:00
co-authored by Qwen-Coder
parent e730cd4856
commit acf616fc08
6 changed files with 80 additions and 2 deletions
@@ -11,7 +11,7 @@ return new class extends Migration
Schema::create('questions', function (Blueprint $table) {
$table->id();
$table->foreignId('test_id')->constrained()->onDelete('cascade');
$table->enum('type', ['single_choice', 'multiple_choice', 'input', 'matching'])->default('single_choice');
$table->enum('type', ['single_choice', 'multiple_choice', 'matching', 'ordering'])->default('multiple_choice');
$table->text('question_text');
$table->text('explanation')->nullable();
$table->integer('score')->default(1);