13 lines
412 B
Python
13 lines
412 B
Python
from sqlalchemy import String
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
from app.db.base import Base
|
|
|
|
|
|
class TestUser(Base):
|
|
__tablename__ = "test_users"
|
|
|
|
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
|
|
username: Mapped[str] = mapped_column(String(50), unique=True, nullable=False, index=True)
|
|
password_hash: Mapped[str] = mapped_column(String(128), nullable=False)
|