<?php

namespace Database\Seeders;

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

class ChannelSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $channels = [
            ['name' => 'vibe24jam', 'description' => 'Vibe 24 Jam Delivery'],
            ['name' => 'blibli', 'description' => 'Blibli E-Commerce'],
            ['name' => 'tokopedia', 'description' => 'Tokopedia E-Commerce'],
            ['name' => 'shopee', 'description' => 'Shopee E-Commerce'],
            ['name' => 'pos', 'description' => 'Point of Sale (Offline)'],
        ];

        foreach ($channels as $channel) {
            Channel::firstOrCreate(['name' => $channel['name']], $channel);
        }
    }
}
