<?php

namespace Database\Factories;

use App\Enums\FuelType;
use App\Models\User;
use App\Models\UserNotificationPreference;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<UserNotificationPreference>
 */
class UserNotificationPreferenceFactory extends Factory
{
    public function definition(): array
    {
        return [
            'user_id' => User::factory(),
            'channel' => fake()->randomElement(['email', 'push', 'whatsapp', 'sms']),
            'fuel_type' => fake()->randomElement(array_column(FuelType::cases(), 'value')),
            'enabled' => true,
        ];
    }
}
