zer0bandit

craft database design spec

Jul 23rd, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. CRAFT DATABASE DESIGN SPEC
  2.  
  3. DATA TO STORE FOR COOKING DESIGNS:
  4. -number (eg 10043)
  5. -recipe name (eg 'a crusty loaf of bread')
  6. -recipe type (eg 'bread')
  7. -recipe ingredients (an array with numbers of things- eg '2 flour, 1 salt, 1 milk')
  8. -recipe tags (eg 'bread, meals, mediterranean, component')
  9.  
  10. DATA TO DISPLAY - returned data would be number and recipe name together for each item.
  11. -Search by number (output all recipe data for that number)
  12. -search by name (output all recipes with keyword in name)
  13. -search by type (output all recipes with keyword type)
  14. -search by ingredients (output all recipes with keyword ingredient- potentially search by multiple ingredients?)
  15. -search by tag (output all recipes with keyword tag)
  16.  
  17. SHOPPING LIST
  18. -Add recipes by number to shopping list
  19. -output condensed list of ingredients- total numbers of everything needed (ie 23 flour, 4 salt, 2 milk, 1 chocolate)
  20.  
  21.  
  22. DATA TO STORE FOR INGREDIENTS
  23. -ingredient name (eg 'a bucket of clams')
  24. -ingredient type (eg 'clams')
  25. -ingredient location (eg 'riparium')
  26. -ingredient method (eg 'foraged')
  27. -ingredient cost (eg '100' - not applicable to all)
  28.  
  29. SHOPPING LIST OUTPUT
  30. -categorise ingredients by location ('riparium' separate from 'shamtota' etc)
  31. -output total cost
Advertisement
Add Comment
Please, Sign In to add comment