cohorts table

The cohorts table in the Learning Management System Database Schema schema has 9 columns, keyed by id, with 1 foreign key to courses. 6 columns in cohort_members, enrollments, gradebook_items, live_sessions and 2 more reference it.

A run of a course. Self-paced offerings still get one cohort so every enrolment has a parent to hang dates and capacity on.

Columns (9)

Columns of the cohorts table
ColumnTypeConstraintsDescription
iduuidprimary key
course_iduuidnot null, references courses.id
namevarchar(120)not null
codevarchar(40)unique, not null
starts_ondate
ends_ondate
enrolment_closes_ondate
capacityinteger
is_self_pacedbooleannot null

Indexes (1)

  • (course_id, starts_on)

Relationships