Index

public.suspected_cheaters

Description

Contains a student that are suspected of cheating because they meet the cheating requirement (i.e. score > threshold && duration > average_duration).

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.
id uuid uuid_generate_v4() false A unique, stable identifier for the record.
total_duration_seconds integer true The total duration the student spent completing the course.
total_points integer false The total points earned by the student in the course.
updated_at timestamp with time zone now() false Timestamp when the record was updated.
user_id uuid false public.users The user_id of the student being suspected.

Constraints

Name Type Definition
suspected_cheaters_pkey PRIMARY KEY PRIMARY KEY (id)
suspected_cheaters_user_id_fkey FOREIGN KEY FOREIGN KEY (user_id) REFERENCES users(id)

Indexes

Name Definition
suspected_cheaters_pkey CREATE UNIQUE INDEX suspected_cheaters_pkey ON public.suspected_cheaters USING btree (id)

Triggers

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

Relations

er

Generated by tbls