leaguemanager.models.baseline.membership.team_membership¶
Module Contents¶
Classes¶
A teams membership in a given Competition (i.e., League, Season). |
Data¶
API¶
- class leaguemanager.models.baseline.membership.team_membership.TeamMembership¶
Bases:
leaguemanager.models.base.MembershipBaseA teams membership in a given Competition (i.e., League, Season).
Instead of linking a Team object directly to a Competition, the Team is linked to a TeamMembership object, which defines their specific affiliation to a given competition. That way, a Team can be linked to different TeamMembership objects, each connected to different Competitions (in the event that an Team belongs to differet Seasons/Leagues). The TeamMembership object can define properties specific to a Team, such as uniform color, start and end dates, etc…
Attributes: id (UUID): Inherited from UUIDAuditBase season_id (UUID): ForeignKey to Season. label (str): Label describing the Team association (i.e., Cylon FC–Fall 2024, etc…) home_color (str): Primary color of home uniform. away_color (str): Primary color of away uniform. start_date (datetime): Date that individual joined Team. end_date (datetime): Date that individual left Team. created_at (datetime): Inherited from UUIDAuditBase updated_at (datetime): Inherited from UUIDAuditBase
- season_id: uuid.UUID | None¶
‘field(…)’
- label: str | None¶
‘field(…)’
- home_color: str | None¶
‘field(…)’
- away_color: str | None¶
‘field(…)’
- start_date: datetime.datetime | None¶
‘field(…)’
- end_date: datetime.datetime | None¶
‘field(…)’
- leaguemanager.models.baseline.membership.team_membership.team_membership¶
‘Table(…)’