add model and repository