formaptix-server/models/user.py

19 lines
244 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