added space type model and migration