<?php

namespace Database\Factories;

use App\Models\ShippingEntry;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Carbon;

class ShippingEntryFactory extends Factory
{
    protected $model = ShippingEntry::class;

    public function definition(): array
    {
        return [
            'created_at' => Carbon::now(),
            'updated_at' => Carbon::now(),
            'courier' => $this->faker->randomElement(['UPS', 'Purolator', 'FreightCom', 'E-Shipper', 'ACE']),
            'contact' => $this->faker->randomElement(['courier.com', '+1 604 123 4567']),
            'account_title' => $this->faker->word,
            'account_username' => 'username',
            'account_password' => 'password',
            'info_needed' => $this->faker->words(3, true),
            'notify' => 'someone@account.com',
            'notes' => $this->faker->randomElement(['', '', '', 'Some really long text to simulate a note being put here']),
        ];
    }
}