<?php

namespace Database\Seeders;

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

class UserSeeder extends Seeder
{
    public function run(): void
    {
        DB::table('users')->insert([ // <-- Perhatikan kurung siku pembuka ini
            [
                'nama' => 'Bilqis',
                'username' => 'admin1',
                'email' => 'admin@flodo.com',
                'password' => Hash::make('password123'),
                'no_wa' => '0893781263',
                'alamat' => 'Kauman',
                'role' => 'admin_buket',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'nama' => 'Ayu',
                'username' => 'admin2',
                'email' => 'admin2@flodo.com',
                'password' => Hash::make('password123'),
                'no_wa' => '08937812890',
                'alamat' => 'Kauman',
                'role' => 'admin_foto',
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'nama' => 'Debby',
                'username' => 'ownerdebby',
                'email' => 'debby@flodo.com',
                'password' => Hash::make('password123'),
                'no_wa' => '0893781263',
                'alamat' => 'Kauman',
                'role' => 'pemilik',
                'created_at' => now(),
                'updated_at' => now(),
            ]
        ]); // <-- Dan kurung siku penutup ini
    }
}
