[eluser]zimco[/eluser]
I am trying to develop a CI application that keeps track of cars and points earned while racing in a series of races on a racing circuit and i could use some advice on the database design using MySQL.
The circuit consists of 16 racetracks with cars racing in two divisions of races: fast or slow, during the racing events at each racetrack. Points are earned as follows: A car Starting in a race gets an automatic-5Pts then add to that points for order of finish (if they finish) Win-5pts, Second-4pts, Third-3pts, Fourth-2pts, Fifth-1pt.
I was thinking i would need at least 5 tables: Racetracks, Cars, Race_Events, Event_Results, Car_Scores.
However, i am unsure if this would be sufficient to produce all the reports i would eventually like to generate from the database: Point leaders for each division, List of all starters in each division, Race Results, Fastest times, etc.
Any suggestions, thoughts (MyiSam or InnoDB?), and experiences in setting a database up for something like this would be appreciated.