Database Modeling: Product with 1 or more categories
问题 I'm working on a database design that allows for a product to be in 1 or more categories. A category can be in a parent-child relationship. Here's what I have so far: ================== product ================== product_id name ================== category ================== category_id parent_category_id level name ================== product_category ================== product_id category_id (leaf node only) Questions Does the design look good? Am I right to only be concerned with the leaf