Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create schema for tables of data #10

Open
lmullen opened this issue Aug 17, 2016 · 0 comments
Open

Create schema for tables of data #10

lmullen opened this issue Aug 17, 2016 · 0 comments

Comments

@lmullen
Copy link
Member

lmullen commented Aug 17, 2016

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:

  1. County vote table (candidate ID, candidate name, election ID, vote, county, state, county ID, district?)
  2. District vote table (candidate ID, candidate name, election ID, vote, state, district, district ID)
  3. Town vote table (candidate ID, candidate name, election ID, vote, state, district, town, town ID)
  4. Candidate table (candidate name, candidate ID, candidate bio)
  5. Election table (election ID, office, year, role, etc.). Perhaps a further table with elections with multiple votes.
  6. County spatial data (county ID, spatial data)
  7. District spatial data (district ID, spatial data)
  8. Town spatial data (town ID, spatial data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant