title: Database with several primary keys attached to a list
body: <p>I have a database that has two primary keys that represent two representative and unique items for each item of the table. </p>
  
  <p>This pair of values in the table is attached to a list of identifiers of another table. That table looks more or less like this:</p>
  
  <p><a href="https://i.stack.imgur.com/rBBCU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rBBCU.png" alt="enter image description here"></a></p>
  
  <p>I have te "Electro" database that has two primary keys and each pair of them is attached to a list of images. But I can't insert on database the same pair of PK (primary key) with different image id. </p>
  
  <p>I was thinking on storing a list of strings with each identifiers, but that solution is not good. </p>
  
  <p>How can I attach a pair of "id", "profile_id" to several image ids without putting the image id as a primary key? Is there any way without making the image ID a primary key?</p>
  
  <p>Thank you.</p>