<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class CategorySeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $categories = [
            ['name' => 'Elektronik', 'sequence' => 1],
            ['name' => 'Fashion Pria', 'sequence' => 2],
            ['name' => 'Fashion Wanita', 'sequence' => 3],
            ['name' => 'Makanan & Minuman', 'sequence' => 4],
            ['name' => 'Kesehatan', 'sequence' => 5],
            ['name' => 'Kecantikan', 'sequence' => 6],
            ['name' => 'Olahraga', 'sequence' => 7],
            ['name' => 'Otomotif', 'sequence' => 8],
            ['name' => 'Perabotan Rumah', 'sequence' => 9],
            ['name' => 'Mainan & Hobi', 'sequence' => 10],
        ];

        foreach ($categories as $cat) {
            \App\Models\Category::create($cat);
        }
    }
}
