mirror of
https://github.com/grey-cat-1908/formaptix-server.git
synced 2024-11-11 18:57:27 +03:00
27 lines
346 B
Python
27 lines
346 B
Python
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
|
|
|
|
|
|
class DeleteUser(BaseModel):
|
|
username: str
|
|
|
|
|
|
class UpdatePassword(BaseModel):
|
|
password: str
|