Renamed model to model.entity