modules table
The modules table in the Learning Management System Database Schema schema has 6 columns, keyed by id, with 1 foreign key to courses. 3 columns in lessons, assignments and quizzes reference it.
Sections, weeks or units. One level of grouping is enough; deeper nesting is where course builders get unusable.
Columns (6)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| course_id | uuid | not null, references courses.id | |
| title | varchar(255) | not null | |
| description | varchar(1000) | ||
| position | integer | not null | |
| is_published | boolean | not null |
Indexes (1)
(course_id, position)unique
Relationships
modules.course_idreferencescourses.idlessons.module_idreferencesmodulesassignments.module_idreferencesmodulesquizzes.module_idreferencesmodules