<?php

namespace Database\Factories;

use App\Enums\TenantAnnouncementAudience;
use App\Enums\TenantAnnouncementStatus;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\TenantAnnouncement>
 */
class TenantAnnouncementFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'title' => $this->faker->sentence(4),
            'body' => $this->faker->paragraph(3),
            'cta_label' => null,
            'cta_url' => null,
            'status' => TenantAnnouncementStatus::DRAFT,
            'audience' => TenantAnnouncementAudience::ALL,
            'segments' => [],
            'email_enabled' => true,
            'starts_at' => null,
            'ends_at' => null,
        ];
    }
}
