Files
eatvio-infra/database/factories/UserDetailzFactory.php
Anatoliy Poloz a6dec71ac1 init commit
2022-05-13 08:07:15 +00:00

49 lines
1.8 KiB
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use App\Models\UserDetailz;
use App\Models\User;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\UserDetailz>
*/
class UserDetailzFactory extends Factory
{
protected $model = UserDetailz::class;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition()
{
return [
'user_id' => User::factory(),
'first_name' => $this->faker->name(),
'last_name' => $this->faker->name(),
'birthdate' => $this->faker->date('Y-m-d'),
'gender' => $this->faker->randomElement(['male', 'female']),
'country' => $this->faker->countryCode(),
'city' => $this->faker->randomElement(['Moscow', 'Kyev', 'New-York', 'Minsk']),
'lang' => $this->faker->languageCode(),
'weight' => $this->faker->numberBetween(90, 200),
'chest_circumference' => $this->faker->randomNumber(2, true),
'waist_circumference' => $this->faker->randomNumber(2, true),
'hip_circumference' => $this->faker->randomNumber(2, true),
'blood_pressure_up' => $this->faker->randomNumber(3, true),
'blood_pressure_down' => $this->faker->randomNumber(3, true),
'has_hypo' => $this->faker->randomElement(['0', '1']),
'has_hyper' => $this->faker->randomElement(['0', '1']),
'about_alergy' => $this->faker->text(),
'about_taking_pils' => $this->faker->text(),
'about_sport_hobbies' => $this->faker->text(),
'favorite_foods' => $this->faker->text(),
'unfavorite_foods' => $this->faker->text(),
'additional_info' => $this->faker->text(),
];
}
}