- ID - int(11)
- ParentID - int(11)
- Name - varchar(255)
- Sort - int(11)
Categories and sub-categories.
- ID - int(11) AI PK
- CatID - int(11) FK
- Image - varchar(255)
- Thumbnail - varchar(255)
Images and thumbnails associated with categories and their respective sub-categories.
- ID - int(11) AI PK
- CatID - int(11) FK
- ShortDesc - text
- LongDesc - longtext
Descriptions...you know descriptions.
- ID - int(11) AI PK
- CatID - int(11) FK
- Title - text
- Description - text
- Keywords - text
Meta data for each categories.
- ID - int(11) AI PK
- CatID - int(11) FK
- Field - varchar(255)
- Value - varchar(255)
- Sort - int(11)
Category attributes would be useful in search, filter mechanisms, etc. There might be a way to set this up so where there are system-level attributes that apply to all categories, a specific category, or an entire category tree (category and all associated sub-categories).
Obviously categories would be broken up into multiple tables.