Index

public.study_registry_registrars

Description

Authorized third parties that can access course module completions for study registration purposes.

Columns

Name Type Default Nullable Children Parents Comment
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 public.course_module_completion_registered_to_study_registries A unique, stable identifier for the record.
name varchar(255) false The name of the registrar.
secret_key varchar(255) false The secret key used to authenticate for the registry.
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.

Viewpoints

Name Definition
Credit registration How a completed course module becomes a credit in the University of Helsinki study registry. Once the student has consented for the course and holds a student number proven to be theirs, one ledger row per completion is pushed to Sisu through Suotar and polled until the registry confirms the attainment.

Constraints

Name Type Definition
secret_key_minimum_length CHECK CHECK ((length((secret_key)::text) > 15))
study_registry_registrars_created_at_not_null n NOT NULL created_at
study_registry_registrars_id_not_null n NOT NULL id
study_registry_registrars_name_not_null n NOT NULL name
study_registry_registrars_pkey PRIMARY KEY PRIMARY KEY (id)
study_registry_registrars_secret_key_key UNIQUE UNIQUE (secret_key)
study_registry_registrars_secret_key_not_null n NOT NULL secret_key
study_registry_registrars_updated_at_not_null n NOT NULL updated_at

Indexes

Name Definition
study_registry_registrars_pkey CREATE UNIQUE INDEX study_registry_registrars_pkey ON public.study_registry_registrars USING btree (id)
study_registry_registrars_secret_key_key CREATE UNIQUE INDEX study_registry_registrars_secret_key_key ON public.study_registry_registrars USING btree (secret_key)

Triggers

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

Relations

er

Generated by tbls