e4dcfc49aa
Tests / Import Check (Python 3.13) (push) Has been cancelled
Tests / Import Check (Python 3.14) (push) Has been cancelled
Tests / Python Tests (Python 3.11) (push) Has been cancelled
Tests / Python Tests (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.14) (push) Has been cancelled
Tests / Test Summary (push) Has been cancelled
Tests / Lint and Format (push) Has been cancelled
Tests / Web Node Tests (push) Has been cancelled
Tests / Import Check (Python 3.11) (push) Has been cancelled
Tests / Import Check (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.13) (push) Has been cancelled
24 lines
1.0 KiB
Python
24 lines
1.0 KiB
Python
"""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"]
|