chapter_id |
uuid |
|
true |
|
public.chapters |
Which chapter this page is part of. If null, the page is considered a top level page which is meant for generic information about the course. A top level page could be for example the course front page (“/”) or a frequently asked questions page (“/faq”). |
content |
jsonb |
|
false |
|
|
Page content in an abstract form. It is an array of JSON objects that are blocks. For example,a block could be a paragraph, or a image or an exercise. |
content_search |
tsvector |
|
true |
|
|
Used to perform full text searches on the title of the page and the content of the page. Content is considered to be any value in the page content schema with the key “content” or “title”. Page title is ranked higher in the search results as the content. The value of this is autogenerated with trigger trigger_set_pages_content_search. |
content_search_language |
varchar(255) |
‘simple’::character varying |
false |
|
|
|
content_search_original_text |
text |
|
true |
|
|
Language that will be used for stemming for full text search. Has to be a value from pg_ts_config.cfgname. The same value can be also determined from a courses.content_search_language but the string is duplicated here because the triggers generating text pages.content_search need to have this also in this table. |
copied_from |
uuid |
|
true |
|
public.pages |
The original page record of a copy. |
course_id |
uuid |
|
true |
|
public.courses |
The course the page is associated with. |
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. |
exam_id |
uuid |
|
true |
|
public.exams |
The exam the page is associated with. |
hidden |
boolean |
false |
false |
|
|
Whether or not this page should be publicly visible. |
id |
uuid |
uuid_generate_v4() |
false |
public.chapters public.chatbot_page_sync_statuses public.exercises public.feedback public.page_audio_files public.page_history public.page_visit_datum public.page_visit_datum_summary_by_pages public.pages public.proposed_page_edits public.url_redirections |
|
A unique, stable identifier for the record. |
order_number |
integer |
|
false |
|
|
A number used for sorting the pages when listing them. Pages are sorted within a chapter, or within the group of top level pages. |
page_language_group_id |
uuid |
|
true |
|
public.page_language_groups |
If the page is related to a course, this can be used to find this exercise in other languages. If two pages share the same id, they are the same page but in different languages. For pages not related to a course, like exam pages, this is always null. |
title |
varchar(255) |
|
false |
|
|
Showed as the main heading to the students visiting the page. Also used in the html title attribute. |
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. |
url_path |
varchar(255) |
|
false |
|
|
Relative url to the page within a course. It is autogenerated by default in the frontend for ease of use, but can be customized if desired. Example: “/part-1/3-hawaiian-crow”. |