<?php

namespace Database\Factories;

use App\Enums\ModerationCaseStatus;
use App\Models\MealPosts;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\ModerationCase>
 */
class ModerationCaseFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'caseable_type' => MealPosts::class,
            'caseable_id' => MealPosts::factory(),
            'status' => ModerationCaseStatus::OPEN,
            'reports_count' => 0,
            'threshold' => 3,
            'threshold_notified_at' => null,
            'assigned_to' => null,
            'resolved_by' => null,
            'resolved_at' => null,
            'resolution_note' => null,
        ];
    }
}
