added event migration, model and model test