<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;

class PembeliSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $data = [
            [
                'nama_lengkap' => 'Andi Pembeli',
                'username'     => 'andi_beli',
                'email'        => 'andiwibu@gmail.com',
                'password'     => Hash::make('password123'),
                'no_hp'        => '081298765432',
                'alamat'       => 'Jl. Merdeka No. 45, Kota Sejahtera',
                'created_at'   => now(),
                'updated_at'   => now(),
            ],
            [
                'nama_lengkap' => 'Rina Suka Sayur',
                'username'     => 'rina_sayur',
                'email'        => 'rinauhuy@gmail.com',
                'password'     => Hash::make('password123'),
                'no_hp'        => '085612345678',
                'alamat'       => 'Perumahan Griya Asri Blok B2, Desa Sukamaju',
                'created_at'   => now(),
                'updated_at'   => now(),
            ],
        ];

        DB::table('pembelis')->insert($data);
    }
}