I have created two tables in my WordPress database. One which holds company info (wp_companies) and the other contains products types (wp_product_types). wp_product_types is basically just a list of all the product types that a company can assign to them selves.
Database demos:
wp_companies
company_name | member_type | products
-------------------------------------
Google | full |
-------------------------------------
Crunchyroll | full |
wp_product_types
product_name |
-----------------
Car Insurance |
-----------------
House Insurance |
-----------------
Life Insurance |
With the above demo tables lets say Google offers Car Insurance and House Insurance and Crunchyroll will offer all three product types. If I was able to I would simply add an array of product types into the products column in wp_companies but as far as I'm aware you can't use arrays like this in MySQL.
So my question is how can I assign multiple product types to a company?