Update Saqel Platform: 2026-09-04 02:57:19
This commit is contained in:
@@ -546,6 +546,36 @@ CREATE TABLE IF NOT EXISTS `student_question_answers` (
|
||||
CONSTRAINT `fk_sqa_question` FOREIGN KEY (`question_id`) REFERENCES `questions` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- ------------------------------------------------------------------------------
|
||||
-- 15.6. Table: student_error_notebook (دفتر الأخطاء الذكي والمسارات العلاجية التكيفية)
|
||||
-- ------------------------------------------------------------------------------
|
||||
CREATE TABLE IF NOT EXISTS `student_error_notebook` (
|
||||
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`uuid` CHAR(36) NOT NULL UNIQUE,
|
||||
`student_id` BIGINT UNSIGNED NOT NULL,
|
||||
`subject_id` VARCHAR(100) NOT NULL COMMENT 'المبحث مثل physics_10 أو math_10',
|
||||
`subject_name` VARCHAR(255) NOT NULL,
|
||||
`topic_name` VARCHAR(255) NOT NULL,
|
||||
`lesson_id` BIGINT UNSIGNED DEFAULT NULL,
|
||||
`source_type` ENUM('socratic_checkpoint', 'adaptive_exam', 'unit_exam', 'ministry_simulation') NOT NULL DEFAULT 'socratic_checkpoint',
|
||||
`question_text` TEXT NOT NULL,
|
||||
`options_json` JSON DEFAULT NULL,
|
||||
`student_wrong_answer` TEXT NOT NULL,
|
||||
`correct_answer` TEXT NOT NULL,
|
||||
`socratic_hint` TEXT DEFAULT NULL COMMENT 'شرح سقراطي لسبب الخطأ وكيفية تصحيحه',
|
||||
`error_category` ENUM('conceptual', 'calculation', 'rushed', 'misinterpretation') NOT NULL DEFAULT 'conceptual',
|
||||
`status` ENUM('pending_remediation', 'in_remediation', 'mastered') NOT NULL DEFAULT 'pending_remediation',
|
||||
`remediation_attempts_count` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||
`mastered_at` TIMESTAMP NULL DEFAULT NULL,
|
||||
`created_at` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_error_student` (`student_id`),
|
||||
KEY `idx_error_subject` (`subject_id`),
|
||||
KEY `idx_error_status` (`status`),
|
||||
CONSTRAINT `fk_error_student` FOREIGN KEY (`student_id`) REFERENCES `students` (`id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `fk_error_lesson` FOREIGN KEY (`lesson_id`) REFERENCES `lessons` (`id`) ON DELETE SET NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- ------------------------------------------------------------------------------
|
||||
-- 16. Table: teacher_reviews (تقييمات الطلاب المحصنة بالأوزان وخاصية كشف الكيد)
|
||||
-- ------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user