<?php

namespace Database\Factories;

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

/**
 * @extends Factory<RemoteEmail>
 */
class RemoteEmailFactory extends Factory
{
    protected $model = RemoteEmail::class;

    public function definition(): array
    {
        return [
            'message_id' => $this->faker->uuid(),
            'subject' => $this->faker->sentence(),
            'from_name' => $this->faker->name(),
            'from_email' => $this->faker->email(),
            'to' => [$this->faker->email()],
            'body_html' => '<p>'.$this->faker->paragraph().'</p>',
            'body_text' => $this->faker->paragraph(),
            'is_seen' => $this->faker->boolean(),
            'timestamp' => $this->faker->dateTime(),
        ];
    }
}
