open-law/app/schema/user.py

10 lines
129 B
Python

from pydantic import BaseModel
class User(BaseModel):
id: int
username: str
class Config:
orm_mode = True