<?php

namespace Database\Factories;

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

class CouponFactory extends Factory
{
    /**
     * Define the model's default state.
     */
    public function definition(): array
    {
        return [
            'code' => fake()->word(),
            'type' => fake()->randomElement(["percentage","fixed"]),
            'value' => fake()->randomFloat(0, 0, 9999999999.),
            'en_description' => fake()->text(),
            'fa_description' => fake()->text(),
            'slug' => fake()->slug(),
            'is_active' => fake()->boolean(),
            'valid_from' => fake()->dateTime(),
            'valid_to' => fake()->dateTime(),
            'user_id' => User::factory(),
        ];
    }
}
