Since we are close to having our first real finished data, we should think about how exactly the data will be normalized into tables. Here is a start:
- County vote table (candidate ID, candidate name, election ID, vote, county, state, county ID, district?)
- District vote table (candidate ID, candidate name, election ID, vote, state, district, district ID)
- Town vote table (candidate ID, candidate name, election ID, vote, state, district, town, town ID)
- Candidate table (candidate name, candidate ID, candidate bio)
- Election table (election ID, office, year, role, etc.). Perhaps a further table with elections with multiple votes.
- County spatial data (county ID, spatial data)
- District spatial data (district ID, spatial data)
- Town spatial data (town ID, spatial data)
Since we are close to having our first real finished data, we should think about how exactly the data will be normalized into tables. Here is a start: