mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 20:51:07 +03:30
34 lines
965 B
PHP
Executable File
34 lines
965 B
PHP
Executable File
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Item>
|
|
*/
|
|
class ItemFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'package_id' => \App\Models\Package::factory(),
|
|
'name' => $this->faker->word,
|
|
'size' => $this->faker->word,
|
|
'unique_id' => $this->faker->uuid,
|
|
'specific' => $this->faker->word,
|
|
'note' => $this->faker->word,
|
|
'user_id' => \App\Models\User::factory(),
|
|
'udi' => $this->faker->uuid,
|
|
'repair' => $this->faker->boolean,
|
|
'creator_id' => \App\Models\User::factory(),
|
|
'status' => $this->faker->randomElement(['approved', 'rejected', 'suspended']),
|
|
];
|
|
}
|
|
}
|