### Data structure A single JSON file is downloaded to provide the data set. Its structure is as follows: ``` { 'teams': { teamId: teamCountryId, ... }, 'countries': { countryId: { countryContinentId, countryName } ... }, 'continents': { continentId: continentName, ... }, 'rounds': { roundId: roundName, }, 'tourneys': { eventName: { 'games': [{ playAt, roundId, team1Id, team2Id, score1, score1et, score1p, score2, score2et, score2p }, ...], 'teams': [teamId, ...] }, ... } } ``` ### Building the SQLite DB Run `sportdb build` in the directory that has `Datafile`. Correspondence on the topic can be found at [this google groups topic](https://groups.google.com/forum/#!msg/opensport/jYNVDF_QSJA/pyHWWtRqAgAJ). ##### Troubleshooting: Using a Gemfile Sportdb only builds with older versions of ActiveRecord. Use a Gemfile as outlined [here](https://groups.google.com/forum/#!topic/opensport/593H1O7yIdE) to lock the correct version.