23 lines
586 B
PHP
23 lines
586 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Cutting;
|
|
use App\Models\RawMaterialPrice;
|
|
use App\Models\User;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class CuttingMaterialFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'user_id' => User::factory(),
|
|
'cutting_id' => Cutting::factory(),
|
|
'raw_material_price_id' => RawMaterialPrice::factory(),
|
|
'material_usage' => fake()->randomFloat(2, 0.1, 100),
|
|
'material_result' => fake()->numberBetween(0, 100),
|
|
];
|
|
}
|
|
}
|