Open NathanTCz opened 10 years ago
are you talking strictly in the database or in the PHP code as well?
Both. I think that maybe we change the category table to sport
and then have another league
table
or maybe since there is a conference
value for team we could use that to categorize them. without changing the database at all. The logic and names of categorization would all just be hardcoded. for example if the conference is ACC we know that is NCAA, and then we could keep the category table and code as it is now.
so in the constructor of each team we could set the league based on the conference.
So now we have these global arrays from the datadase. I think we need to now categorize them further. For example, we should categorize the events into sports (which I have already done a little bit, but I think we may need to find a new way to do it) and then by league, etc. This may require some rework of the database. Its something to think about for sure.