The purpose of the foreign key is to ensure referential integrity of the data. In other words, only values that are supposed to appear in the database are permitted. ###>En d’autres mots, seules les valeurs devant apparaître dans la base de données sont permises.