A partners block is a custom content block displayed across all pages of a course, positioned directly above the site footer. This block showcases partner logos and links, providing easy access to relevant partner sites. The partners_blocks table stores the content data for this block. Content is created and managed through the Gutenberg Editor.
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
content | jsonb | true | The content of the partners block that is derived from the Gutenberg Editor | |||
course_id | uuid | false | public.courses | The course_id of the course the partners_block relates to. | ||
created_at | timestamp with time zone | now() | false | Timestamp of 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 | A unique, stable identifier for the record. | ||
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 |
---|---|---|
partners_blocks_course_id_fkey | FOREIGN KEY | FOREIGN KEY (course_id) REFERENCES courses(id) |
partners_blocks_pkey | PRIMARY KEY | PRIMARY KEY (id) |
unique_course_id | UNIQUE | UNIQUE (course_id) |
Name | Definition |
---|---|
partners_blocks_pkey | CREATE UNIQUE INDEX partners_blocks_pkey ON public.partners_blocks USING btree (id) |
unique_course_id | CREATE UNIQUE INDEX unique_course_id ON public.partners_blocks USING btree (course_id) |
Name | Definition |
---|---|
set_timestamp | CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.partners_blocks FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp() |
Generated by tbls