Concrete suggestions to improve the contents of a single course material page sent in by students, which can be automatically applied. Consists of one or more edits to individual course material blocks.
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
course_id | uuid | false | public.courses | The course that contains the material the proposal is for. | ||
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.proposed_block_edits | A unique, stable identifier for the record. | |
page_id | uuid | false | public.pages | The page that contains the material the proposal is for. | ||
pending | boolean | true | false | |||
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. | ||
user_id | uuid | true | public.users | The user that sent the proposal. |
Name | Type | Definition |
---|---|---|
proposed_page_edits_course_id_fkey | FOREIGN KEY | FOREIGN KEY (course_id) REFERENCES courses(id) |
proposed_page_edits_page_id_fkey | FOREIGN KEY | FOREIGN KEY (page_id) REFERENCES pages(id) |
proposed_page_edits_pkey | PRIMARY KEY | PRIMARY KEY (id) |
proposed_page_edits_user_id_fkey | FOREIGN KEY | FOREIGN KEY (user_id) REFERENCES users(id) |
Name | Definition |
---|---|
proposed_page_edits_pkey | CREATE UNIQUE INDEX proposed_page_edits_pkey ON public.proposed_page_edits USING btree (id) |
Name | Definition |
---|---|
set_timestamp | CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.proposed_page_edits FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp() |
Generated by tbls