Index

public.language_version_problem_dismissals

Description

Problems of a course language group that a teacher marked as intended in the language-version repair tool. A dismissal hides the problem only while its fingerprint matches, so the problem comes back when the rows behind it change.

Columns

Name Type Default Nullable Children Parents Comment
course_language_group_id uuid false public.course_language_groups The language versions the problem was found in.
created_at timestamp with time zone now() false Timestamp when the record was created.
created_by uuid false public.users The teacher who marked the problem as intended.
deleted_at timestamp with time zone true Timestamp when the record was deleted. If null, the record is not deleted. Set when the teacher brings the problem back.
fingerprint varchar(255) false Hash of the rows behind the problem when it was dismissed.
id uuid gen_random_uuid() false A unique, stable identifier for the record.
problem_key varchar(1024) false Stable identity of the problem across checks, e.g. missing_page_counterpart:<course id>:<counterpart course id>.
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
language_version_problem_dism_course_language_group_id_not_null n NOT NULL course_language_group_id
language_version_problem_dismissa_course_language_group_id_fkey FOREIGN KEY FOREIGN KEY (course_language_group_id) REFERENCES course_language_groups(id)
language_version_problem_dismissals_created_at_not_null n NOT NULL created_at
language_version_problem_dismissals_created_by_fkey FOREIGN KEY FOREIGN KEY (created_by) REFERENCES users(id)
language_version_problem_dismissals_created_by_not_null n NOT NULL created_by
language_version_problem_dismissals_fingerprint_not_null n NOT NULL fingerprint
language_version_problem_dismissals_id_not_null n NOT NULL id
language_version_problem_dismissals_pkey PRIMARY KEY PRIMARY KEY (id)
language_version_problem_dismissals_problem_key_not_null n NOT NULL problem_key
language_version_problem_dismissals_updated_at_not_null n NOT NULL updated_at

Indexes

Name Definition
language_version_problem_dismissals_live_key CREATE UNIQUE INDEX language_version_problem_dismissals_live_key ON public.language_version_problem_dismissals USING btree (course_language_group_id, problem_key) WHERE (deleted_at IS NULL)
language_version_problem_dismissals_pkey CREATE UNIQUE INDEX language_version_problem_dismissals_pkey ON public.language_version_problem_dismissals USING btree (id)

Triggers

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

Relations

er

Generated by tbls