<?php

namespace Database\Factories;

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

class LinkFactory extends Factory
{
    protected $model = Link::class;

    public function definition(): array
    {
        return [
            'workspace_id' => Workspace::factory(),
            'slug' => Str::random(6),
            'target_url' => fake()->url(),
            'status' => 'active',
        ];
    }
}
