Please see my comment to the question for the discussion of the valid approaches and some rationale behind them. For some introduction, please see
https://en.wikipedia.org/wiki/Unique_key[
^].
As I explained in my last comment, it's not all. But further discussion requires more detail on your problem, database schema and your requirements, as well as ultimate goals of your uniqueness criteria, as well as criteria themselves.
—SA