Ordered or randomly selected part of an exercise. A slide can contain multiple individual tasks that are shown to the student at once and submitted at the same time.
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. | |||
exercise_id | uuid | false | public.exercises | The exercise that this slide belongs to. | ||
id | uuid | uuid_generate_v4() | false | public.exercise_slide_submissions public.exercise_task_submissions public.exercise_tasks public.rejected_exercise_slide_submissions public.user_exercise_slide_states public.user_exercise_states | A unique, stable identifier for the record. | |
order_number | integer | false | The order in which this slide appears in. | |||
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 |
---|---|---|
exercise_slides_exercise_id_fkey | FOREIGN KEY | FOREIGN KEY (exercise_id) REFERENCES exercises(id) |
exercise_slides_order_number_per_exercise | UNIQUE | UNIQUE NULLS NOT DISTINCT (exercise_id, order_number, deleted_at) |
exercise_slides_pkey | PRIMARY KEY | PRIMARY KEY (id) |
Name | Definition |
---|---|
exercise_slides_order_number_per_exercise | CREATE UNIQUE INDEX exercise_slides_order_number_per_exercise ON public.exercise_slides USING btree (exercise_id, order_number, deleted_at) NULLS NOT DISTINCT |
exercise_slides_pkey | CREATE UNIQUE INDEX exercise_slides_pkey ON public.exercise_slides USING btree (id) |
Name | Definition |
---|---|
set_timestamp | CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.exercise_slides FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp() |
Generated by tbls