<?php

namespace Database\Factories;

use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;

class UserFactory extends Factory
{
    protected $model = User::class;

    public function definition()
    {
        return [
            'first_name' => $this->faker->firstName,
            'last_name' => $this->faker->lastName,
            'username' => $this->faker->unique()->userName,
            'email' => $this->faker->unique()->safeEmail,
            'role' => 'user',
            'password' => bcrypt('password'),
            'mobile' => $this->faker->phoneNumber,
            'extension' => $this->faker->randomNumber(3),
            'direct_dial' => $this->faker->phoneNumber,
            'active' => 1,
            'suspended' => 0,
        ];
    }
} 