Correctly define foreign key pair