Index

public.language_version_operation_logs

Description

Changes made with the language-version repair tool, with enough detail to repair a mistake by hand. There is no undo.

Columns

Name Type Default Nullable Children Parents Comment
actor_user_id uuid false public.users The user who made the change.
course_language_group_id uuid false public.course_language_groups The language versions the change was made in; for a join, the group the course joined; for a split, the group the course left.
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 gen_random_uuid() false A unique, stable identifier for the record.
operation language_version_operation false What the change was.
payload jsonb false The changed rows: previous page or exercise language groups of linked or unlinked items, moved courses, and full copies of rows the change deleted or merged.
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_operation_lo_course_language_group_id_not_null n NOT NULL course_language_group_id
language_version_operation_logs_actor_user_id_fkey FOREIGN KEY FOREIGN KEY (actor_user_id) REFERENCES users(id)
language_version_operation_logs_actor_user_id_not_null n NOT NULL actor_user_id
language_version_operation_logs_course_language_group_id_fkey FOREIGN KEY FOREIGN KEY (course_language_group_id) REFERENCES course_language_groups(id)
language_version_operation_logs_created_at_not_null n NOT NULL created_at
language_version_operation_logs_id_not_null n NOT NULL id
language_version_operation_logs_operation_not_null n NOT NULL operation
language_version_operation_logs_payload_not_null n NOT NULL payload
language_version_operation_logs_pkey PRIMARY KEY PRIMARY KEY (id)
language_version_operation_logs_updated_at_not_null n NOT NULL updated_at

Indexes

Name Definition
language_version_operation_logs_course_language_group_id CREATE INDEX language_version_operation_logs_course_language_group_id ON public.language_version_operation_logs USING btree (course_language_group_id)
language_version_operation_logs_pkey CREATE UNIQUE INDEX language_version_operation_logs_pkey ON public.language_version_operation_logs USING btree (id)

Triggers

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

Relations

er

Generated by tbls