"""
Módulo de permisos multi-tenant.
Proporciona modelos, servicios y rutas para gestión de permisos granulares por companye.
"""

from .models import (
    Permission,
    CompanyRole,
    RolePermission,
    UserCompanyRole,
    UserCompanyPermission,
)
from .service import PermissionService
from .dependencies import (
    PermissionChecker,
    RequirePermission,
    get_permission_service,
    get_current_user_permissions,
)
from .routes import router

__all__ = [
    # Models
    "Permission",
    "CompanyRole",
    "RolePermission",
    "UserCompanyRole",
    "UserCompanyPermission",
    # Service
    "PermissionService",
    # Dependencies
    "PermissionChecker",
    "RequirePermission",
    "get_permission_service",
    "get_current_user_permissions",
    # Router
    "router",
]
