Index

public.cheater_thresholds

Description

This table stores thresholds set by the instructor, representing the maximum score or duration a student can surpass before being suspected of cheating cheaters.

Columns

Name Type Default Nullable Children Parents Comment
course_instance_id uuid false public.course_instances The course_instance_id of the course.
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.
duration_seconds integer true The duration threshold of the course.
id uuid uuid_generate_v4() false A unique, stable identifier for the record.
points integer false The score threshold of the course.
updated_at timestamp with time zone now() false Timestamp when the record was updated.

Constraints

Name Type Definition
cheater_thresholds_course_instance_id_fkey FOREIGN KEY FOREIGN KEY (course_instance_id) REFERENCES course_instances(id)
cheater_thresholds_pkey PRIMARY KEY PRIMARY KEY (id)

Indexes

Name Definition
cheater_thresholds_pkey CREATE UNIQUE INDEX cheater_thresholds_pkey ON public.cheater_thresholds USING btree (id)

Triggers

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

Relations

er

Generated by tbls