<?php

namespace Database\Factories\CRM;

use App\Models\CRM\Address;
use App\Models\CRM\City;
use Illuminate\Database\Eloquent\Factories\Factory;
use App\Enums\AddressType;

class AddressFactory extends Factory
{
    protected $model = Address::class;

    public function definition(): array
    {
        return [
            'line_1'  => $this->faker->streetAddress,
            'type'    => AddressType::Residence->value, // default value; you can override as needed
            'city_id' => City::factory(),
            'status'  => 'active',
        ];
    }
}
