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 19 null
coursemoduleid BIGINT 19 null courmoducomp_cou2_fk R

Activity that has been completed (or not).

userid BIGINT 19 null courmoducomp_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 19 null

Time at which the completion state last changed.

timecompleted BIGINT 19 null

Time at which the module was completed.

reaggregate BIGINT 19 0

Time for when reaggregation should next occur.

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