<?php

namespace Database\Seeders;

use App\Models\Plan;
use Illuminate\Database\Seeder;

class InternalPlanSeeder extends Seeder
{
    public function run(): void
    {
        if (Plan::where('plan_key', 'internal')->exists()) {
            $this->command->info('Internal Plan existiert bereits.');
            return;
        }

        Plan::create([
            'name'         => 'Internal',
            'sort'         => 999,
            'plan_key'     => 'internal',
            'price'        => 0,
            'credit_limit' => 0,
            'device_limit' => 99,
            'active'       => true,
            'is_internal'  => true,
            'ai_config'    => [
                'model'       => 'gpt-4o',
                'temperature' => 0.5,
                'max_tokens'  => 2000,
                'input_cost'  => 0.0025,
                'output_cost' => 0.01,
            ],
        ]);

        $this->command->info('Internal Plan erstellt.');
    }
}
