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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| course_id | uuid | not null, references courses.id | |
| name | varchar(120) | not null | |
| code | varchar(40) | unique, not null | |
| starts_on | date | ||
| ends_on | date | ||
| enrolment_closes_on | date | ||
| capacity | integer | ||
| is_self_paced | boolean | not null |
Indexes (1)
(course_id, starts_on)
Relationships
cohorts.course_idreferencescourses.idcohort_members.cohort_idreferencescohortsenrollments.cohort_idreferencescohortsgradebook_items.cohort_idreferencescohortslive_sessions.cohort_idreferencescohortsdiscussions.cohort_idreferencescohortsannouncements.cohort_idreferencescohorts