Class hierarchy in MySQL
问题 I'm creating clothing shop and therefore I'm creating gallery functionality which consists of 2 types: Product gallery and lookbook gallery. A product gallery is simply pictures of singular products and a lookbook gallery is pictures that contains multiple products. So far i I have a simplified UML diagram somewhat like this I'm not sure how to translate this into MySQL tables. I've tried and I came up with something like this But it seems like overkill and smells funny to me. What would be