<?php

namespace Database\Seeders;

use App\Models\Customer;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class CustomersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        Customer::firstOrCreate([
            'phone' => '00000000',
        ], [
            'name' => 'Walk-in Customer',
            'cpr' => null,
            'email' => null,
            'address' => null,
            'tenant_id' => 1,
        ]);

        Customer::firstOrCreate([
            'phone' => '12345678',
        ], [
            'name' => 'John Doe',
            'cpr' => '123456-7890',
            'email' => 'nasik@gmail.com',
            'address' => '123 Main St, City, Country',
            'tenant_id' => 1,
        ]);

        Customer::firstOrCreate([
            'phone' => '87654321',
        ], [
            'name' => 'Jane Smith',
            'cpr' => null,
            'email' => "nasik@gmail.com",
            'address' => null,
            'tenant_id' => 1,
        ]);
    }
}
