homebox/backend/internal/mocks/factories/users.go
Hayden 343290a55a
refactor: repositories (#28)
* cleanup unnecessary mocks

* refactor document storage location

* remove unused function

* move ownership to document types to repo package

* move types and mappers to repo package

* refactor sets to own package
2022-09-27 15:52:13 -08:00

16 lines
325 B
Go

package factories
import (
"github.com/hay-kot/homebox/backend/internal/repo"
"github.com/hay-kot/homebox/backend/pkgs/faker"
)
func UserFactory() repo.UserCreate {
f := faker.NewFaker()
return repo.UserCreate{
Name: f.Str(10),
Email: f.Email(),
Password: f.Str(10),
IsSuperuser: f.Bool(),
}
}