A list of terms and their explanations.
| 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. |
| Name | Type | Definition |
|---|---|---|
| definition_not_empty | CHECK | CHECK ((TRIM(BOTH FROM definition) <> ’’::text)) |
| glossary_course_id_fkey | FOREIGN KEY | FOREIGN KEY (course_id) REFERENCES courses(id) |
| glossary_course_id_not_null | n | NOT NULL course_id |
| glossary_created_at_not_null | n | NOT NULL created_at |
| glossary_definition_not_null | n | NOT NULL definition |
| glossary_id_not_null | n | NOT NULL id |
| glossary_pkey | PRIMARY KEY | PRIMARY KEY (id) |
| glossary_term_not_null | n | NOT NULL term |
| glossary_updated_at_not_null | n | NOT NULL updated_at |
| term_not_empty | CHECK | CHECK ((TRIM(BOTH FROM term) <> ’’::text)) |
| Name | Definition |
|---|---|
| glossary_course_id_idx | CREATE INDEX glossary_course_id_idx ON public.glossary USING btree (course_id) |
| glossary_pkey | CREATE UNIQUE INDEX glossary_pkey ON public.glossary USING btree (id) |
| Name | Definition |
|---|---|
| set_timestamp | CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.glossary FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp() |
Generated by tbls