General base repository