from pydantic.types import List, Optional
from sqlmodel import Field, Relationship, SQLModel


class TeamBase(SQLModel):
    name: str
    headquarters: str

    class Config:
        schema_extra = {
            "example": {
                "name": "wonderful league",
                "headquarters": "Fortress of Solitude",
            }
        }


class Team(TeamBase, table=True):
    id: Optional[int] = 