generate model and migration