created repo model and relation