[Answered ]-Can a field which is already declared as unique can be used with another field and make a constraint unique together?

1👍

[W]ill this work as [the] email field is already unique?

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.

Leave a comment