added event model and migration