<?php

namespace Database\Factories;

use App\Models\Offerwall;
use App\Models\ProviderOffer;
use Illuminate\Database\Eloquent\Factories\Factory;

class ProviderOfferFactory extends Factory
{
    protected $model = ProviderOffer::class;

    public function definition()
    {
        return [
            'offerwall_id' => Offerwall::factory(),
            'provider_offer_id' => (string) $this->faker->unique()->numberBetween(1000, 999999),
            'name' => $this->faker->unique()->sentence(3),
            'description' => $this->faker->sentence(),
            'reward_points' => 25,
            'payout' => 1.25,
            'launch_mode' => 'iframe',
            'category' => 'other',
            'devices' => ['android', 'ios', 'desktop'],
            'is_active' => true,
            'is_featured' => false,
            'is_hot' => false,
        ];
    }
}
