mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -08:00
Removed some defaul values to handle validation
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
77d6649e38
commit
37033fb2f7
|
@ -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,
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue