formaptix-server/database/user.py

12 lines
281 B
Python
Raw Normal View History

from sqlalchemy.orm import Mapped, mapped_column
from database import Base
class User(Base):
__tablename__ = "users"
id: Mapped[int] = mapped_column(primary_key=True)
username: Mapped[str] = mapped_column(unique=True)
password: Mapped[str]
salt: Mapped[str]