<?php
namespace Database\Factories;

use App\Enums\PartnerLevel;
use App\Models\Partner;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;

class PartnerFactory extends Factory
{
    protected $model = Partner::class;

    public function definition(): array
    {
        $name = fake()->unique()->company();
        return [
            'name' => $name,
            'slug' => Str::slug($name),
            'logo' => null,
            'segment' => fake()->randomElement(['Alimentação', 'Bebidas', 'Logística']),
            'level' => fake()->randomElement(PartnerLevel::cases())->value,
            'href' => fake()->url(),
            'since' => fake()->year(),
            'display_order' => fake()->numberBetween(1, 20),
            'is_active' => true,
        ];
    }
}
