Generation number of inventory
Introduce a new generation (numeric) property to the Inventory
. It indicates the number of regenerations (subcultures) the inventory has had since introduction. At introduction to the genebank this value is set to 0 and is then used to calculate the generation number of the resulting new material: parent_inventory.generation + 1
.
Some actions don’t result in a generation number increase (e.g. taking seed for testing or planting) while others do (e.g. storing harvested seed).
A field to record the generation
should be added to the inventory table.