<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\SubSystemItem;

class SubSystemItemSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $array = Array(
            ['sub_system_id' => 1, 'item' => '自訂表單'],
            ['sub_system_id' => 1, 'item' => '題數'],
            ['sub_system_id' => 1, 'item' => '派工次數'],
            ['sub_system_id' => 1, 'item' => '手機數量'],
            ['sub_system_id' => 2, 'item' => '上傳空間'],
            ['sub_system_id' => 2, 'item' => '上傳數量'],
            ['sub_system_id' => 2, 'item' => '手機數量'],
        );
        
        foreach ($array as $value) {
            SubSystemItem::create($value);
        }
    }
}
