Prerequisites are preliminary knowledge that is assumed for the student to have for a course
| Name | Type | Default | Nullable | Children | Parents | Comment |
|---|---|---|---|---|---|---|
| course_id | uuid | false | public.courses | A prerequisite belongs to a 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. | |||
| id | uuid | uuid_generate_v4() | false | A unique, stable identifier for the record. | ||
| prerequisite | varchar(255) | false | A preliminary area of knowledge that the course assumes the student knows. | |||
| 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_prerequisites_course_id_fkey | FOREIGN KEY | FOREIGN KEY (course_id) REFERENCES courses(id) |
| course_prerequisites_course_id_not_null | n | NOT NULL course_id |
| course_prerequisites_created_at_not_null | n | NOT NULL created_at |
| course_prerequisites_id_not_null | n | NOT NULL id |
| course_prerequisites_pkey | PRIMARY KEY | PRIMARY KEY (id) |
| course_prerequisites_prerequisite_not_null | n | NOT NULL prerequisite |
| course_prerequisites_updated_at_not_null | n | NOT NULL updated_at |
| Name | Definition |
|---|---|
| course_prerequisites_pkey | CREATE UNIQUE INDEX course_prerequisites_pkey ON public.course_prerequisites USING btree (id) |
| Name | Definition |
|---|---|
| set_timestamp | CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.course_prerequisites FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp() |
Generated by tbls