mirror of
https://github.com/grey-cat-1908/formaptix-server.git
synced 2024-11-11 18:57:27 +03:00
12 lines
281 B
Python
12 lines
281 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]
|