Generate user model.