Index

public.course_page_markdown_content

Description

Course page content that has been converted from Gutenberg blocks to Markdown format with an LLM.

Columns

Name Type Default Nullable Children Parents Comment
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 uuid_generate_v4() false public.chatbot_page_sync_statuses A unique, stable identifier for the record.
markdown_content text false The markdown content of the page.
page_history_id uuid false public.page_history The page history version that this Markdown was generated from.
page_id uuid false public.pages The page that this Markdown was generated from, for convenience.
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
course_page_markdown_content_created_at_not_null n NOT NULL created_at
course_page_markdown_content_id_not_null n NOT NULL id
course_page_markdown_content_markdown_content_not_null n NOT NULL markdown_content
course_page_markdown_content_page_history_id_fkey FOREIGN KEY FOREIGN KEY (page_history_id) REFERENCES page_history(id)
course_page_markdown_content_page_history_id_not_null n NOT NULL page_history_id
course_page_markdown_content_page_id_fkey FOREIGN KEY FOREIGN KEY (page_id) REFERENCES pages(id)
course_page_markdown_content_page_id_not_null n NOT NULL page_id
course_page_markdown_content_pkey PRIMARY KEY PRIMARY KEY (id)
course_page_markdown_content_updated_at_not_null n NOT NULL updated_at

Indexes

Name Definition
course_page_markdown_content_page_history_id CREATE INDEX course_page_markdown_content_page_history_id ON public.course_page_markdown_content USING btree (page_history_id)
course_page_markdown_content_page_id CREATE INDEX course_page_markdown_content_page_id ON public.course_page_markdown_content USING btree (page_id)
course_page_markdown_content_pkey CREATE UNIQUE INDEX course_page_markdown_content_pkey ON public.course_page_markdown_content USING btree (id)

Triggers

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

Relations

er

Generated by tbls