UNIQUE constraints on many-to-many tables