mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-28 19:45:41 +00:00
343290a55a
* 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
16 lines
325 B
Go
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(),
|
|
}
|
|
}
|