<?php

namespace Database\Factories;

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

/**
 * @extends Factory<License>
 */
class LicenseFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition()
    {
        return [
            'name' => $this->faker->name,
            'issuing_org' => $this->faker->name,
            'credential_id' => $this->faker->uuid,
            'credential_url' => $this->faker->url(),
            'start_date' => $this->faker->date,
            'end_date' => $this->faker->date,
            'does_not_expire' => $this->faker->boolean,
            'firm_id' => $this->faker->numberBetween(1, 5),
        ];
    }
}
