Update Saqel Platform: 2026-09-02 07:52:23
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user