Update Saqel Platform: 2026-09-02 07:52:23

This commit is contained in:
Hamza-Ayed
2026-09-02 07:52:24 +03:00
parent 739f934a26
commit 36939a50c1
8 changed files with 38 additions and 22 deletions
+2
View File
@@ -222,6 +222,7 @@ CREATE TABLE IF NOT EXISTS `lessons` (
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
`course_id` BIGINT UNSIGNED NOT NULL,
`title` VARCHAR(255) NOT NULL,
`curriculum_key` VARCHAR(500) DEFAULT NULL COMMENT 'المسار الفريد لدرس الـManifest داخل storage/curriculum',
`sequence_order` INT UNSIGNED NOT NULL DEFAULT 1,
-- المعلم الحقيقي (Teacher Video)
@@ -249,6 +250,7 @@ CREATE TABLE IF NOT EXISTS `lessons` (
`updated_at` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `idx_lessons_course` (`course_id`),
KEY `idx_lessons_curriculum_key` (`curriculum_key`),
KEY `idx_lessons_video_uuid` (`video_uuid`),
CONSTRAINT `fk_lessons_course` FOREIGN KEY (`course_id`) REFERENCES `courses` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;