db factories: More unique constrains

This commit is contained in:
Igor Scheller 2022-11-26 13:36:47 +01:00
parent 23d7e8632b
commit cdc218e116
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ class GroupFactory extends Factory
public function definition()
{
return [
'name' => $this->faker->word(),
'name' => $this->faker->unique()->word(),
];
}
}

View File

@ -16,7 +16,7 @@ class PrivilegeFactory extends Factory
public function definition()
{
return [
'name' => $this->faker->word(),
'name' => $this->faker->unique()->word(),
'description' => $this->faker->text(),
];
}

View File

@ -16,7 +16,7 @@ class ScheduleFactory extends Factory
public function definition()
{
return [
'name' => $this->faker->words(4, true),
'name' => $this->faker->unique()->words(4, true),
'url' => $this->faker->parse('https://{{safeEmailDomain}}/{{slug}}.xml'),
'shift_type' => $this->faker->numberBetween(1, 5),
'minutes_before' => 15,