<?php

namespace Database\Factories;

use App\Modules\Invoices\InvoiceItem;
use Illuminate\Database\Eloquent\Factories\Factory;

class InvoiceItemFactory extends Factory
{
    protected $model = InvoiceItem::class;

    public function definition()
    {
        return [
            'invoice_id' => 1,
            'name' => $this->faker->word,
            'type' => 'product',
            'stock_id' => 1,
            'quantity' => $this->faker->numberBetween(1, 10),
            'price_sold_exc' => $this->faker->randomFloat(2, 10, 1000),
            'discount' => 0,
            'refunded' => 0,
            'ignore_stock' => 0,
        ];
    }
} 