product_categories table
The product_categories table in the Inventory Management Database Schema schema has 3 columns, keyed by id, with 1 foreign key to product_categories. 1 column in products references it.
Self-referencing tree. parent_id null is a top-level category.
Columns (3)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| parent_id | uuid | references product_categories.id | |
| name | varchar(120) | not null |
Relationships
product_categories.parent_idreferencesproduct_categories.idproducts.category_idreferencesproduct_categories