<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class ProjectTypeSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $types = [
            [
                'name' => 'Project',
                'description' => 'Full software development project with defined scope, timeline, and deliverables',
            ],
            [
                'name' => 'Support',
                'description' => 'Ongoing support and maintenance with SLA requirements',
            ],
        ];

        foreach ($types as $type) {
            DB::table('project_types')->updateOrInsert(
                ['name' => $type['name']],
                $type
            );
        }
    }
}
