Renamed vote->type to vote->vote_type and scaffolded VoteEvent model