Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

1.0 KB
Raw Blame
"""Optional multi-user support for DeepTutor.

The package is deliberately isolated from the legacy single-user services.
Existing code enters it through thin adapters only when auth.json enables auth.

Backend support matrix
----------------------

The default JSON/SQLite backend (``integrations.pocketbase_url`` blank) is the supported
multi-user path: per-user workspaces under ``data/users/<uid>/``, accounts and
grants under ``data/system/``, per-user SQLite session DBs, and JWT-based auth.

PocketBase mode (``integrations.pocketbase_url`` set) is **single-user only** at the
moment: the PocketBase ``users`` collection has no ``role`` field by default
(every login resolves to ``role="user"``, so no admin can be created), and
the ``sessions`` / ``messages`` / ``turns`` collections are not filtered by
``user_id`` in the queries. Treat PocketBase deployments as single-user until
the schema and queries are updated.
"""

from .models import CurrentUser, UserRecord, UserScope

__all__ = ["CurrentUser", "UserRecord", "UserScope"]