<?php

namespace Database\Seeders;

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

class SpecialitySeeder extends Seeder
{
    public function run(): void
    {
        $specialities = [
            'Casa',
            'Apartamento',
            'Escritório',
            'Banheiro',
            'Cozinha',
            'Vidros',
            'Closet',
            'Faxina pesada',
        ];

        foreach ($specialities as $description) {
            Speciality::updateOrCreate(
                ['description' => $description],
                ['active' => true]
            );
        }
    }
}
