NathanTCz / sbl-app.com

Sports Betting League Application
MIT License
4 stars 2 forks source link

Categorization #19

Open NathanTCz opened 10 years ago

NathanTCz commented 10 years ago

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.

sheebyboy commented 10 years ago

are you talking strictly in the database or in the PHP code as well?

NathanTCz commented 10 years ago

Both. I think that maybe we change the category table to sport and then have another league table

NathanTCz commented 10 years ago

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.