Index

public.course_module_completion_registered_to_study_registries

Description

Completed course module completion registrations to study registries.

Columns

Name Type Default Nullable Children Parents Comment
course_id uuid false public.courses Course that the completion is a part of.
course_module_completion_id uuid false public.course_module_completions Course module completion for this registation.
course_module_id uuid false public.course_modules Course module that the related course module completion is based on.
created_at timestamp with time zone now() false Timestamp when the record was created.
deleted_at timestamp with time zone true Timestamp when the record was deleted. If null, the record is not deleted.
id uuid uuid_generate_v4() false
real_student_number varchar(255) false Used by administrators and support staff to confirm the completion was registered to the correct student
study_registry_registrar_id uuid false public.study_registry_registrars Registrar that registered this course module completion.
updated_at timestamp with time zone now() false Timestamp when the record was last updated. The field is updated automatically by the set_timestamp trigger.
user_id uuid false public.users User that the related course module completion is based on.

Constraints

Name Type Definition
course_module_completion_regis_course_module_completion_id_fkey FOREIGN KEY FOREIGN KEY (course_module_completion_id) REFERENCES course_module_completions(id)
course_module_completion_regis_study_registry_registrar_id_fkey FOREIGN KEY FOREIGN KEY (study_registry_registrar_id) REFERENCES study_registry_registrars(id)
course_module_completion_registered_to_st_course_module_id_fkey FOREIGN KEY FOREIGN KEY (course_module_id) REFERENCES course_modules(id)
course_module_completion_registered_to_study_reg_course_id_fkey FOREIGN KEY FOREIGN KEY (course_id) REFERENCES courses(id)
course_module_completion_registered_to_study_regis_user_id_fkey FOREIGN KEY FOREIGN KEY (user_id) REFERENCES users(id)
course_module_completion_registered_to_study_registries_pkey PRIMARY KEY PRIMARY KEY (id)

Indexes

Name Definition
course_module_completion_registered_to_study_registries_pkey CREATE UNIQUE INDEX course_module_completion_registered_to_study_registries_pkey ON public.course_module_completion_registered_to_study_registries USING btree (id)

Triggers

Name Definition
set_timestamp CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.course_module_completion_registered_to_study_registries FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp()

Relations

er

Generated by tbls