formaptix-server/models/user.py

28 lines
346 B
Python
Raw Normal View History

from pydantic import Field
from models import BaseModel
class User(BaseModel):
id: int
username: str
class Auth(BaseModel):
username: str
password: str
class Token(BaseModel):
id: int
username: str
token: str
2024-08-10 17:01:34 +03:00
class DeleteUser(BaseModel):
username: str
class UpdatePassword(BaseModel):
password: str