<?php

namespace App\Database\Seeds;

use CodeIgniter\Database\Seeder;

class UserSeeder extends Seeder
{
    public function run()
    {
        $data = [
            [
                'username' => 'admin',
                'password' => password_hash('admin123', PASSWORD_DEFAULT),
                'name' => 'Administrator',
                'email' => 'admin@madaniyatsi.com',
                'role' => 'admin',
            ],
        ];

        // Using Query Builder
        $this->db->table('users')->insertBatch($data);
    }
}









