Phase diagram and entanglement of the Ising model with Dzyaloshinskii-Moriya interaction