<?php

namespace Modules\PortalApi\Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
use Modules\PortalApi\Entities\PortalOwner;

class PortalDemoOwnerSeeder extends Seeder
{
    public function run(): void
    {
        PortalOwner::updateOrCreate(
            ['phone' => '+201020020852'],
            [
                'business_id'    => 1,
                'name'           => 'Rawan',
                'email'          => 'rawan@demo.test',
                'password'       => Hash::make('demo123'),
                'is_active'      => true,
            ]
        );
    }
}
