Im trying to solve this problem with relationships in the pivot table. i have 3 tables (products, collections, collection_product)
products table id name size_id