Index

public.course_specific_research_consent_forms

Description

Stores a custom research consent forms for a specific course

Columns

Name Type Default Nullable Children Parents Comment
content jsonb false Form content in an abstract form. It is an array of JSON objects that are blocks. For example,a block could be a paragraph or a label
course_id uuid false public.courses The course for which the research consent form belongs to
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_specific_consent_form_questions
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
course_id_when_not_deleted UNIQUE UNIQUE NULLS NOT DISTINCT (course_id, deleted_at)
course_specific_research_consent_forms_course_id_fkey FOREIGN KEY FOREIGN KEY (course_id) REFERENCES courses(id)
course_specific_research_consent_forms_pkey PRIMARY KEY PRIMARY KEY (id)

Indexes

Name Definition
course_id_when_not_deleted CREATE UNIQUE INDEX course_id_when_not_deleted ON public.course_specific_research_consent_forms USING btree (course_id, deleted_at) NULLS NOT DISTINCT
course_specific_research_consent_forms_pkey CREATE UNIQUE INDEX course_specific_research_consent_forms_pkey ON public.course_specific_research_consent_forms USING btree (id)

Triggers

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

Relations

er

Generated by tbls