I have a table called categories. The table holds categories and their sub(subsub)categories...
Its an easy table:
In Category model: belongsTo Parent and hasMany Children, both have the class 'Category' and foreign key 'parent_id'