2022-08-30 02:30:36 +00:00
|
|
|
package factories
|
|
|
|
|
|
|
|
import (
|
2022-08-30 02:40:54 +00:00
|
|
|
"github.com/hay-kot/content/backend/internal/types"
|
|
|
|
"github.com/hay-kot/content/backend/pkgs/faker"
|
2022-08-30 02:30:36 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func UserFactory() types.UserCreate {
|
|
|
|
f := faker.NewFaker()
|
|
|
|
return types.UserCreate{
|
|
|
|
Name: f.RandomString(10),
|
|
|
|
Email: f.RandomEmail(),
|
|
|
|
Password: f.RandomString(10),
|
|
|
|
IsSuperuser: f.RandomBool(),
|
|
|
|
}
|
|
|
|
}
|