33 lines
797 B
PHP
33 lines
797 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\BazaarReview;
|
|
use App\Models\MobileApp;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<BazaarReview>
|
|
*/
|
|
class BazaarReviewFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'mobile_app_id' => MobileApp::factory(),
|
|
'bazaar_review_id' => fake()->unique()->numberBetween(1, 99999999),
|
|
'user_account_id' => fake()->uuid(),
|
|
'rate' => fake()->numberBetween(1, 5),
|
|
'text' => fake()->sentence(),
|
|
'is_edited' => false,
|
|
'published_at' => now(),
|
|
'bazaar_response' => [],
|
|
];
|
|
}
|
|
}
|