Mean-ﬁeld models for disordered crystals