feat(ecosystem): full Grade 10 curriculum sync, real device fingerprinting, teacher video dashboard, and official textbook assets

This commit is contained in:
Hamza-Ayed
2026-09-11 16:46:40 +03:00
parent fc8f874bf9
commit d1bc39604b
404 changed files with 118547 additions and 1093 deletions
@@ -0,0 +1,18 @@
-- Table: user_devices (تسجيل أجهزة المستخدمين الفعلية وربط بصمة العتاد بالجلسات)
CREATE TABLE IF NOT EXISTS `user_devices` (
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
`user_id` BIGINT UNSIGNED NOT NULL,
`identity_id` BIGINT UNSIGNED NULL,
`device_fingerprint` VARCHAR(128) NOT NULL,
`platform` VARCHAR(32) NOT NULL DEFAULT 'other',
`device_name` VARCHAR(128) NULL,
`device_model` VARCHAR(128) NULL,
`os_version` VARCHAR(64) NULL,
`is_active` TINYINT(1) NOT NULL DEFAULT 1,
`last_active_at` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`created_at` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `uq_user_device` (`user_id`, `device_fingerprint`),
KEY `idx_device_fingerprint` (`device_fingerprint`),
KEY `idx_device_identity` (`identity_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;