1👍
[W]ill this work as [the]
Yes, but it makes no sense: since the email
is already unique, the combination of domain
and email
will always be unique anyway. So any combination with the email
field is unique, and the UniqueConstraint
here thus will not add any extra restriction.
Source:stackexchange.com