<?php

namespace Database\Seeders;

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

class CustomerUserSeeder extends Seeder
{
    public function run(): void
    {
        // Create Test Customer User
        $customer = User::firstOrCreate(
            ['email' => 'customer@example.com'],
            [
                'name' => 'Test Customer',
                'password' => Hash::make('password123'),
                'role' => 'customer',
                'phone' => '+1234567890',
                'address' => '123 Test Street, Test City',
                'email_verified_at' => now(),
            ]
        );
        
        $this->command->info("Customer user created:");
        $this->command->info("Email: {$customer->email}");
        $this->command->info("Password: password123");
    }
}
