You need to create a data type for
Users courses
user_course
depending on the level of “progress” you could track it several ways:
- if you just want to track completed courses you could have a list that you add to on the user (not ideal but it’s simple and fine for limited number of courses)
- if you want to track each course specifically for each user then you’d need user_course which has a user field, course field and maybe a list of completed course sections. count the sections complete vs the total to get progress per course. then you could do a search of the user_course to get overall progress also - you may want to hold the overall progress on the user if it is frequently displayed
- on each course you could show the user_course data to show the progress per course for that user.
you’d need to update the user_course and user stats on a button click or page load to keep the progress up to date.