diff options
author | 2024-07-09 20:08:44 +0100 | |
---|---|---|
committer | 2024-07-21 13:45:30 +0100 | |
commit | a439ef0fefe9f171ca1568869820ee159036bdfc (patch) | |
tree | 9d20fe840a7fdfd9e80424c99fd2f55ff707fc28 /backend/models/orm/admins.py | |
parent | Add alembic boiler plate for migrations (diff) |
Add models and migration files for admins & forms
Diffstat (limited to 'backend/models/orm/admins.py')
-rw-r--r-- | backend/models/orm/admins.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/backend/models/orm/admins.py b/backend/models/orm/admins.py new file mode 100644 index 0000000..7eee008 --- /dev/null +++ b/backend/models/orm/admins.py @@ -0,0 +1,14 @@ +"""Discord members who have admin access.""" + +from sqlalchemy.orm import Mapped, mapped_column +from sqlalchemy.types import BigInteger + +from .base import Base + + +class Admin(Base): + """A discord user_id that has admin level access to forms.""" + + __tablename__ = "admins" + + user_id: Mapped[int] = mapped_column(BigInteger, primary_key=True) |