Generate Event model and controller