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.

Constraints

Name Type Definition
secret_key_minimum_length CHECK CHECK ((length((secret_key)::text) > 15))
study_registry_registrars_pkey PRIMARY KEY PRIMARY KEY (id)
study_registry_registrars_secret_key_key UNIQUE UNIQUE (secret_key)

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