<?php

namespace Database\Seeders\Modules;

use Illuminate\Database\Seeder;

use Database\Seeders\Traits\Upsertable;

use App\Models\Restaurant\ProductCategory;

class RestaurantSeeder extends Seeder
{
    use Upsertable;

    /**
     * Run the database seeds.
     */
    public function run(): void
    {
      //* Control Data
        $file_name = "RestaurantSeeder";

      //* Data to Seed per Entities
        $categories = [
            [
                'category_name' => 'Amenidades',
                'category_code' => 'SCP-01',
            ],
        ];

      //* Seed Data
        $this->upsertData($file_name, ProductCategory::class, 'category_code', $categories);
    }
}
