<?php

namespace Database\Factories\INSURANCE;

use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\INSURANCE\InsurancePolicy>
 */
class InsurancePolicyFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            // 'entity_id'       => Entity::factory(),
            'policy_number'   => $this->faker->unique()->bothify('POL-####'),
            'insured_amount'  => $this->faker->randomFloat(2, 1000, 100000),
            'premium'         => $this->faker->randomFloat(2, 100, 1000),
            'start_date'      => $this->faker->date(),
            'end_date'        => $this->faker->dateTimeBetween('now', '+1 year')->format('Y-m-d'),
            'status'          => 'active',
        ];
    }
}
