Dagemark-Backend/app/models/user.py
2026-09-02 20:52:39 +02:00

17 lines
260 B
Python

from sqlmodel import Field, SQLModel
class User(SQLModel, table=True):
id: int | None = Field(default=None, primary_key=True)
username: str
authority: int
class UserIn(User):
password: str
class UserInDB(User):
hashed_password: str