<?php

namespace Database\Seeders;

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

class UserSeeder extends Seeder
{
    public function run(): void
    {
        User::create([
            'name'     => 'Super Admin',
            'username' => 'admin',
            'email'    => 'admin@blogsportal.test',
            'password' => Hash::make('password'),
            'role'     => 'superadmin',
            'status'   => 'active',
            'bio'      => 'Platform administrator.',
        ]);

        User::create([
            'name'     => 'Jane Reseller',
            'username' => 'jane',
            'email'    => 'jane@blogsportal.test',
            'password' => Hash::make('password'),
            'role'     => 'reseller',
            'status'   => 'active',
            'blogs_quota' => 10,
            'blogs_used'  => 0,
            'bio'      => 'Award-winning writer covering technology and culture.',
            'country'  => 'United States',
        ]);

        User::create([
            'name'     => 'John Reader',
            'username' => 'john',
            'email'    => 'john@blogsportal.test',
            'password' => Hash::make('password'),
            'role'     => 'user',
            'status'   => 'active',
            'bio'      => 'Avid reader and aspiring writer.',
        ]);
    }
}
