<?php

namespace Database\Factories;

use App\Models\Membership;
use App\Models\Organization;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends Factory<Membership>
 */
class MembershipFactory extends Factory
{
    /**
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'organization_id' => Organization::factory(),
            'user_id' => User::factory(),
            'role' => 'owner',
            'privileges' => [
                'manage_team',
                'manage_channels',
                'customize_widget',
                'view_inbox',
                'reply_to_customers',
                'take_over_handoffs',
                'assign_conversations',
                'monitor_ai',
                'train_ai',
                'manage_callbacks',
                'view_reports',
            ],
        ];
    }
}
