<?php

namespace Database\Factories;

use App\Domains\QrCode\Models\QrCode;
use App\Domains\Workspace\Models\Workspace;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;

class QrCodeFactory extends Factory
{
    protected $model = QrCode::class;

    public function definition(): array
    {
        return [
            'ulid' => (string) Str::ulid(),
            'workspace_id' => Workspace::factory(),
            'type' => 'url',
            'payload' => ['url' => fake()->url()],
            'style' => null,
            'is_dynamic' => true,
        ];
    }
}
