-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Game table changes #28
Comments
While it does exist in team_game_log, I can see how adding it would be helpful. Maybe For the rename, maybe removing the last |
I'm not super sure about this anymore, due to ties. I'm not a huge fan of nullable foreign keys. In my eyes, a join to check the |
So, Having said that, adding |
@avadhanij Wow I completely missed that there was no requester for Yeah, you're right there would be no null. I'm good with adding those to the game table, then. |
Cool. This is an interesting, and good table. I don't think any of the endpoints give you visibility into things like home/away team win loss stats. I will add these two columns. As for the style, I see what you were attempting,
|
@avadhanij yeah, I like that better. Where are you getting it from? Is it from |
That's one way. Another way would be to just expand on the So, when you are constructing an entry for a game, we could make use of the WL field in the response. A The benefit with this approach is that we don't need to hit two end points to construct one table. It will get trickier if a user opts to What do you think? |
That works for me. Creating two maps and fill them with game_id -> team_id incrementally doesn't sound too gnarly. |
I think we can close this one, after the addition of the w/l ids to the game table. |
I feel it's missing one important column - winner, or rather
winner_team_id
. Putting that together right now would require a few more unnecessary joins.I was also thinking the two columns
team_id_home_id
, andteam_id_away_id
could be renamed tohome_team_id
andaway_team_id
.What do you think?
The text was updated successfully, but these errors were encountered: