I am creating a a table that holds orders that we receive. ONe column will hold the product ID(s) and the quantity(s) as they could order 3 different items then next order 15 different items. So i have created it so the column order_products will be text[] that will hold arrays like so:
{{123234,3},{987765,3},{456678,65}}
The first part relating to another table with the product details then the quantity of that ordered.
My question is, is there a way to link the first part of each array (the part number) to the product table via PK or FK to create the relationship?