Skip to content

modules

Modules / sections of a product. They group lessons hierarchically (a module can contain sub-modules).

  • ETL strategy: merge
  • PK: id

Columns

ColumnTypeDescription
idBIGINTPK.
id_tenantBIGINTFK → tenants.id.
id_originBIGINTParent module id when replicated.
id_productBIGINTFK → products.id.
id_sectionBIGINTFK → another modules.id. When set, this module is a sub-module of another.
is_draftBOOLEANDraft.
positionINTEGEROrder within the parent product/module.
titleTEXTModule name.
created_atTIMESTAMPTZ
deleted_atTIMESTAMPTZ

Relationships

  • Parent: tenants, products; self-relation via id_section.
  • Children: lessons via id_section (lessons point to the module they live in).

Heads-up: lessons use lessons.id_section to point at their module. The name id_section is preserved unchanged — read it as "parent module id".

OpenDB · Cademi LMS Data Warehouse