generated model and controller