You could use a composite primary/unique key for the 2 columns in question.