<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;
use App\Models\User;
use App\Models\Message;
/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\MessageComment>
 */
class MessageCommentFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition()
    {
        return [
            'content' => $this->faker->paragraph(),
            'author_id' => $this->faker->randomElement(User::pluck('id')),
            'message_id' => $this->faker->randomElement(Message::pluck('id')),
        ];
    }
}
