Zoonk.Catalog.Chapter (Zoonk v0.1.0-dev)

View Source

Defines the Chapter schema.

Chapters represent learning units within the platform. Each chapter belongs to an organization and can have multiple translations for different languages.

A chapter can be added to multiple courses. However, they can also be expanded into a course with multiple chapters.

For example, we can have a basic "Frontend Development" chapter in the "Web Development" curse. Later, we can expand this chapter into its own course with multiple chapters like "HTML", "CSS", "JavaScript", etc.

When we expand a chapter into a course, we add a new course_id field to the chapter. This allows us to keep track of the original chapter while also allowing it to be part of a larger course.

Then, we can display a "Go Deeper" button on the chapter page for learners who want to dig deeper into the topic.

If the course_id is nil, this means this chapter hasn't been expanded into a course yet.

We only expand a chapter into a course when a learner clicks on the "Go Deeper" button in the UI.

Fields

Field NameTypeDescription
org_idIntegerID of the organization that owns this chapter.
course_idIntegerCourse that expands this chapter's content.
slugStringUnique identifier for the chapter.
thumb_urlStringURL for the chapter thumbnail image.
inserted_atDateTimeTimestamp when the chapter was created.
updated_atDateTimeTimestamp when the chapter was last updated.