generated purchases controller
generated purchase model