Add entities fields and repositories