<?php

namespace Database\Factories;

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

/**
 * @extends Factory<Company>
 */
class CompanyFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'user_id' => User::factory(),
            'name' => fake()->company(),
            'email' => fake()->unique()->companyEmail(),
            'phone_number' => fake()->phoneNumber(),
            'address' => fake()->address(),
            'director_name' => fake()->name(),
            'director_nik' => fake()->numerify('################'),
            'deed_incorporation' => fake()->numerify('DEED-####'),
            'trade_license' => fake()->numerify('NIB-####'),
            'tax_id_number' => fake()->numerify('NPWP-####'),
            'taxable_enterprise' => fake()->numerify('PKP-####'),
            'annual_tax_return' => fake()->numerify('SPT-####'),
            'domicile_certificate' => fake()->numerify('DOM-####'),
            'profile' => fake()->sentence(),
        ];
    }
}
