<?php

namespace Database\Factories;

use App\Models\Label;
use Illuminate\Database\Eloquent\Factories\Factory;

class LabelFactory extends Factory
{
    protected $model = Label::class;

    public function definition(): array
    {
        return [
            'name' => $this->faker->unique()->words(2, true),
            'color' => sprintf('#%06X', mt_rand(0, 0xFFFFFF)),
            'hidden_at' => null,
            'last_imported_at' => null,
        ];
    }
}
