from pydantic import BaseModel from app.models import Team class TeamSchema(BaseModel): id: int name: str class Config: orm_mode = True