<?php

namespace Database\Seeders;

use App\Modules\Procurement\Models\Vendor;
use Illuminate\Database\Seeder;

class VendorSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $vendors = [
            [
                'code' => 'V001',
                'name' => '萬源食糧行',
                'contact_name' => '王老闆',
                'phone' => '02-23456789',
                'address' => '台北市萬華區某路123號',
                'tax_id' => '12345678',
            ],
            [
                'code' => 'V002',
                'name' => '新竹農產批發',
                'contact_name' => '李經理',
                'phone' => '03-5566778',
                'address' => '新竹市北區某路456號',
                'tax_id' => '87654321',
            ],
        ];

        foreach ($vendors as $vendor) {
            Vendor::create($vendor);
        }
    }
}
