<?php

namespace Database\Factories;

use App\Models\Review;
use App\Models\User;
use App\Models\Course;
use App\Enums\ReviewStatus;
use Illuminate\Database\Eloquent\Factories\Factory;

class ReviewFactory extends Factory
{
    protected $model = Review::class;

    public function definition(): array
    {
        return [
            'user_id' => User::factory(),
            'course_id' => Course::factory(),
            'rating' => $this->faker->numberBetween(1, 5),
            'comment' => $this->faker->sentence(10),
            'status' => $this->faker->randomElement(ReviewStatus::cases()),
        ];
    }
}
