<?php

namespace Database\Seeders;

use App\Models\Outlet;
use Illuminate\Database\Seeder;

class OutletSeeder extends Seeder
{
    public function run(): void
    {
        $rows = [
            ['brand' => 'Tata (Himgiri)',     'location' => 'Sector-37'],
            ['brand' => 'Hyundai',            'location' => 'Sector-53'],
            ['brand' => 'Hyundai',            'location' => 'Palam Vihar'],
            ['brand' => 'Cargo Tata Motors',  'location' => null],
            ['brand' => 'Zedex Showroom',     'location' => 'Sector-62'],
            ['brand' => 'Zedex Showroom',     'location' => 'Sector-48'],
        ];
        foreach ($rows as $r) {
            Outlet::firstOrCreate($r, $r);
        }
    }
}
