<?php

namespace Database\Seeders;

use App\Domains\Catalog\Models\Category;
use Illuminate\Database\Seeder;

class CategorySeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $categories = [
            'Remeras',
            'Pantalones',
            'Zapatillas',
            'Buzos',
            'Accesorios',
        ];

        foreach ($categories as $nombre) {
            Category::firstOrCreate([
                'nombre' => $nombre,
                'tenant_code' => null,
            ]);
        }
    }
}
