I am studying mysql and I came across the following situation and would like to know if there is a solution structuring my tables to solve this. Assuming I have two tables; user (id, user, password) and annotations (id, title, text, userid). In the Annotations table 'id_user' is a foreign key. I would like the contents of the 'title' field of the 'anotacoes' table to be unique for each foreign key. Thank you in advance!