Given the two following tables :
Gallery
id | title | desc
Site
id | title | desc | url
I've a tags system which can apply to both Gallery and Site tables.
I'm wondering if I should do :
TagMap
tagId | entityId | applyTo
Where applyTo could be 'site' or 'gallery' or use separate table like the following :
TagGalleryMap
tagId | galleryId
and
TagSiteMap
tagId | siteId
What are you though about this ?