course_modules_completion

0 rows


Description

Stores the completion state (completed or not completed, etc

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id BIGINT 19 null
coursemoduleid BIGINT 19 null
course_modules.id course_modules_completion_erd_course_modulesR

Activity that has been completed (or not).

userid BIGINT 19 null
user.id Implied ConstraintR

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

overrideby BIGINT 19 null

Tracks whether this completion state has been set manually to override a previous state.

timemodified BIGINT 19 null

Time at which the completion state last changed.

Indexes

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

Relationships