forked from eatvio/eatvio-infra
init commit
This commit is contained in:
48
database/factories/UserDetailzFactory.php
Normal file
48
database/factories/UserDetailzFactory.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?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(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user