Table: Categories id (primary key) parent_id (foreign key on the id column, set to NULL for the upper-most node) name text