<?php

namespace Database\Seeders;

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

class CategorySeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $categories = [
            [
                'name' => '商品',
                'description' => '由原物料加工完成的成品',
                'is_active' => true,
            ],
            [
                'name' => '原物料',
                'description' => '製作飲品或餐點的基礎原料',
                'is_active' => true,
            ],
            [
                'name' => '半成品',
                'description' => '已經過初步加工的原料',
                'is_active' => true,
            ],
            [
                'name' => '包材',
                'description' => '杯子、吸管、封膜等消耗品',
                'is_active' => true,
            ],
            [
                'name' => '設備',
                'description' => '店面或廚房使用的機器設備',
                'is_active' => true,
            ],
            [
                'name' => '清潔用品',
                'description' => '清潔與環境維護用品',
                'is_active' => true,
            ],
        ];

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