Added notes to factories

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2025-02-11 00:34:30 +00:00
parent 63cb4e70bc
commit ff95049f7c
6 changed files with 6 additions and 0 deletions

View file

@ -30,6 +30,7 @@ class CategoryFactory extends Factory
'require_acceptance' => false, 'require_acceptance' => false,
'use_default_eula' => $this->faker->boolean(), 'use_default_eula' => $this->faker->boolean(),
'created_by' => User::factory()->superuser(), 'created_by' => User::factory()->superuser(),
'notes' => 'Created by DB seeder',
]; ];
} }

View file

@ -24,6 +24,7 @@ class CompanyFactory extends Factory
return [ return [
'name' => $this->faker->unique()->company(), 'name' => $this->faker->unique()->company(),
'created_by' => 1, 'created_by' => 1,
'notes' => 'Created by DB seeder',
]; ];
} }
} }

View file

@ -27,6 +27,7 @@ class DepartmentFactory extends Factory
'name' => $this->faker->unique()->word() . ' Department', 'name' => $this->faker->unique()->word() . ' Department',
'created_by' => User::factory()->superuser(), 'created_by' => User::factory()->superuser(),
'location_id' => Location::factory(), 'location_id' => Location::factory(),
'notes' => 'Created by DB seeder',
]; ];
} }

View file

@ -24,6 +24,7 @@ class GroupFactory extends Factory
return [ return [
'name' => $this->faker->name(), 'name' => $this->faker->name(),
'permissions' => json_encode([]), 'permissions' => json_encode([]),
'notes' => 'Created by DB seeder',
]; ];
} }
} }

View file

@ -23,6 +23,7 @@ class LocationFactory extends Factory
'currency' => $this->faker->currencyCode(), 'currency' => $this->faker->currencyCode(),
'zip' => $this->faker->postcode(), 'zip' => $this->faker->postcode(),
'image' => rand(1, 9).'.jpg', 'image' => rand(1, 9).'.jpg',
'notes' => 'Created by DB seeder',
]; ];
} }

View file

@ -28,6 +28,7 @@ class ManufacturerFactory extends Factory
'support_phone' => $this->faker->phoneNumber(), 'support_phone' => $this->faker->phoneNumber(),
'url' => $this->faker->url(), 'url' => $this->faker->url(),
'support_email' => $this->faker->safeEmail(), 'support_email' => $this->faker->safeEmail(),
'notes' => 'Created by DB seeder',
]; ];
} }