Allow custom constraints on a detach clause

If per example you have an `user_user` table where you store friends, following, starred etc in a `type` column, you can thus now detach a particular relation link without detaching all the others.