<?php

namespace Database\Factories;

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

class ProductSizeFactory extends Factory
{
    protected $model = ProductSize::class;

    public function definition(): array
    {
        return [
            'created_at' => Carbon::now(),
            'updated_at' => Carbon::now(),
            'size'       => $this->faker->randomElement(['xs', 's', 'm', 'l', 'xl', '2xl', '3xl']),
            'amount'     => $this->faker->randomNumber(2, false),
        ];
    }
}
