I have designed an ERD for a website I am about to build.
This website has 2 groups: the USER and the COMPANY. Different companies (or shops, to be precise) have the option of logging into the site and enter new products into the system. The users can then log in and view products based on brands and categories.
In the ERD I have created all the tables, fields and one-to-many relations to the best of my knowlegde. I think that went well until the category tables.
I want the products to be categorized in like “MEN&SHOES“, “KIDS&CLOTHES“. I figured out I am going to need 2 tables for that: CategoryPersonGroup & CategoryProductGroup. But I do not know what is the right approach to link this to the products table. Please help! This is my ERD:

I think
many to 1relations between product and category tables would be convenient such as:Product (N) -- has -- (1) CategoryProductGroupProduct (N) -- has -- (1) CategoryPersonGroup.