23 lines
595 B
PHP
23 lines
595 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Cutting;
|
|
use App\Models\User;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class CuttingResultFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'user_id' => User::factory(),
|
|
'cutting_id' => Cutting::factory(),
|
|
'product_name' => fake()->words(2, true),
|
|
'cutting_result' => fake()->numberBetween(1, 500),
|
|
'sample' => fake()->numberBetween(0, 50),
|
|
'original_outside_sample' => fake()->numberBetween(0, 20),
|
|
];
|
|
}
|
|
}
|