sqlmodel-base/sqlmodel_base/team/models.py
2024-03-01 10:23:13 -06:00

11 lines
243 B
Python

from typing import Optional
from sqlmodel import Field
from sqlmodel_base.base import Base
class Team(Base, table=True):
id: Optional[int] = Field(default=None, primary_key=True)
name: str = Field(index=True)
headquarters: str