feat: add admin panel
This commit is contained in:
1 parent
7970d4be9b
commit
0128191ac3
26 files changed
+2985
-115
No files matched your search
@@ -0,0 +1,40 @@
|
||||
"""SQLModel-backed persistence (Phase 4.1).
|
||||
|
||||
The storage layer carries three tables — :class:`Token`, :class:`Session`,
|
||||
:class:`AuditLog` — and a thin :class:`Database` wrapper around a sync
|
||||
SQLAlchemy engine. Phase 4.2 (auth migration) and Phase 4.3 (admin UI)
|
||||
build on this; Phase 4.1 itself only schemas the data and exposes the
|
||||
``Database`` on :class:`GatewayRuntime` so later phases can reach it.
|
||||
"""
|
||||
|
||||
from beaver_gateway.storage.db import (
|
||||
Database,
|
||||
append_audit,
|
||||
close_session,
|
||||
create_token,
|
||||
list_active_tokens,
|
||||
list_audit_records,
|
||||
list_tokens,
|
||||
revoke_token,
|
||||
touch_session,
|
||||
touch_token,
|
||||
upsert_session,
|
||||
)
|
||||
from beaver_gateway.storage.models import AuditLog, Session, Token
|
||||
|
||||
__all__ = [
|
||||
"AuditLog",
|
||||
"Database",
|
||||
"Session",
|
||||
"Token",
|
||||
"append_audit",
|
||||
"close_session",
|
||||
"create_token",
|
||||
"list_active_tokens",
|
||||
"list_audit_records",
|
||||
"list_tokens",
|
||||
"revoke_token",
|
||||
"touch_session",
|
||||
"touch_token",
|
||||
"upsert_session",
|
||||
]
|
||||
Reference in new issue
Block a user