Open nbarlowATI opened 3 years ago
I would suggest to consider:
class Team(Base)
To add:
team_name = Column(String(100), nullable=False) team_members = Column(String(1000), nullable=False))
I now think we should have an Agent
class / table, since it is actually agents that play the tournaments, and one team can have more than one agent (even in the same tournament).
So a lot of the relations that Team
had can move into Agent
, and there is a one-to-many relation between Team
and Agent
.
Suggestion (SQLAlchemy) for pretty minimal set of classes (tables):
So a "Match" is made up of some number of individual "Games". The Match and Game classes would then have methods to return who won them, based on the "result_code" for each Game.