Added unique constraint to pin number too. Is this the right move?