<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Product>
 */
class ProductFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'ProductCode' => $this->faker->unique()->randomNumber(),
            'CategoryName' => $this->faker->word,
            'ProductName' => $this->faker->sentence,
            'SalePrice' => $this->faker->randomFloat(2, 10, 100),
            'SupplierName' => $this->faker->company,
            'ShortName' => $this->faker->word,
            'ProductDescription' => $this->faker->paragraph,
        ];
    }
}