<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

class UnlockOrderFactory extends Factory
{
    public function definition(): array
    {
        $serviceTypes = ['frp', 'icloud', 'network', 'mdm'];
        $statuses = ['pending', 'in_progress', 'done'];

        return [
            'shop_user_id' => \App\Models\ShopUser::factory(),
            'customer_name' => $this->faker->name(),
            'phone_number' => '98' . $this->faker->numerify('#########'),
            'device_model' => $this->faker->randomElement(['iPhone 12', 'iPhone 13 Pro', 'Samsung S21', 'Samsung A12', 'Xiaomi Note 10']),
            'imei_number' => $this->faker->numerify('####################'),
            'service_type' => $this->faker->randomElement($serviceTypes),
            'note' => $this->faker->optional()->sentence(),
            'status' => $this->faker->randomElement($statuses),
            'service_price' => $this->faker->randomFloat(2, 100, 1000),
            'date' => $this->faker->date(),
        ];
    }
}
