<?php

namespace Database\Seeders;

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

class UsersTableSeeder extends Seeder
{
    /**
     * Seed the application's database.
     */
    public function run()
    {
        // Example users data for different roles
        $users = [
            [
                'role' => 'pemerintah',
                'sub_sektor' => 'Pemerintahan',
                'full_name' => 'John Doe',
                'nik' => '1234567890123456',
                'birthdate' => '1980-01-01',
                'address' => '123 Government St',
                'phone_number' => '081234567890',
                'email' => 'john.doe@example.com',
                'password' => Hash::make('password'),
                'institution_name' => 'aaaaa',
                'foto' => null,
                'establishment_date' => null,
                'description' => null,
                'npwp_number' => null,
                'siup_number' => null,
                'nib_number' => null,
                'profit' => null,
                'faculty' => null,
                'study_program' => null,
                'expertise_field' => null,
                'product' => null,
                'community_license' => null,
                'category' => null,
                'job' => null,
                'total_assets' => null,
            ],
            [
                'role' => 'umkm',
                'sub_sektor' => 'Kuliner',
                'full_name' => 'Jane Smith',
                'nik' => '6543210987654321',
                'birthdate' => '1990-05-15',
                'address' => '456 Market St',
                'phone_number' => '082345678901',
                'email' => 'jane.smith@example.com',
                'password' => Hash::make('password'),
                'institution_name' => 'bbbb',
                'foto' => 'path/to/photo.jpg',
                'establishment_date' => '2015-06-20',
                'description' => 'Owner of a small food business',
                'npwp_number' => '12.345.678.9-012.000',
                'siup_number' => 'SIUP123456',
                'nib_number' => null,
                'profit' => 50000000,
                'faculty' => null,
                'study_program' => null,
                'expertise_field' => null,
                'product' => 'Food and Beverage',
                'community_license' => null,
                'category' => null,
                'job' => null,
                'total_assets' => null,
            ],
            // Add more users as needed
        ];

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