lessons table

The lessons table in the Learning Management System Database Schema schema has 10 columns, keyed by id, with 1 foreign key to modules. 3 columns in lesson_resources, lesson_progress and discussions reference it.

is_preview marks a lesson viewable without enrolling, which is the whole marketing funnel for a paid course.

Columns (10)

Columns of the lessons table
ColumnTypeConstraintsDescription
iduuidprimary key
module_iduuidnot null, references modules.id
titlevarchar(255)not null
typelesson_typenot null
contenttext
video_urlvarchar(500)
duration_secondsinteger
positionintegernot null
is_previewbooleannot null
is_publishedbooleannot null

Indexes (1)

  • (module_id, position) unique

Relationships