tfrayner/beerfestdb

json: include container type

Closed this issue · 1 comments

It would be good to include the container type in the json representation. At present this would cask or keykeg.

Since the database is currently unaware of such things, the size being < 8 gallons is a good proxy for keykeg.

Products that are stocked in both formats could either be duplicated or have multiple values for the field.

This interacts with #18 - specifying location. Beers in multiple container types are likely to be in multiple locations, eg a KeyKeg wall and the main bar. I think that probably suggests having multiple entries for beers in multiple places or container types.