<?php

declare(strict_types=1);

namespace App\Support\WorkspaceIsolation;

class TenantOwnedTables
{
    /**
     * @return array<int, string>
     */
    public static function all(): array
    {
        return [
            'policies',
            'policy_versions',
            'backup_sets',
            'backup_items',
            'restore_runs',
            'backup_schedules',
            'inventory_items',
            'inventory_links',
            'entra_groups',
            'findings',
            'entra_role_definitions',
            'tenant_permissions',
        ];
    }

    public static function contains(string $table): bool
    {
        return in_array($table, self::all(), true);
    }
}
