User Tools

Site Tools


qookie:database

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
qookie:database [2008/11/23 12:42] devaqookie:database [2009/01/04 17:21] deva
Line 17: Line 17:
 ====Component==== ====Component====
 A component is the super class of all data components in Qookie. It contain all common attributes:\\ A component is the super class of all data components in Qookie. It contain all common attributes:\\
-TODO define common attributes.+^ Attribute       ^ Type    ^ Description ^ 
 +| ''uid''         | Integer | A unique number defining this component
 +| ''name''        | String  | The name or title of the component. | 
 +| ''description'' | String  | A short description of the component. | 
 +| ''image''       | Binary  | An image of the component. | 
 + 
 +===Preparation sequence=== 
 +A named sequence of text blobs or images with a text blob, containing the atomic steps in a preparation procedure. 
 + 
  
 ====Ingredient==== ====Ingredient====
 A basic ingredient, such as flour, an egg or a tomato.\\ A basic ingredient, such as flour, an egg or a tomato.\\
 An ingredient is made out of the following attributes: An ingredient is made out of the following attributes:
-^ Attribute       ^ Type    ^ Description ^ +^ Attribute       ^ Type    ^ Description                                                 
-| ''uid''         Integer A unique number defining this ingredient+| ''unit''        Unit    The unit in which the ingredient is measured                
-| ''name''        String  | The name or title of the ingredient. | +| ''season''      Season  | The season in which this ingredient can be acquired       
-| ''description''String  A description of the ingredient. | +| ''quantity''    Integer The usual quantity in which the ingredient can be acquired. | 
-| ''image''       Binary  An image showing the ingredient. |+| ''density''     Integer | Units/pr gram.                                              | 
 +| ''category''    | String  To what category does this ingredient belong              |
  
 ====Dish==== ====Dish====
 A single dish is an atomic component of a dish, i.e. cheese sauce, fried potatoes, meat balls. A single dish is an atomic component of a dish, i.e. cheese sauce, fried potatoes, meat balls.
 ^ Attribute       ^ Type    ^ Description ^ ^ Attribute       ^ Type    ^ Description ^
-| ''uid''         | Integer | A unique number defining this dish. | 
-| ''name''        | String  | The name or title of the dish. | 
-| ''description'' | String  | A description of the dish. | 
-| ''image''       | Binary  | An image showing the dish. | 
 | ''ingredients'' | List<Integer> | A list of ingredient uids, used in the dish. | | ''ingredients'' | List<Integer> | A list of ingredient uids, used in the dish. |
  
Line 40: Line 46:
 A course is a combination of several dishes all served together at the same time, i.e. fried potatoes with meat balls and cheese sauce. A course is a combination of several dishes all served together at the same time, i.e. fried potatoes with meat balls and cheese sauce.
 ^ Attribute       ^ Type    ^ Description ^ ^ Attribute       ^ Type    ^ Description ^
-| ''uid''         | Integer | A unique number defining this course. | 
-| ''name''        | String  | The name or title of the course. | 
-| ''description'' | String  | A description of the course. | 
-| ''image''       | Binary  | An image showing the course. | 
 | ''dishes''      | List<Integer> | A list of dish uids, used in the course. | | ''dishes''      | List<Integer> | A list of dish uids, used in the course. |
  
Line 49: Line 51:
 A menu is a combination of dishes to be served together or after each other. A standard menu is aperitif, starter, main course and desert. A menu is a combination of dishes to be served together or after each other. A standard menu is aperitif, starter, main course and desert.
 ^ Attribute       ^ Type    ^ Description ^ ^ Attribute       ^ Type    ^ Description ^
-| ''uid''         | Integer | A unique number defining this menu. | 
-| ''name''        | String  | The name or title of the menu. | 
-| ''description'' | String  | A description of the menu. | 
-| ''image''       | Binary  | An image showing the menu. | 
 | ''courses''     | List<Integer> | A list of course uids, used in the menu. | | ''courses''     | List<Integer> | A list of course uids, used in the menu. |
qookie/database.txt · Last modified: 2009/01/04 19:09 by deva