Added tag_color to factories

This commit is contained in:
snipe
2025-11-17 11:18:02 +00:00
parent c694c11724
commit e3ac60111f
6 changed files with 6 additions and 0 deletions

View File

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

View File

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

View File

@@ -28,6 +28,7 @@ class DepartmentFactory extends Factory
'created_by' => User::factory()->superuser(),
'location_id' => Location::factory(),
'notes' => 'Created by DB seeder',
'tag_color' => $this->faker->hexColor(),
];
}

View File

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

View File

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

View File

@@ -35,6 +35,7 @@ class SupplierFactory extends Factory
'email' => $this->faker->safeEmail(),
'url' => $this->faker->url(),
'notes' => $this->faker->text(191), // Supplier notes can be a max of 255 characters.
'tag_color' => $this->faker->hexColor(),
];
}
}