<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\User;
use Illuminate\Support\Facades\Hash;

class UserSeeder extends Seeder
{
    public function run()
    {
        // Admin
        User::create([
            'username' => 'admin',
            'password' => Hash::make('admin123'),
            'role_id' => 1,
            'id_siswa' => null,
            'id_pembimbing_magang' => null,
            'id_pembimbing_sekolah' => null
        ]);

        // Siswa
        User::create([
            'username' => 'salsabila_azzahra',
            'password' => Hash::make('salsa300807'),
            'role_id' => 2,
            'id_siswa' => 1,
            'id_pembimbing_magang' => null,
            'id_pembimbing_sekolah' => null
        ]);

        // Pembimbing Magang
        User::create([
            'username' => 'arif_maulana',
            'password' => Hash::make('arif123'),
            'role_id' => 3,
            'id_siswa' => null,
            'id_pembimbing_magang' => 1,
            'id_pembimbing_sekolah' => null
        ]);

        // Pembimbing Sekolah  
        User::create([
            'username' => 'ahmad_faishal',
            'password' => Hash::make('faishal123'),
            'role_id' => 4,
            'id_siswa' => null,
            'id_pembimbing_magang' => null,
            'id_pembimbing_sekolah' => 1
        ]);
    }
}