<?php

namespace Database\Factories;

use App\Models\Customer;
use App\Models\Instance;
use App\Models\Order;
use Illuminate\Database\Eloquent\Factories\Factory;

/** @extends Factory<Instance> */
class InstanceFactory extends Factory
{
    protected $model = Instance::class;

    public function definition(): array
    {
        return [
            'customer_id' => Customer::factory(),
            'order_id' => Order::factory(),
            'plan' => 'start',
            'quota_gb' => 100,
            'disk_gb' => 120,
            'ram_mb' => 4096,
            'cores' => 2,
            'subdomain' => 'nc-'.$this->faker->unique()->numberBetween(1, 999999),
            'status' => 'reserving',
        ];
    }
}
