Team Type Package#

Submodules#

Team Type Class#

class server.schemas.team_type.team_type_base.TeamTypeBase(*, team_type_id: int, team_type_name: str, eligible: bool)[source]#

Bases: BaseModel

All variables that represent columns in the Team Type table and their data type.

eligible: bool#
model_config: dict = {'from_attributes': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'eligible': FieldInfo(annotation=bool, required=True), 'team_type_id': FieldInfo(annotation=int, required=True), 'team_type_name': FieldInfo(annotation=str, required=True)}#

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

team_type_id: int#
team_type_name: str#

Team Type Schema Class#

class server.schemas.team_type.team_type_schema.TeamTypeSchema(*, team_type_id: int, team_type_name: str, eligible: bool, teams: list[server.schemas.team.team_base.TeamBase])[source]#

Bases: TeamTypeBase

Schema for TeamType using TeamTypeBase and includes its relations.

model_config: dict = {'from_attributes': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'eligible': FieldInfo(annotation=bool, required=True), 'team_type_id': FieldInfo(annotation=int, required=True), 'team_type_name': FieldInfo(annotation=str, required=True), 'teams': FieldInfo(annotation=list[TeamBase], required=True)}#

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

teams: list[server.schemas.team.team_base.TeamBase]#

Module contents#