<?php

namespace Database\Factories;

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

/**
 * @extends Factory<PremiumEmail>
 */
class PremiumEmailFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'user_id' => 1,
            'message_id' => fake()->unique()->numerify('msg##########'),
            'subject' => fake()->sentence(),
            'from_name' => fake()->name(),
            'from_email' => fake()->email(),
            'to' => [fake()->email()],
            'cc' => [],
            'bcc' => [],
            'timestamp' => fake()->dateTime(),
            'body_text' => fake()->paragraph(),
            'body_html' => fake()->randomHtml(),
            'is_seen' => fake()->boolean(),
            'is_flagged' => fake()->boolean(),
            'size' => fake()->numberBetween(100, 10000),
            'mailbox' => 'INBOX',
            'raw_headers' => null,
            'raw_body' => null,
            'attachments' => [],
        ];
    }
}
