<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

class ShopPaymentFactory extends Factory
{
    public function definition(): array
    {
        return [
            'shop_user_id' => \App\Models\ShopUser::factory(),
            'amount' => $this->faker->randomFloat(2, 100, 5000),
            'status' => 'completed',
            'payment_method' => $this->faker->randomElement(['cash', 'esewa', 'khalti']),
            'reference' => $this->faker->optional()->bothify('TXN###-####'),
            'date' => $this->faker->date(),
        ];
    }
}
