<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Rating>
 */
class RatingFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition()
    {
        return [
            'comment' => $this->faker->realText,
            'rate'=> $this->faker->numberBetween(1,5),
            'user_id' => $this->faker->numberBetween(1,5),
            'rateable_id' => $this->faker->numberBetween(1,5),
            'rated_id' => $this->faker->numberBetween(1,5),
            'rateable_type' => $this->faker->randomElement(['App\Models\Service','App\Models\Project']),
            'rated_type' => $this->faker->randomElement(['App\Models\Engineer','App\Models\Firm'])
        ];
    }
}
