<?php

namespace Database\Factories;

use App\Enums\DataChangeDecision;
use App\Models\DataChangeRequest;
use App\Models\DataChangeReview;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<DataChangeReview>
 */
class DataChangeReviewFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'data_change_request_id' => DataChangeRequest::factory(),
            'reviewer_id' => User::factory(),
            'decision' => DataChangeDecision::APPROVED,
            'note' => fake()->sentence(),
        ];
    }
}
