This commit is contained in:
Tom Trappmann
2025-12-23 17:17:33 +01:00
commit d04730edd8
28 changed files with 387 additions and 0 deletions

3
app/models/__init__.py Normal file
View File

@@ -0,0 +1,3 @@
from app.models.user import User
__all__ = ["User"]

13
app/models/user.py Normal file
View File

@@ -0,0 +1,13 @@
from sqlalchemy import Boolean, Integer, String
from sqlalchemy.orm import Mapped, mapped_column
from app.db.base import Base
class User(Base):
__tablename__ = "users"
id: Mapped[int] = mapped_column(Integer, primary_key=True, index=True)
email: Mapped[str] = mapped_column(String(255), unique=True, index=True)
hashed_password: Mapped[str] = mapped_column(String(255))
is_active: Mapped[bool] = mapped_column(Boolean, default=True)