<?php

namespace Database\Factories;

use App\Models\Company;
use Illuminate\Database\Eloquent\Factories\Factory;

class CompanyFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = Company::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'name' => $this->faker->company,
            'nit' => $this->faker->unique()->numberBetween(10000000, 99999999),
            'address' => $this->faker->address,
            'state' => '73',
            'city' => '73001',
            'phone' => $this->faker->numerify('3#########'),
            'email' => $this->faker->unique()->safeEmail,
            'legal_representative' => $this->faker->name,
            'document_type_representative' => $this->faker->randomElement(['1', '2', '3','4']),
            'document_representative' => $this->faker->numberBetween(10000000, 99999999),
            'document_expedition_representative' => $this->faker->city,
            'plan_id' => $this->faker->numberBetween($min = 1, $max = 3),
            'plan_payment_status' => $this->faker->randomElement($array = array ('0', '1')),
        ];
    }
}
