<?php

namespace Database\Seeders;

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

class PetaniSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        // Petani SUDAH AKTIF -> Bisa login & jualan
        DB::table('petanis')->insert([
            'nama_lengkap' => 'Siti Aminah',
            'username'     => 'siti_sayur',
            'email'       => 'siti@gmail.com',
            'password'     => Hash::make('password123'),
            'no_hp'        => '085678901234',
            'alamat'       => 'Dusun Krajan RT 02 RW 01',
            'nama_usaha'   => 'Sayur Segar Bu Siti',
            'status_akun'  => 'aktif',
            'created_at'   => now(),
            'updated_at'   => now(),
        ]);
        // Petani BARU DAFTAR menunggu verifikasi
        DB::table('petanis')->insert([
            'nama_lengkap' => 'Budi Santoso',
            'username'     => 'budi_tani',
            'email'       => 'budisantoso@gmail.com',
            'password'     => Hash::make('password123'),
            'no_hp'        => '081234567890',
            'alamat'       => 'Jl. Raya Desa Sukamaju No. 12',
            'nama_usaha'   => 'Budi Farm Organik',
            'status_akun'  => 'menunggu',
            'created_at'   => now(),
            'updated_at'   => now(),
        ]);


        // Petani DITOLAK 
        DB::table('petanis')->insert([
            'nama_lengkap' => 'Joko Widodo', 
            'username'     => 'joko_tani',
            'email'       => 'wiwokdetok@gmail.com',
            'password'     => Hash::make('password123'),
            'no_hp'        => '089876543210',
            'alamat'       => 'Jl. Buntu No. 99',
            'nama_usaha'   => 'Joko Tani Jaya',
            'status_akun'  => 'ditolak',
            'created_at'   => now(),
            'updated_at'   => now(),
        ]);
    }
}