versione prima dle menu della clincia
This commit is contained in:
3
backend/app/models/__init__.py
Normal file
3
backend/app/models/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from app.models.test_user import TestUser
|
||||
|
||||
__all__ = ["TestUser"]
|
||||
12
backend/app/models/test_user.py
Normal file
12
backend/app/models/test_user.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user