What’s the difference between a generative and discriminative model?

Technical