package domain import "time" // AdminUserLearningActivityDetails is the full learning picture for a learner in the unified hierarchy. type AdminUserLearningActivityDetails struct { UserID int64 `json:"user_id"` ExamPrep AdminUserExamPrepLearningSection `json:"learning"` RecentActivity UserRecentActivityFeed `json:"recent_activity"` } type AdminUserExamPrepLearningSection struct { Progress ExamPrepProgressSummary `json:"progress"` Completions AdminExamPrepUserLearningActivityTree `json:"completions"` } // ExamPrepProgressSummary mirrors LMSProgressSummary for exam-prep catalog hierarchy. type ExamPrepProgressSummary struct { CatalogCourses []ExamPrepProgressSummaryCatalogCourse `json:"courses"` } type ExamPrepProgressSummaryCatalogCourse struct { ID int64 `json:"id"` Name string `json:"name"` Access *LMSEntityAccess `json:"access,omitempty"` Units []ExamPrepProgressSummaryUnit `json:"chapters"` } type ExamPrepProgressSummaryUnit struct { ID int64 `json:"id"` CatalogCourseID int64 `json:"course_id"` Name string `json:"name"` Access *LMSEntityAccess `json:"access,omitempty"` Lessons []ExamPrepProgressSummaryLesson `json:"lessons"` Modules []ExamPrepProgressSummaryModule `json:"-"` } type ExamPrepProgressSummaryModule struct { ID int64 `json:"id"` UnitID int64 `json:"unit_id"` Name string `json:"name"` Access *LMSEntityAccess `json:"access,omitempty"` Lessons []ExamPrepProgressSummaryLesson `json:"lessons"` } type ExamPrepProgressSummaryLesson struct { ID int64 `json:"id"` ModuleID int64 `json:"-"` ChapterID int64 `json:"chapter_id"` Title string `json:"title"` Access *LMSEntityAccess `json:"access,omitempty"` } // AdminExamPrepUserLearningActivityTree is nested catalog course → unit → module → lesson → practice completions. type AdminExamPrepUserLearningActivityTree struct { UserID int64 `json:"user_id"` CatalogCourses []AdminExamPrepCatalogCourseLearningEntry `json:"courses"` } type AdminExamPrepCatalogCourseLearningEntry struct { ID int64 `json:"id"` Name string `json:"name"` SortOrder int32 `json:"sort_order"` Practices []AdminExamPrepPracticeLearningEntry `json:"practices"` Units []AdminExamPrepUnitLearningEntry `json:"chapters"` } type AdminExamPrepUnitLearningEntry struct { ID int64 `json:"id"` Name string `json:"name"` SortOrder int32 `json:"sort_order"` Practices []AdminExamPrepPracticeLearningEntry `json:"practices"` Lessons []AdminExamPrepLessonLearningEntry `json:"lessons"` Modules []AdminExamPrepModuleLearningEntry `json:"-"` } type AdminExamPrepModuleLearningEntry struct { ID int64 `json:"id"` Name string `json:"name"` SortOrder int32 `json:"sort_order"` Lessons []AdminExamPrepLessonLearningEntry `json:"lessons"` } type AdminExamPrepLessonLearningEntry struct { ID int64 `json:"id"` Title string `json:"title"` SortOrder int32 `json:"sort_order"` Practices []AdminExamPrepPracticeLearningEntry `json:"practices"` } type AdminExamPrepPracticeLearningEntry struct { ExamPrepPracticeID int64 `json:"practice_id"` Title string `json:"title"` CompletedAt time.Time `json:"completed_at"` }