<?php

namespace Database\Seeders\Global;

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

class HeyCarExportMapTemplateSeed extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        ExportMapTemplate::updateOrCreate(
            [
                'title' => 'HeyCar Dealer File',
            ],
            [
                'is_published' => true,
                'sales_channel' => 'hey-car',
                'type' => 'dealership',
                'columns' => [
                    'data.hey-car-dealer-id',
                    'name',
                    'franchise.name',
                    'address1',
                    'city',
                    'county',
                    'postcode',
                    'email',
                    'contact_no',
                    'empty',
                ],
                'headers' => [
                    'dealer_id',
                    'name',
                    'franchise',
                    'street',
                    'city',
                    'county',
                    'postcode',
                    'email',
                    'phone',
                    'URL',
                ],
                'mapping_rules' => [],
            ]
        );
    }
}
