added secure token and event type model and migration