Generated model code