Used to set the privacy policy checkbox texts in the course settings dialog when a course has a different privacy policy than all the other courses. (e.g., the Elements of AI course)
| Name | Type | Default | Nullable | Children | Parents | Comment |
|---|---|---|---|---|---|---|
| course_id | uuid | false | public.courses | The course in which the text is shown. | ||
| 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 | A unique, stable identifier for the record. | ||
| text_html | text | false | The HTML content of the text. | |||
| text_slug | text | false | An identifier for the text, used to reference it in the course settings dialog. | |||
| 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 |
|---|---|---|
| course_custom_privacy_policy__course_id_text_slug_deleted_a_key | UNIQUE | UNIQUE NULLS NOT DISTINCT (course_id, text_slug, deleted_at) |
| course_custom_privacy_policy_checkbox_texts_course_id_fkey | FOREIGN KEY | FOREIGN KEY (course_id) REFERENCES courses(id) |
| course_custom_privacy_policy_checkbox_texts_course_id_not_null | n | NOT NULL course_id |
| course_custom_privacy_policy_checkbox_texts_created_at_not_null | n | NOT NULL created_at |
| course_custom_privacy_policy_checkbox_texts_id_not_null | n | NOT NULL id |
| course_custom_privacy_policy_checkbox_texts_pkey | PRIMARY KEY | PRIMARY KEY (id) |
| course_custom_privacy_policy_checkbox_texts_text_html_not_null | n | NOT NULL text_html |
| course_custom_privacy_policy_checkbox_texts_text_slug_not_null | n | NOT NULL text_slug |
| course_custom_privacy_policy_checkbox_texts_updated_at_not_null | n | NOT NULL updated_at |
| Name | Definition |
|---|---|
| course_custom_privacy_policy__course_id_text_slug_deleted_a_key | CREATE UNIQUE INDEX course_custom_privacy_policy__course_id_text_slug_deleted_a_key ON public.course_custom_privacy_policy_checkbox_texts USING btree (course_id, text_slug, deleted_at) NULLS NOT DISTINCT |
| course_custom_privacy_policy_checkbox_texts_course_id_idx | CREATE INDEX course_custom_privacy_policy_checkbox_texts_course_id_idx ON public.course_custom_privacy_policy_checkbox_texts USING btree (course_id) WHERE (deleted_at IS NULL) |
| course_custom_privacy_policy_checkbox_texts_pkey | CREATE UNIQUE INDEX course_custom_privacy_policy_checkbox_texts_pkey ON public.course_custom_privacy_policy_checkbox_texts USING btree (id) |
| Name | Definition |
|---|---|
| set_timestamp | CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.course_custom_privacy_policy_checkbox_texts FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp() |
Generated by tbls