<?php

namespace Database\Seeders;

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

class CategorySeeder extends Seeder
{
    public function run(): void
    {
        $categories = [
            ['name' => 'Electronics', 'is_active' => true],
            ['name' => 'Clothing', 'is_active' => true],
            ['name' => 'Food & Beverages', 'is_active' => true],
            ['name' => 'Home & Garden', 'is_active' => true],
            ['name' => 'Sports & Outdoors', 'is_active' => true],
            ['name' => 'Health & Beauty', 'is_active' => true],
            ['name' => 'Toys & Games', 'is_active' => true],
            ['name' => 'Office Supplies', 'is_active' => true],
        ];

        foreach ($categories as $category) {
            Category::create($category);
        }
    }
}
