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)

Columns of the modules table
ColumnTypeConstraintsDescription
iduuidprimary key
course_iduuidnot null, references courses.id
titlevarchar(255)not null
descriptionvarchar(1000)
positionintegernot null
is_publishedbooleannot null

Indexes (1)

  • (course_id, position) unique

Relationships