<?php

namespace MintyPHP\Repository\Tenant;

/** Contract for tenant CRUD and filtered listing. */
interface TenantRepositoryInterface
{
    public function list(): array;

    public function listIds(): array;

    public function listByIds(array $tenantIds): array;

    public function listActiveIdsByIds(array $tenantIds): array;

    public function listPaged(array $options): array;

    public function find(int $id): ?array;

    public function findByUuid(string $uuid): ?array;

    public function create(array $data): int|false;

    public function update(int $id, array $data): bool;

    public function delete(int $id): bool;
}
