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)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| module_id | uuid | not null, references modules.id | |
| title | varchar(255) | not null | |
| type | lesson_type | not null | |
| content | text | ||
| video_url | varchar(500) | ||
| duration_seconds | integer | ||
| position | integer | not null | |
| is_preview | boolean | not null | |
| is_published | boolean | not null |
Indexes (1)
(module_id, position)unique
Relationships
lessons.module_idreferencesmodules.idlesson_resources.lesson_idreferenceslessonslesson_progress.lesson_idreferenceslessonsdiscussions.lesson_idreferenceslessons