Generated event model and migration