<?php

namespace Database\Seeders;

use App\Models\Role;
use App\Models\User;
use Illuminate\Database\Seeder;

class BrigadierSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        User::query()->updateOrCreate(['email' => 'br1@admin.com'],
            [
                'name' => 'Ленин',
                'role' => Role::BRIGADIER,
                'password' => bcrypt('123456'),
            ]
        );
        User::query()->updateOrCreate(['email' => 'br2@admin.com'],
            [
                'name' => 'Сталин',
                'role' => Role::BRIGADIER,
                'password' => bcrypt('123456'),
            ]
        );
    }
}
