generate model using generator (gii)