Magnetic Categories