formaptix-server/database/user.py
2024-08-10 17:38:54 +00:00

12 lines
282 B
Python

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]