<?php

namespace Database\Seeders;

use App\Models\api\v1\Item;
use Illuminate\Support\Str;
use Illuminate\Database\Seeder;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;

class ItemsSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        if(Item::count() == 0)
        {
            Item::create([
                "uuid"                      => Str::uuid(),
                "size"                      => rand(0,9),
                "unit"                      => Str::random(3),
                "name"                      => "BOCK",
                "description"               => Str::random(128),
                "img_1"                     => "https://www.solibra.ci/nos-marques-11.html",
                "provider_by_country_id"    =>  1,
                "created_by"                => 1,
            ]);

            Item::create([
                "uuid"                      => Str::uuid(),
                "size"                      => rand(0,9),
                "unit"                      => Str::random(3),
                "name"                      => "DOPPEL MUNICH",
                "description"               => Str::random(128),
                "img_1"                     => "https://www.solibra.ci/nos-marques-11.html",
                "provider_by_country_id"    =>  1,
                "created_by"                => 1,
            ]);

            Item::create([
                "uuid"                      => Str::uuid(),
                "size"                      => rand(0,9),
                "unit"                      => Str::random(3),
                "name"                      => "BEAUFORT LAGER",
                "description"               => Str::random(128),
                "img_1"                     => "https://www.solibra.ci/nos-marques-11.html",
                "provider_by_country_id"    =>  1,
                "created_by"                => 1,
            ]);


            Item::create([
                "uuid"                      => Str::uuid(),
                "size"                      => rand(0,9),
                "unit"                      => Str::random(3),
                "name"                      => "WORLD COLA",
                "description"               => Str::random(128),
                "img_1"                     => "https://www.solibra.ci/nos-marques-11.html",
                "provider_by_country_id"    =>  1,
                "created_by"                => 1,
            ]);


            Item::create([
                "uuid"                      => Str::uuid(),
                "size"                      => rand(0,9),
                "unit"                      => Str::random(3),
                "name"                      => "YOUZOU",
                "description"               => Str::random(128),
                "img_1"                     => "https://www.solibra.ci/nos-marques-11.html",
                "provider_by_country_id"    =>  1,
                "created_by"                => 1,
            ]);


            Item::create([
                "uuid"                      => Str::uuid(),
                "size"                      => rand(0,9),
                "unit"                      => Str::random(3),
                "name"                      => "ORANGINA",
                "description"               => Str::random(128),
                "img_1"                     => "https://www.solibra.ci/nos-marques-11.html",
                "provider_by_country_id"    =>  1,
                "created_by"                => 1,
            ]);



            Item::create([
                "uuid"                      => Str::uuid(),
                "size"                      => rand(0,9),
                "unit"                      => Str::random(3),
                "name"                      => "VALPIERRE",
                "description"               => Str::random(128),
                "img_1"                     => "https://www.solibra.ci/nos-marques-11.html",
                "provider_by_country_id"    =>  1,
                "created_by"                => 1,
            ]);



            Item::create([
                "uuid"                      => Str::uuid(),
                "size"                      => rand(0,9),
                "unit"                      => Str::random(3),
                "name"                      => "XXL",
                "description"               => Str::random(128),
                "img_1"                     => "https://www.solibra.ci/nos-marques-11.html",
                "provider_by_country_id"    =>  1,
                "created_by"                => 1,
            ]);



            Item::create([
                "uuid"                      => Str::uuid(),
                "size"                      => rand(0,9),
                "unit"                      => Str::random(3),
                "name"                      => "IVORIO ANANAS",
                "description"               => Str::random(128),
                "img_1"                     => "https://atouivorio.com/#conceptivorio",
                "provider_by_country_id"    =>  2,
                "created_by"                => 1,
            ]);



            Item::create([
                "uuid"                      => Str::uuid(),
                "size"                      => rand(0,9),
                "unit"                      => Str::random(3),
                "name"                      => "IVORIO MANGUE",
                "description"               => Str::random(128),
                "img_1"                     => "https://atouivorio.com/#conceptivorio",
                "provider_by_country_id"    =>  1,
                "created_by"                => 1,
            ]);



            Item::create([
                "uuid"                      => Str::uuid(),
                "size"                      => rand(0,9),
                "unit"                      => Str::random(3),
                "name"                      => "IVORIO PASSION",
                "description"               => Str::random(128),
                "img_1"                     => "https://www.solibra.ci/nos-marques-11.html",
                "provider_by_country_id"    =>  1,
                "created_by"                => 1,
            ]);



            Item::create([
                "uuid"                      => Str::uuid(),
                "size"                      => rand(0,9),
                "unit"                      => Str::random(3),
                "name"                      => "IVORIO TAMARIN",
                "description"               => Str::random(128),
                "img_1"                     => "https://www.solibra.ci/nos-marques-11.html",
                "provider_by_country_id"    =>  1,
                "created_by"                => 1,
            ]);



            Item::create([
                "uuid"                      => Str::uuid(),
                "size"                      => rand(0,9),
                "unit"                      => Str::random(3),
                "name"                      => "IVORIO BISSAP",
                "description"               => Str::random(128),
                "img_1"                     => "https://www.solibra.ci/nos-marques-11.html",
                "provider_by_country_id"    =>  1,
                "created_by"                => 1,
            ]);



            Item::create([
                "uuid"                      => Str::uuid(),
                "size"                      => rand(0,9),
                "unit"                      => Str::random(3),
                "name"                      => "IVORIO GOYAVE",
                "description"               => Str::random(128),
                "img_1"                     => "https://www.solibra.ci/nos-marques-11.html",
                "provider_by_country_id"    =>  1,
                "created_by"                => 1,
            ]);



            Item::create([
                "uuid"                      => Str::uuid(),
                "size"                      => rand(0,9),
                "unit"                      => Str::random(3),
                "name"                      => "IVORIO COCKTAIL",
                "description"               => Str::random(128),
                "img_1"                     => "https://www.solibra.ci/nos-marques-11.html",
                "provider_by_country_id"    =>  1,
                "created_by"                => 1,
            ]);



            Item::create([
                "uuid"                      => Str::uuid(),
                "size"                      => rand(0,9),
                "unit"                      => Str::random(3),
                "name"                      => "IVORIO BAOBAB",
                "description"               => Str::random(128),
                "img_1"                     => "https://www.solibra.ci/nos-marques-11.html",
                "provider_by_country_id"    =>  1,
                "created_by"                => 1,
            ]);
        }
    }
}
