<?php

namespace Database\Factories;

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

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\MasterMenu>
 */
class MasterMenuFactory extends Factory
{
    public function definition(): array
    {
        $hargaJual = fake()->numberBetween(15000, 65000);

        return [
            'id_stand' => MasterStand::factory(),
            'nama' => fake()->words(2, true),
            'type_menu' => fake()->randomElement(['makanan', 'minuman', 'snack']),
            'harga_pokok' => $hargaJual * 0.7,
            'harga_jual' => $hargaJual,
            'image' => null,
            'is_active' => true,
        ];
    }
}
