A magnetohydrodynamic model for quantum plasmas