<?php

namespace Database\Factories;

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

class PackageFactory extends Factory
{
    /**
     * Define the model's default state.
     */
    public function definition(): array
    {
        return [
            'en_name' => fake()->word(),
            'fa_name' => fake()->word(),
            'thumbnail' => '{}',
            'en_description' => fake()->text(),
            'fa_description' => fake()->text(),
            'price' => fake()->randomFloat(0, 0, 9999999999.),
            'discount' => fake()->numberBetween(-10000, 10000),
            'slug' => fake()->slug(),
            'is_featured' => fake()->boolean(),
            'is_active' => fake()->boolean(),
            'package_category_id' => PackageCategory::factory(),
        ];
    }
}
