<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use App\Models\User;
use Illuminate\Support\Facades\Hash;

class DriverUserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        // إنشاء مستخدم سائق للاختبار
        User::create([
            'name' => 'سائق تجريبي',
            'email' => 'driver@test.com',
            'password' => Hash::make('12345678'),
            'phone' => '+964700123456',
            'user_type' => 'driver',
            'service_type' => 'taxi',
            'status' => 'active',
            'is_verified' => true,
            'latitude' => 31.0437,
            'longitude' => 46.2575,
        ]);

        $this->command->info('Driver user created successfully!');
        $this->command->info('Email: driver@test.com');
        $this->command->info('Password: 12345678');
    }
}
