Index

public.rejected_exercise_slide_submissions

Description

If an exercise slide submission is rejected, the submission is stored here. Rejections happen usually when there is some bug in the exercise service. This data if used for diagnosing problems.

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.
error_message text true Error message from the HTTP response body that caused the rejection
exercise_slide_id uuid false public.exercise_slides The exercise slide that was submitted
http_status_code integer true HTTP status code from the response that caused the rejection
id uuid uuid_generate_v4() false public.rejected_exercise_task_submissions A unique, stable identifier for the record.
response_body text true The response body from the HTTP response that caused the rejection
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 false public.users The user who submitted the exercise

Constraints

Name Type Definition
rejected_exercise_slide_submissions_created_at_not_null n NOT NULL created_at
rejected_exercise_slide_submissions_exercise_slide_id_fkey FOREIGN KEY FOREIGN KEY (exercise_slide_id) REFERENCES exercise_slides(id)
rejected_exercise_slide_submissions_exercise_slide_id_not_null n NOT NULL exercise_slide_id
rejected_exercise_slide_submissions_id_not_null n NOT NULL id
rejected_exercise_slide_submissions_pkey PRIMARY KEY PRIMARY KEY (id)
rejected_exercise_slide_submissions_updated_at_not_null n NOT NULL updated_at
rejected_exercise_slide_submissions_user_id_fkey FOREIGN KEY FOREIGN KEY (user_id) REFERENCES users(id)
rejected_exercise_slide_submissions_user_id_not_null n NOT NULL user_id

Indexes

Name Definition
rejected_exercise_slide_submissions_pkey CREATE UNIQUE INDEX rejected_exercise_slide_submissions_pkey ON public.rejected_exercise_slide_submissions USING btree (id)

Triggers

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

Relations

er

Generated by tbls