<?php

namespace Database\Factories;

use App\Models\Order;
use Illuminate\Database\Eloquent\Factories\Factory;

class OrderFactory extends Factory
{
    protected $model = Order::class;

    public function definition(): array
    {
        return [
            'branch_id' => 1,
            'invoice_no' => 'INV-'.$this->faker->unique()->numerify('########'),
            'status' => 'selesai',
            'payment_status' => 'lunas',
            'grand_total' => 10000,
            'paid_total' => 10000,
            'balance_due' => 0,
        ];
    }
}
