Add relation constraints