only create unique constraint for non-pk column