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 14 forks source link

Support alternative identifiers #372

Open chris48s opened 6 years ago

chris48s commented 6 years ago

Sometimes it may be useful to be able to associate some entity with an alternate identifier. For example, a temporary code we have assigned to a recently changed division, a OCD identifier, or potentially some other ID.

It would be useful not to have to handle every one of these as a special case, but equally depending on the identifier, it might be sensible to associate it with various different models (e.g: a code might be best viewed as mapping to an Organisation or an OrganisationGeography etc).

What is the right data structure to model this? :thinking:

chris48s commented 6 years ago

We now have a real use case for this as we would like to support OCD identifiers for relevant areas.