<?php

namespace Database\Factories;

use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

class CuttingFactory extends Factory
{
    public function definition(): array
    {
        $materialCost = fake()->numberBetween(50000, 5000000);

        return [
            'created_by_id' => User::factory(),
            'status' => fake()->randomElement(['in_progress', 'completed', 'cancelled']),
            'description' => fake()->sentence(),
            'total_material_cost' => $materialCost,
            'cost_per_unit' => fake()->numberBetween(1000, 50000),
        ];
    }
}
