<?php

namespace Database\Factories;

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

/** @extends Factory<Datacenter> */
class DatacenterFactory extends Factory
{
    protected $model = Datacenter::class;

    public function definition(): array
    {
        return [
            // Wide unique space — 'dc?' (26 values) exhausted across a full suite run.
            'code' => 'dc'.$this->faker->unique()->numberBetween(100, 999999),
            'name' => $this->faker->city(),
            'location' => 'DE',
            'active' => true,
        ];
    }
}
