<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\User;
use Illuminate\Support\Facades\Hash;
class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        // Creating a sample admin user
        $admin = new User();
        $admin->name              = "user";
        $admin->user_id           = "US1234";
        $admin->email             = "novelxansalna@gmail.com";
        $admin->phone_number      = "9876543210";
        $admin->address           = "Nagercoil";
        $admin->is_active         = true;
        $admin->role              = "user";
        $admin->otp               = null;
        $admin->otp_expires_at    = null;
        $admin->otp_verified      = false;
        $admin->is_verified       = false;
        $admin->password          = Hash::make('qwertyuiop');
        $admin->save();

}
}