<?php

namespace Database\Factories;

use App\Models\Todo;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Carbon;

class todoFactory extends Factory
{
    protected $model = Todo::class;

    public function definition(): array
    {
        return [
            'name' => $this->faker->name(),
            'is_done' => $this->faker->boolean(),
            'image_url' => null,
            'created_at' => Carbon::now(),
            'updated_at' => Carbon::now(),

            'user_id' => User::factory(),
        ];
    }
}
