Links exams to courses.
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
course_id | uuid | false | public.courses | The id of a course the exam is associated with. | ||
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. | |||
exam_id | uuid | false | public.exams | The id of an exam. | ||
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 |
---|---|---|
course_exams_course_id_fkey | FOREIGN KEY | FOREIGN KEY (course_id) REFERENCES courses(id) |
course_exams_exam_id_fkey | FOREIGN KEY | FOREIGN KEY (exam_id) REFERENCES exams(id) |
course_exams_pkey | PRIMARY KEY | PRIMARY KEY (course_id, exam_id) |
Name | Definition |
---|---|
course_exams_pkey | CREATE UNIQUE INDEX course_exams_pkey ON public.course_exams USING btree (course_id, exam_id) |
Name | Definition |
---|---|
set_timestamp | CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.course_exams FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp() |
Generated by tbls