<?php

namespace Database\Factories;

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

class CampaignFactory extends Factory
{
    protected $model = Campaign::class;

    public function definition()
    {
        return [
            'offerwall_id' => Offerwall::factory(),
            'name' => $this->faker->unique()->sentence(3),
            'description' => $this->faker->sentence(),
            'reward_points' => 10,
            'payout' => 0.5,
            'status' => 'active',
            'featured' => false,
            'category' => 'other',
            'device' => 'all',
            'direct_launch_mode' => 'iframe',
        ];
    }
}
