<?php

declare(strict_types=1);

namespace Database\Factories;

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

/**
 * @extends Factory<Tenant>
 */
class TenantFactory extends Factory
{
    protected $model = Tenant::class;

    public function definition(): array
    {
        $slug = $this->faker->unique()->slug(2);

        return [
            'name' => $this->faker->company(),
            'domain' => $slug.'.wdot.test',
            'status' => Tenant::STATUS_ACTIVE,
            'plan' => Tenant::PLAN_FREE,
            'settings' => null,
        ];
    }
}
