Feat: Обновление вопросов
✅ Удалён input тип (не имеет смысла без автопроверки) ✅ Добавлен ordering тип (сортировка элементов) ✅ Добавлено поле image для ответов ✅ Миграции применены ✅ QuestionOrderingItem модель Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user