<?php

namespace Database\Seeders;

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

class UserSeeder extends Seeder
{
    public function run()
    {
        // Insert demo users into the users table
        DB::table('users')->insert([
            [
               
                'name' => 'Demo User 1',
                'phone_number' => '6397157707',
                'email' => 'demouser1@gmail.com',
                'otp' => null,
                'password' => bcrypt('password123'), // Example password
                'role' => 'user',
                'referral_code' => null,
                'user_id' => 'Cleaneo000002',
                'remember_token' => null,
                'otp_expiration' => null,
                'created_at' => now(),
                'updated_at' => now(),
                'wallet' => 0.00,
            ],
            [
                
                'name' => 'Demo User 2',
                'phone_number' => '6397157708',
                'email' => 'demouser2@gmail.com',
                'otp' => null,
                'password' => bcrypt('password123'), // Example password
                'role' => 'user',
                'referral_code' => null,
                'user_id' => 'Cleaneo000003',
                'remember_token' => null,
                'otp_expiration' => null,
                'created_at' => now(),
                'updated_at' => now(),
                'wallet' => 0.00,
            ],
            [
              
                'name' => 'Demo User 3',
                'phone_number' => '6397157709',
                'email' => 'demouser3@gmail.com',
                'otp' => null,
                'password' => bcrypt('password123'), // Example password
                'role' => 'user',
                'referral_code' => null,
                'user_id' => 'Cleaneo000004',
                'remember_token' => null,
                'otp_expiration' => null,
                'created_at' => now(),
                'updated_at' => now(),
                'wallet' => 0.00,
            ],
        ]);
    }
}
