<?php

namespace Database\Factories;

use App\Enums\ReportReason;
use App\Enums\ReportStatus;
use App\Models\MealPosts;
use App\Models\ModerationCase;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Report>
 */
class ReportFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'moderation_case_id' => ModerationCase::factory(),
            'reporter_id' => User::factory(),
            'reportable_type' => MealPosts::class,
            'reportable_id' => MealPosts::factory(),
            'reason' => ReportReason::OTHER,
            'details' => $this->faker->optional()->sentence(),
            'status' => ReportStatus::OPEN,
            'reviewed_by' => null,
            'reviewed_at' => null,
        ];
    }
}
