<?php

namespace Database\Factories\Person;

use App\Models\Person\AddressType;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Person\PersonAddress>
 */
class PersonAddressFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'address' => $this->faker->streetAddress(),
            'country' => 'SI',
            'post_code' => $this->faker->postcode(),
            'city' => $this->faker->city(),
            'type_id' => AddressType::factory(),
            'user_id' => User::factory(),
        ];
    }
}
