<?php

namespace Database\Factories;

use App\Enums\ReminderStatus;
use App\Models\Business;
use App\Models\Customer;
use App\Models\ScheduledReminder;
use Illuminate\Database\Eloquent\Factories\Factory;

class ScheduledReminderFactory extends Factory
{
    protected $model = ScheduledReminder::class;

    public function definition(): array
    {
        return [
            'business_id' => Business::factory(),
            'customer_id' => Customer::factory(),
            'type' => 'appointment_reminder',
            'channel' => 'email',
            'recipient' => fake()->safeEmail(),
            'subject' => 'Appointment reminder',
            'message' => 'This is a Booklio reminder.',
            'scheduled_at' => now()->addDay(),
            'status' => ReminderStatus::Scheduled->value,
            'attempts' => 0,
        ];
    }
}
