<?php

namespace Database\Factories;

use App\Modules\Stock\Stock;
use Illuminate\Database\Eloquent\Factories\Factory;

class StockFactory extends Factory
{
    protected $model = Stock::class;

    public function definition()
    {
        return [
            'name' => $this->faker->unique()->word,
            'model_number' => $this->faker->unique()->bothify('MOD-####'),
            'type' => 'stock',
            'quantity' => $this->faker->numberBetween(1, 100),
            'price_excluding_vat' => $this->faker->randomFloat(2, 10, 1000),
            'buffer' => 0,
            'group_id' => 1,
        ];
    }
} 