Added Type model for actions, and migration