<?php

namespace Database\Seeders;

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

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        User::factory()->create([
            'name' => 'Admin User',
            'phone' => '1234567899',
            'password' => Hash::make('1234567899'),
            'role' => 'admin',
        ]);
        User::factory()->create([
            'name' => 'Agent User',
            'phone' => '1234567890',
            'password' => Hash::make('1234567890'),
            'role' => 'agent',
            'balance' => 50000
        ]);
    }
}
