course_categories table
The course_categories table in the Learning Management System Database Schema schema has 5 columns, keyed by id, with 1 foreign key to course_categories. 1 column in courses references it.
Self-referencing tree. parent_id null is a top-level subject area.
Columns (5)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| parent_id | uuid | references course_categories.id | |
| name | varchar(120) | not null | |
| slug | varchar(140) | unique, not null | |
| position | integer | not null |
Relationships
course_categories.parent_idreferencescourse_categories.idcourses.category_idreferencescourse_categories