Index

public.credit_registration_active_course_modules

Description

Modules whose credit registration is switched on and not paused. The gate every phase that spends work on a module shares; both ways out of it freeze what is in flight rather than cancelling it, so a query filtering on membership must leave the rows it stops seeing alone.

Table Definition
CREATE VIEW credit_registration_active_course_modules AS (
 SELECT cm.id AS course_module_id,
    cm.course_id
   FROM (course_modules cm
     LEFT JOIN course_module_suotar_configurations conf ON (((conf.course_module_id = cm.id) AND (conf.deleted_at IS NULL))))
  WHERE (cm.enable_credit_registration_via_suotar AND (cm.deleted_at IS NULL) AND (conf.paused_at IS NULL))
)

Columns

Name Type Default Nullable Children Parents Comment
course_id uuid true
course_module_id uuid true

Referenced Tables

Name Columns Comment Type
public.course_modules 18 A module is a collection of chapters which can be used to categorise the chapters of a course. BASE TABLE
public.course_module_suotar_configurations 14 Per-module Suotar credit registration configuration, the per-module pause, and the config-validation phase’s last verdict. At most one live row per course module; no row means the module is not configured, which is not an error. The enable_credit_registration_via_suotar rollout switch stays on course_modules instead, because it is read on the per-user my-studies path for every logged-in user. BASE TABLE

Relations

er

Generated by tbls