<?php

namespace Database\Seeders;

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

class MachineSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $machines = [
            [
                'name' => 'Wire Drawing Machine A1',
                'code' => 'WD001',
                'capacity' => '1000 kg/hour',
                'status' => 'active',
            ],
            [
                'name' => 'Cable Extruder B2',
                'code' => 'CE002',
                'capacity' => '500 kg/hour',
                'status' => 'active',
            ],
            [
                'name' => 'Cable Twister C3',
                'code' => 'CT003',
                'capacity' => '2000 kg/hour',
                'status' => 'active',
            ],
            [
                'name' => 'Insulation Machine D4',
                'code' => 'IM004',
                'capacity' => '800 meters/hour',
                'status' => 'maintenance',
            ],
            [
                'name' => 'Cutting Machine E5',
                'code' => 'CM005',
                'capacity' => '1500 pieces/hour',
                'status' => 'active',
            ],
        ];

        foreach ($machines as $machine) {
            \App\Models\Machine::create($machine);
        }
    }
}
