Use unique constraint.