I've got some entities that are tagged under different categories. However, some of the categories have various sub-categories (up to 2 levels), but the hierarchy is not uniform - some with heights of 1 - 2.
My idea was to create a separate table for each category and one for each of the levels, then link the entity ID to the leaf however, it doesn't seem very efficient.
Love to hear your thoughts!