<?php

namespace Database\Factories;

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

class PackingSlipFactory extends Factory
{
    protected $model = PackingSlip::class;

    public function definition(): array
    {
        return [
            'date_received' => $this->faker->dateTimeBetween('-1 month', 'now'),
            'order_id'      => $this->faker->randomNumber(6),
            'amount'        => $this->faker->numberBetween(2, 5).' boxes',
            'contents'      => $this->faker->numberBetween(2, 60).' '.$this->faker->randomElement(['t-shirts', 'caps', 'jackets', 'pants', 'sweaters']),
            'created_at'    => Carbon::now(),
            'updated_at'    => Carbon::now(),
        ];
    }
}
