<?php

namespace Database\Seeders;

use App\Models\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;

class DatabaseSeeder extends Seeder
{
    public function run(): void
    {
        // Owner account
        User::create([
            'username' => 'OWNER',
            'fullname' => 'Panel Owner',
            'email'    => 'owner@panel.com',
            'password' => Hash::make('OWNER1234'),
            'role'     => 'owner',
            'balance'  => 999999,
        ]);

        // Admin account
        User::create([
            'username' => 'KAKASHI',
            'fullname' => 'Admin User',
            'email'    => 'admin@panel.com',
            'password' => Hash::make('admin@123'),
            'role'     => 'admin',
            'balance'  => 50000,
        ]);

        // Reseller account
        User::create([
            'username' => 'RESELLER1',
            'fullname' => 'Test Reseller',
            'email'    => 'reseller@panel.com',
            'password' => Hash::make('reseller@123'),
            'role'     => 'reseller',
            'balance'  => 5000,
        ]);
    }
}
