Removed some defaul values to handle validation

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2021-12-02 15:02:11 -08:00
parent 77d6649e38
commit 37033fb2f7
2 changed files with 0 additions and 3 deletions

View file

@ -36,7 +36,6 @@ class AssetFactory extends Factory
{ {
return [ return [
'name' => null, 'name' => null,
'rtd_location_id' => rand(1, 10),
'serial' => $this->faker->uuid, 'serial' => $this->faker->uuid,
'status_id' => 1, 'status_id' => 1,
'user_id' => 1, 'user_id' => 1,
@ -45,7 +44,6 @@ class AssetFactory extends Factory
'purchase_date' => $this->faker->dateTimeBetween('-1 years', 'now', date_default_timezone_get()), 'purchase_date' => $this->faker->dateTimeBetween('-1 years', 'now', date_default_timezone_get()),
'purchase_cost' => $this->faker->randomFloat(2, '299.99', '2999.99'), 'purchase_cost' => $this->faker->randomFloat(2, '299.99', '2999.99'),
'order_number' => $this->faker->numberBetween(1000000, 50000000), 'order_number' => $this->faker->numberBetween(1000000, 50000000),
'supplier_id' => 1,
'requestable' => $this->faker->boolean(), 'requestable' => $this->faker->boolean(),
'assigned_to' => null, 'assigned_to' => null,
'assigned_type' => null, 'assigned_type' => null,

View file

@ -93,7 +93,6 @@ class AssetModelFactory extends Factory
return [ return [
'name' => 'Macbook Pro 13"', 'name' => 'Macbook Pro 13"',
'category_id' => 1, 'category_id' => 1,
'manufacturer_id' => 1,
'eol' => '36', 'eol' => '36',
'depreciation_id' => 1, 'depreciation_id' => 1,
'image' => 'mbp.jpg', 'image' => 'mbp.jpg',