aboutsummaryrefslogtreecommitdiffstats
path: root/thallium-backend/src/orm/users.py
diff options
context:
space:
mode:
Diffstat (limited to 'thallium-backend/src/orm/users.py')
-rw-r--r--thallium-backend/src/orm/users.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/thallium-backend/src/orm/users.py b/thallium-backend/src/orm/users.py
new file mode 100644
index 0000000..065519a
--- /dev/null
+++ b/thallium-backend/src/orm/users.py
@@ -0,0 +1,12 @@
+from sqlalchemy.orm import Mapped, mapped_column
+
+from .base import AuditBase, Base
+
+
+class User(AuditBase, Base):
+ """An authenticated user of the service."""
+
+ __tablename__ = "users"
+
+ user_id: Mapped[int] = mapped_column(primary_key=True)
+ is_admin: Mapped[bool]