Skip to content

Drink Redemption ​

singularName: drink-redemptionpluralName: drink-redemptions

Schema ​

NameTypeDetails
cardrelationmanyToOne → Cards
runrelationmanyToOne → Hareline
drink_typeenumerationone of [Beer, Softie]
quantityinteger
idem_redemptionrelationoneToOne → idem-redemption

Lifecycles ​

beforeCreate (async) ​

Validates the card is active; for member cards also checks the member is signed in for the run.

Parameters:

  • event:

Released under the MIT License.