forked from eatvio/eatvio-infra
33 lines
718 B
PHP
33 lines
718 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use App\Models\User;
|
|
use App\Models\Diary;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Diary>
|
|
*/
|
|
class DiaryFactory extends Factory
|
|
{
|
|
protected $model = Diary::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition()
|
|
{
|
|
return [
|
|
'user_id' => User::factory(),
|
|
'date' => $this->faker->date('Y-m-d'),
|
|
'wakeup' => '06:30:00',
|
|
'retire' => '22:30:00',
|
|
'comment' => 'some comment for tests',
|
|
'closed' => false,
|
|
];
|
|
}
|
|
}
|