Contains a student that are suspected of cheating because they meet the cheating requirement (i.e. score > threshold && duration > average_duration).
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
course_id | uuid | false | public.courses | |||
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. | ||
is_archived | boolean | false | false | |||
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. |
Name | Type | Definition |
---|---|---|
suspected_cheaters_course_id_fkey | FOREIGN KEY | FOREIGN KEY (course_id) REFERENCES courses(id) |
suspected_cheaters_pkey | PRIMARY KEY | PRIMARY KEY (id) |
suspected_cheaters_user_id_fkey | FOREIGN KEY | FOREIGN KEY (user_id) REFERENCES users(id) |
Name | Definition |
---|---|
suspected_cheaters_pkey | CREATE UNIQUE INDEX suspected_cheaters_pkey ON public.suspected_cheaters USING btree (id) |
Name | Definition |
---|---|
set_timestamp | CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.suspected_cheaters FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp() |
Generated by tbls