DemocracyClub / EveryElection

:ballot_box_with_check: For recording every election in the UK
https://elections.democracyclub.org.uk/
BSD 3-Clause "New" or "Revised" License
11 stars 15 forks source link
democracy election

EveryElection

Build Status Coverage Status Code style: black

For recording every election in the UK

Domain Model

Elections

The elections table stores a list of election objects, each with a semantic ID.

Election IDs sometimes have a parent, and are sometimes a "group ID".

There are two types of group ID:

  1. [type].[date], for example local.2017-05-04 will be the group for all local elections happening on 2017-05-04.
  2. [type].[organiation].[date], for example local.norfolk.2017-05-04 is the Norfolk County Council elections.

Finally an ID is made per ballot paper using [type].[organiation].[organisation division].[date] for example local.norfolk.diss.2017-05-04.

See the reference for more information.

Graph