2024-03-12 01:06:43 +03:00
|
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
2024-03-04 07:12:29 +03:00
|
|
|
|
2024-03-29 00:29:35 +03:00
|
|
|
from api.models import BaseModel
|
2024-03-04 07:12:29 +03:00
|
|
|
|
|
|
|
|
2024-03-29 00:29:35 +03:00
|
|
|
class UserModel(BaseModel):
|
|
|
|
__tablename__ = "user"
|
2024-03-12 01:06:43 +03:00
|
|
|
|
2024-03-29 00:29:35 +03:00
|
|
|
name: Mapped[str]
|
2024-03-12 01:06:43 +03:00
|
|
|
email: Mapped[str] = mapped_column(unique=True)
|
|
|
|
hashed_password: Mapped[str]
|