Course Modules Completion Table Schema (course_modules_completion)


Stores the completion state (completed or not completed, etc) of each user on each activity.

course_modules_completion table columns

Column Type Size Nulls Auto Default Children Parents Comments
id bigint 10 null
coursemoduleid bigint 10 null courmoducompl_cou_fk R

Activity that has been completed (or not).

userid bigint 10 null courmoducompl_use_fk R

ID of user who has (or hasn't) completed the activity.

completionstate BIT 1 null

Whether or not the user has completed the activity. Available states: 0 = not completed if there's no row in this table, that also counts as 0 1 = completed 2 = completed, show passed 3 = completed, show failed

viewed BIT 1 null

Tracks whether or not this activity has been viewed. NULL = we are not tracking viewed for this activity 0 = not viewed 1 = viewed

timemodified bigint 10 null

Time at which the completion state last changed.

Table contained -1 rows

course_modules_completion table indexes

Constraint Name Type Sort Column(s)
PRIMARY Primary key Asc id
courmoducomp_cou_ix Performance Asc coursemoduleid
courmoducomp_usecou_uix Must be unique Asc/Asc userid + coursemoduleid

course_modules_completion table relationships