Create repository model