<?php

declare(strict_types=1);

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

/** @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Announcement> */
class AnnouncementFactory extends Factory
{
    /** @return array<string, mixed> */
    public function definition(): array
    {
        return [
            'title' => fake()->sentence(),
            'content' => fake()->paragraphs(2, true),
            'type' => fake()->randomElement(['maintenance', 'feature', 'outage']),
            'published_at' => now(),
        ];
    }
}
