Pokud máte problémy s jedinečností, můžete na Connections použít složený primární klíč s použitím obou sloupců (id_1, id_2).