create cmms machine service with tests

This commit is contained in:
2024-12-08 10:27:14 +03:30
parent 822b2ae526
commit c8e024981e
11 changed files with 420 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\CMMSMachine>
*/
class CMMSMachineFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'car_name' => $this->faker->name,
'car_group' => $this->faker->name,
'car_id' => $this->faker->numberBetween(1, 10),
'car_status' => $this->faker->lexify,
'machine_code' => $this->faker->numerify,
'unit_name' => $this->faker->name,
'unit_group' => $this->faker->name,
'plak_number' => $this->faker->numerify,
];
}
}