<?php

namespace Database\Seeders;

use App\Models\User;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     */
    public function run(): void
    {
        // User::factory(10)->create();
        $this->call([
            TicketTypeSeeder::class,
            MenuListSeeder::class,
            TopologySeeder::class,
            NotificationSeeder::class,
            PaymentProviderSeeder::class,
        ]);

        User::query()->updateOrCreate(
            ['email' => 'master@services-core.local'],
            [
                'name' => 'Master User',
                'password' => 'Master@12345',
                'is_master' => true,
                'access_level' => 'master_admin',
            ]
        );
    }
}
