<?php

namespace Database\Seeders;

use App\Models\UserManagement\Customer;
use App\Models\UserManagement\User;
use App\Models\LocalizationManagement\Address;
use Database\Factories\UserAddressFactory;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class CustomerSeeder extends Seeder{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run(){
        Customer::factory(30)  // 30 User
          //  ->has(UserAddress::factory(rand(1,3)),"addresses") // chacun aura entre 1 et 3 adresses de livraison
           //  ->customer() // de type 'Client'
             //->hasAddresses(rand(1,3)) // chacun aura entre 1 et 3 adresses de livraison
             ->create(); // valider en BD
    }
}
