<?php

namespace Database\Seeders;

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

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        // Создаём администратора
        User::factory()->create([
            'name' => 'Администратор',
            'email' => 'info@vmedia.by',
            'password' => bcrypt('QaZwSx88-='),
            'role' => 'admin',
            'telegram_chat_id' => '642117462'
        ]);

        // Создаём 5 монтажников
        User::factory(1)->create([
            'name' => 'Тест',
            'email' => 'info@test.by',
            'password' => bcrypt('Q123-='),
            'role' => 'installer',
            'rating' => 5.0,
            'telegram_chat_id' => '642117462'
        ]);
    }
}
