In my domain, I often need to enforce unique constraints that only apply within specific contexts. For example, I'd like Companies to have unique names within each Country, but it doesn't matter if a Company in a different Country has the same name.
...