Index

public.glossary

Description

A list of terms and their explanations.

Columns

Name Type Default Nullable Children Parents Comment
course_id uuid false public.courses Each entry is related to a specific course.
created_at timestamp with time zone now() false Timestamp when the record was created.
definition text false The definition, e.g. computer science.
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 A unique, stable identifier for the record.
term varchar(255) false The term, e.g. CS.
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
glossary_course_id_fkey FOREIGN KEY FOREIGN KEY (course_id) REFERENCES courses(id)
glossary_pkey PRIMARY KEY PRIMARY KEY (id)

Indexes

Name Definition
glossary_pkey CREATE UNIQUE INDEX glossary_pkey ON public.glossary USING btree (id)

Triggers

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

Relations

er

Generated by tbls