<?php

namespace Database\Factories;

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

class CreditCouponFactory extends Factory
{
    /**
     * Define the model's default state.
     */
    public function definition(): array
    {
        return [
            'code' => fake()->word(),
            'amount' => fake()->randomFloat(0, 0, 9999999999.),
            'is_active' => fake()->boolean(),
            'valid_from' => fake()->dateTime(),
            'valid_to' => fake()->dateTime(),
            'user_id' => User::factory(),
        ];
    }
}
