<?php

namespace Database\Seeders\Tenant;

use Illuminate\Database\Seeder;
use Mtc\MercuryDataModels\Colour;

class ColourMapSeeder extends Seeder
{
    public function run()
    {
        collect($this->getData())
            ->each(fn($colour) => Colour::query()->create($colour));
    }

    private function getData()
    {
        return [
            ['colour' => 'Black'],
            ['colour' => 'White'],
            ['colour' => 'Blue'],
            ['colour' => 'Red'],
            ['colour' => 'Green'],
            ['colour' => 'Silver'],
            ['colour' => 'Gray'],
            ['colour' => 'Yellow'],
            ['colour' => 'Brown'],
            ['colour' => 'Pink'],
            ['colour' => 'Beige'],
            ['colour' => 'Multicolour'],
        ];
    }
}
