"""Team config model (teams table); replaces env-based team tokens and invite links.""" from typing import Optional from sqlmodel import Field, SQLModel class Team(SQLModel, table=True): __tablename__ = "teams" team_id: str = Field(primary_key=True, max_length=20) team_name: str = Field(max_length=120, nullable=False) team_domain: str = Field(max_length=120, nullable=False) team_token: str = Field(max_length=512, nullable=False) invite_link: Optional[str] = Field(default=None, max_length=512)