<?php

namespace Database\Seeders;

use App\Models\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;

class OwnerUserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        User::updateOrCreate(
            ['email' => 'owner@truetrucker.com'],
            [
                'name' => 'Default Owner',
                'password' => Hash::make('password'),
                'role' => 'owner',
                'company_id' => null,
            ]
        );
    }
}
