unique constraint for admin and view hashes