Skip to content

Instantly share code, notes, and snippets.

@jackjennings
Created May 18, 2018 18:30
Show Gist options
  • Save jackjennings/7b949df0fffd2f8c4ed06c3a155da921 to your computer and use it in GitHub Desktop.
Save jackjennings/7b949df0fffd2f8c4ed06c3a155da921 to your computer and use it in GitHub Desktop.
Drink
* name:string
* has_many :steps
* has_many :ingredients
Ingredient
* has_one :measurement
* has_one :component
Component
* has_one :stock
* name:string
Step
* instruction:string
* index:number
Measurement
* belongs_to :ingredient
* amount:number
* unit:string
* volume:number
Stock
* belongs_to :ingredient
* quantity:number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment