diff options
| author | 2024-08-19 01:05:27 +0100 | |
|---|---|---|
| committer | 2024-08-19 01:05:27 +0100 | |
| commit | fe6abd8a5719cbcab1d1207918136f19042e4fa3 (patch) | |
| tree | df09b6c83653189f668fce044c41096386e5bde0 /thallium-backend/src/orm/users.py | |
| parent | Caddy local support (diff) | |
Add debug endpoints and implement token auth
Co-authored-by: Joe Banks <[email protected]>
Diffstat (limited to 'thallium-backend/src/orm/users.py')
| -rw-r--r-- | thallium-backend/src/orm/users.py | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/thallium-backend/src/orm/users.py b/thallium-backend/src/orm/users.py index 065519a..8f78387 100644 --- a/thallium-backend/src/orm/users.py +++ b/thallium-backend/src/orm/users.py @@ -1,4 +1,4 @@ -from sqlalchemy.orm import Mapped, mapped_column +from sqlalchemy.orm import Mapped  from .base import AuditBase, Base @@ -8,5 +8,4 @@ class User(AuditBase, Base):      __tablename__ = "users" -    user_id: Mapped[int] = mapped_column(primary_key=True) -    is_admin: Mapped[bool] +    permissions: Mapped[int]  |