diff --git a/data/create_strucure.surrealql b/data/create_strucure.surrealql index 8efddbe..26b6c2d 100644 --- a/data/create_strucure.surrealql +++ b/data/create_strucure.surrealql @@ -71,5 +71,5 @@ DEFINE FIELD ingredient ON TABLE SupplierContainsIngredients TYPE record; +DEFINE FIELD `order` ON TABLE OrderContainsIngredients TYPE record; DEFINE FIELD ingredient ON TABLE OrderContainsIngredients TYPE record; diff --git a/data/data.surrealql b/data/data.surrealql index 8b89af2..ffabfa5 100644 --- a/data/data.surrealql +++ b/data/data.surrealql @@ -1,22 +1,10 @@ -CREATE Address:101 CONTENT { - street: 'Dorfstraße', - house_number: '74', - postal_code: '24354', - city: 'Weseby' -}; - -CREATE Address:102 CONTENT { - street: 'Westerjork 74', - house_number: '76', - postal_code: '21635', - city: 'Jork' -}; - -CREATE Address:103 CONTENT { - street: 'Molkereiwegkundekunde', - house_number: '13', - postal_code: '19217', - city: 'Dechow' +CREATE Customer:2001 CONTENT { + last_name: 'Wellensteyn', + first_name: 'Kira', + birth_date: '1990-05-05', + phone: '040/443322', + email: 'k.wellensteyn@yahoo.de', + address: Address:2001 }; CREATE Address:2001 CONTENT { @@ -26,6 +14,15 @@ CREATE Address:2001 CONTENT { city: 'Hamburg' }; +CREATE Customer:2002 CONTENT { + last_name: 'Foede', + first_name: 'Dorothea', + birth_date: '2000-03-24', + phone: '040/543822', + email: 'd.foede@web.de', + address: Address:2002 +}; + CREATE Address:2002 CONTENT { street: 'Ohmstraße', house_number: '23', @@ -33,6 +30,15 @@ CREATE Address:2002 CONTENT { city: 'Hamburg' }; +CREATE Customer:2003 CONTENT { + last_name: 'Leberer', + first_name: 'Sigrid', + birth_date: '1989-09-21', + phone: '0175/1234588', + email: 'sigrid@leberer.de', + address: Address:2003 +}; + CREATE Address:2003 CONTENT { street: 'Bilser Berg', house_number: '6', @@ -40,6 +46,15 @@ CREATE Address:2003 CONTENT { city: 'Hamburg' }; +CREATE Customer:2004 CONTENT { + last_name: 'Soerensen', + first_name: 'Hanna', + birth_date: '1974-04-03', + phone: '040/634578', + email: 'h.soerensen@yahoo.de', + address: Address:2004 +}; + CREATE Address:2004 CONTENT { street: 'Alter Teichweg', house_number: '95', @@ -47,6 +62,15 @@ CREATE Address:2004 CONTENT { city: 'Hamburg' }; +CREATE Customer:2005 CONTENT { + last_name: 'Schnitter', + first_name: 'Marten', + birth_date: '1964-04-17', + phone: '0176/447587', + email: 'schni_mart@gmail.com', + address: Address:2005 +}; + CREATE Address:2005 CONTENT { street: 'Stübels', house_number: '10', @@ -54,6 +78,15 @@ CREATE Address:2005 CONTENT { city: 'Barsbüttel' }; +CREATE Customer:2006 CONTENT { + last_name: 'Maurer', + first_name: 'Belinda', + birth_date: '1978-09-09', + phone: '040/332189', + email: 'belinda1978@yahoo.de', + address: Address:2006 +}; + CREATE Address:2006 CONTENT { street: 'Grotelertwiete', house_number: '4a', @@ -61,6 +94,15 @@ CREATE Address:2006 CONTENT { city: 'Hamburg' }; +CREATE Customer:2007 CONTENT { + last_name: 'Gessert', + first_name: 'Armin', + birth_date: '1978-01-29', + phone: '040/67890', + email: 'armin@gessert.de', + address: Address:2007 +}; + CREATE Address:2007 CONTENT { street: 'Küstersweg', house_number: '3', @@ -68,6 +110,15 @@ CREATE Address:2007 CONTENT { city: 'Hamburg' }; +CREATE Customer:2008 CONTENT { + last_name: 'Haessig', + first_name: 'Jean-Marc', + birth_date: '1982-08-30', + phone: '0178-67013390', + email: 'jm@haessig.de', + address: Address:2008 +}; + CREATE Address:2008 CONTENT { street: 'Neugrabener Bahnhofstraße', house_number: '30', @@ -75,6 +126,15 @@ CREATE Address:2008 CONTENT { city: 'Hamburg' }; +CREATE Customer:2009 CONTENT { + last_name: 'Urocki', + first_name: 'Eric', + birth_date: '1999-12-04', + phone: '0152-96701390', + email: 'urocki@outlook.de', + address: Address:2009 +}; + CREATE Address:2009 CONTENT { street: 'Elbchaussee', house_number: '228', @@ -89,6 +149,13 @@ CREATE Supplier:101 CONTENT { address: Address:101 }; +CREATE Address:101 CONTENT { + street: 'Dorfstraße', + house_number: '74', + postal_code: '24354', + city: 'Weseby' +}; + CREATE Supplier:102 CONTENT { name: 'Obst-Hof Altes Land', phone: '04162-4523', @@ -96,6 +163,13 @@ CREATE Supplier:102 CONTENT { address: Address:102 }; +CREATE Address:102 CONTENT { + street: 'Westerjork 74', + house_number: '76', + postal_code: '21635', + city: 'Jork' +}; + CREATE Supplier:103 CONTENT { name: 'Molkerei Henning', phone: '038873-8976', @@ -103,85 +177,11 @@ CREATE Supplier:103 CONTENT { address: Address:103 }; -CREATE Customer:2001 CONTENT { - last_name: 'Wellensteyn', - first_name: 'Kira', - birth_date: '1990-05-05', - phone: '040/443322', - email: 'k.wellensteyn@yahoo.de', - address: Address:2001 -}; - -CREATE Customer:2002 CONTENT { - last_name: 'Foede', - first_name: 'Dorothea', - birth_date: '2000-03-24', - phone: '040/543822', - email: 'd.foede@web.de', - address: Address:2002 -}; - -CREATE Customer:2003 CONTENT { - last_name: 'Leberer', - first_name: 'Sigrid', - birth_date: '1989-09-21', - phone: '0175/1234588', - email: 'sigrid@leberer.de', - address: Address:2003 -}; - -CREATE Customer:2004 CONTENT { - last_name: 'Soerensen', - first_name: 'Hanna', - birth_date: '1974-04-03', - phone: '040/634578', - email: 'h.soerensen@yahoo.de', - address: Address:2004 -}; - -CREATE Customer:2005 CONTENT { - last_name: 'Schnitter', - first_name: 'Marten', - birth_date: '1964-04-17', - phone: '0176/447587', - email: 'schni_mart@gmail.com', - address: Address:2005 -}; - -CREATE Customer:2006 CONTENT { - last_name: 'Maurer', - first_name: 'Belinda', - birth_date: '1978-09-09', - phone: '040/332189', - email: 'belinda1978@yahoo.de', - address: Address:2006 -}; - -CREATE Customer:2007 CONTENT { - last_name: 'Gessert', - first_name: 'Armin', - birth_date: '1978-01-29', - phone: '040/67890', - email: 'armin@gessert.de', - address: Address:2007 -}; - -CREATE Customer:2008 CONTENT { - last_name: 'Haessig', - first_name: 'Jean-Marc', - birth_date: '1982-08-30', - phone: '0178-67013390', - email: 'jm@haessig.de', - address: Address:2008 -}; - -CREATE Customer:2009 CONTENT { - last_name: 'Urocki', - first_name: 'Eric', - birth_date: '1999-12-04', - phone: '0152-96701390', - email: 'urocki@outlook.de', - address: Address:2009 +CREATE Address:103 CONTENT { + street: 'Molkereiwegkundekunde', + house_number: '13', + postal_code: '19217', + city: 'Dechow' }; CREATE Ingredient:1001 CONTENT { @@ -194,6 +194,13 @@ CREATE Ingredient:1001 CONTENT { protein: 1.6 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 5.0, + delivery_time: 3, + supplier: Supplier:101, + ingredient: Ingredient:1001 +}; + CREATE Ingredient:1002 CONTENT { designation: 'Zwiebel', unit: 'Stück', @@ -204,6 +211,13 @@ CREATE Ingredient:1002 CONTENT { protein: 1.20 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 4.0, + delivery_time: 2, + supplier: Supplier:101, + ingredient: Ingredient:1002 +}; + CREATE Ingredient:1003 CONTENT { designation: 'Tomate', unit: 'Stück', @@ -214,6 +228,13 @@ CREATE Ingredient:1003 CONTENT { protein: 1 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 6.0, + delivery_time: 3, + supplier: Supplier:101, + ingredient: Ingredient:1003 +}; + CREATE Ingredient:1004 CONTENT { designation: 'Schalotte', unit: 'Stück', @@ -224,6 +245,13 @@ CREATE Ingredient:1004 CONTENT { protein: 1.5 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 3.5, + delivery_time: 2, + supplier: Supplier:101, + ingredient: Ingredient:1004 +}; + CREATE Ingredient:1005 CONTENT { designation: 'Karotte', unit: 'Stück', @@ -234,6 +262,13 @@ CREATE Ingredient:1005 CONTENT { protein: 0.9 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 4.0, + delivery_time: 3, + supplier: Supplier:101, + ingredient: Ingredient:1005 +}; + CREATE Ingredient:1006 CONTENT { designation: 'Kartoffel', unit: 'Stück', @@ -244,6 +279,13 @@ CREATE Ingredient:1006 CONTENT { protein: 2 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 3.0, + delivery_time: 2, + supplier: Supplier:101, + ingredient: Ingredient:1006 +}; + CREATE Ingredient:1007 CONTENT { designation: 'Rucola', unit: 'Bund', @@ -254,6 +296,13 @@ CREATE Ingredient:1007 CONTENT { protein: 2.6 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 5.0, + delivery_time: 3, + supplier: Supplier:101, + ingredient: Ingredient:1007 +}; + CREATE Ingredient:1008 CONTENT { designation: 'Lauch', unit: 'Stück', @@ -264,6 +313,13 @@ CREATE Ingredient:1008 CONTENT { protein: 2.1 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 4.5, + delivery_time: 2, + supplier: Supplier:101, + ingredient: Ingredient:1008 +}; + CREATE Ingredient:1009 CONTENT { designation: 'Knoblauch', unit: 'Stück', @@ -274,6 +330,13 @@ CREATE Ingredient:1009 CONTENT { protein: 6.1 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 3.5, + delivery_time: 2, + supplier: Supplier:101, + ingredient: Ingredient:1009 +}; + CREATE Ingredient:1010 CONTENT { designation: 'Basilikum', unit: 'Bund', @@ -284,6 +347,13 @@ CREATE Ingredient:1010 CONTENT { protein: 3.1 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 5.5, + delivery_time: 3, + supplier: Supplier:101, + ingredient: Ingredient:1010 +}; + CREATE Ingredient:1011 CONTENT { designation: 'Süßkartoffel', unit: 'Stück', @@ -294,6 +364,13 @@ CREATE Ingredient:1011 CONTENT { protein: 1.6 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 6.0, + delivery_time: 3, + supplier: Supplier:101, + ingredient: Ingredient:1011 +}; + CREATE Ingredient:1012 CONTENT { designation: 'Schnittlauch', unit: 'Bund', @@ -304,6 +381,13 @@ CREATE Ingredient:1012 CONTENT { protein: 3 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 5.0, + delivery_time: 3, + supplier: Supplier:101, + ingredient: Ingredient:1012 +}; + CREATE Ingredient:2001 CONTENT { designation: 'Apfel', unit: 'Stück', @@ -314,6 +398,13 @@ CREATE Ingredient:2001 CONTENT { protein: 0.3 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 7.0, + delivery_time: 4, + supplier: Supplier:102, + ingredient: Ingredient:2001 +}; + CREATE Ingredient:3001 CONTENT { designation: 'Vollmilch. 3.5%', unit: 'Liter', @@ -324,6 +415,13 @@ CREATE Ingredient:3001 CONTENT { protein: 3.4 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 5.0, + delivery_time: 3, + supplier: Supplier:103, + ingredient: Ingredient:3001 +}; + CREATE Ingredient:3002 CONTENT { designation: 'Mozzarella', unit: 'Packung', @@ -334,6 +432,13 @@ CREATE Ingredient:3002 CONTENT { protein: 18.1 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 6.5, + delivery_time: 4, + supplier: Supplier:103, + ingredient: Ingredient:3002 +}; + CREATE Ingredient:3003 CONTENT { designation: 'Butter', unit: 'Stück', @@ -344,6 +449,13 @@ CREATE Ingredient:3003 CONTENT { protein: 0.7 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 7.0, + delivery_time: 4, + supplier: Supplier:103, + ingredient: Ingredient:3003 +}; + CREATE Ingredient:4001 CONTENT { designation: 'Ei', unit: 'Stück', @@ -354,7 +466,14 @@ CREATE Ingredient:4001 CONTENT { protein: 11.9 }; -CREATE Ingredient:4002 CONTENT { +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 4.5, + delivery_time: 3, + supplier: Supplier:102, + ingredient: Ingredient:4001 +}; + +CREATE Ingredient:5001 CONTENT { designation: 'Wiener Würstchen', unit: 'Paar', net_price: 1.8, @@ -364,7 +483,14 @@ CREATE Ingredient:4002 CONTENT { protein: 9.9 }; -CREATE Ingredient:5001 CONTENT { +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 6.0, + delivery_time: 4, + supplier: Supplier:101, + ingredient: Ingredient:5001 +}; + +CREATE Ingredient:9001 CONTENT { designation: 'Tofu-Würstchen', unit: 'Stück', net_price: 1.8, @@ -374,6 +500,13 @@ CREATE Ingredient:5001 CONTENT { protein: 17 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 7.5, + delivery_time: 4, + supplier: Supplier:103, + ingredient: Ingredient:9001 +}; + CREATE Ingredient:6408 CONTENT { designation: 'Couscous', unit: 'Packung', @@ -384,6 +517,13 @@ CREATE Ingredient:6408 CONTENT { protein: 12 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 5.0, + delivery_time: 3, + supplier: Supplier:102, + ingredient: Ingredient:6408 +}; + CREATE Ingredient:7043 CONTENT { designation: 'Gemüsebrühe', unit: 'Würfel', @@ -394,6 +534,13 @@ CREATE Ingredient:7043 CONTENT { protein: 0.5 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 3.0, + delivery_time: 2, + supplier: Supplier:101, + ingredient: Ingredient:7043 +}; + CREATE Ingredient:6300 CONTENT { designation: 'Kichererbsen', unit: 'Dose', @@ -404,36 +551,72 @@ CREATE Ingredient:6300 CONTENT { protein: 9 }; +CREATE SupplierContainsIngredients CONTENT { + delivery_cost: 4.0, + delivery_time: 3, + supplier: Supplier:103, + ingredient: Ingredient:6300 +}; + CREATE Order:3001 CONTENT { invoice_amount: 25.50, - order_date: "2024-02-08T10:00:00", + order_date: 2024-02-08T10:00:00, customer: Customer:2001, }; CREATE Order:3002 CONTENT { invoice_amount: 35.80, - order_date: "2024-02-08T11:30:00", + order_date: 2024-02-08T11:30:00, customer: Customer:2002, }; CREATE Order:3003 CONTENT { invoice_amount: 42.60, - order_date: "2024-02-08T13:15:00", + order_date: 2024-02-08T13:15:00, customer: Customer:2003, }; CREATE Order:3004 CONTENT { invoice_amount: 18.90, - order_date: "2024-02-08T14:45:00", + order_date: 2024-02-08T14:45:00, customer: Customer:2004, }; CREATE Order:3005 CONTENT { invoice_amount: 50.25, - order_date: "2024-02-08T16:20:00", + order_date: 2024-02-08T16:20:00, customer: Customer:2005, }; +CREATE OrderContainsIngredients CONTENT { + quantity: 2, + order: Order:3001, + ingredient: Ingredient:1001, +}; + +CREATE OrderContainsIngredients CONTENT { + quantity: 3, + order: Order:3001, + ingredient: Ingredient:1002, +}; + +CREATE OrderContainsIngredients CONTENT { + quantity: 1, + order: Order:3002, + ingredient: Ingredient:1003, +}; + +CREATE OrderContainsIngredients CONTENT { + quantity: 4, + order: Order:3002, + ingredient: Ingredient:1004, +}; + +CREATE OrderContainsIngredients CONTENT { + quantity: 2, + order: Order:3003, + ingredient: Ingredient:1005, +}; CREATE Recipe:4001 CONTENT { preparation_time: 30, @@ -470,469 +653,152 @@ CREATE Recipe:4005 CONTENT { instructions: '1. Heat olive oil in a large paella pan over medium heat. 2. Add chopped onions, bell peppers, and garlic, and sauté until softened. 3. Stir in Arborio rice and cook for 2-3 minutes. 4. Add vegetable broth, saffron, diced tomatoes, and a pinch of salt. 5. Bring to a simmer and cook for 20-25 minutes, stirring occasionally. 6. Add cooked vegetables such as peas, artichoke hearts, and roasted red peppers. 7. Cook for an additional 5-10 minutes until the rice is tender and the vegetables are heated through. 8. Garnish with chopped parsley and lemon wedges before serving.', }; -CREATE Supplier:101 CONTENT { - name: 'Bio-Hof Müller', - phone: '04354-9080', - email: 'mueller@biohof.de', - address: Address:101 -}; - -CREATE Supplier:102 CONTENT { - name: 'Obst-Hof Altes Land', - phone: '04162-4523', - email: 'info@biohof-altesland.de', - address: Address:102 -}; - -CREATE Supplier:103 CONTENT { - name: 'Molkerei Henning', - phone: '038873-8976', - email: 'info@molkerei-henning.de', - address: Address:103 -}; - -CREATE Address:101 CONTENT { - street: 'Dorfstraße', - house_number: '74', - postal_code: '24354', - city: 'Weseby' -}; - -CREATE Address:102 CONTENT { - street: 'Westerjork 74', - house_number: '76', - postal_code: '21635', - city: 'Jork' -}; - -CREATE Address:103 CONTENT { - street: 'Molkereiwegkundekunde', - house_number: '13', - postal_code: '19217', - city: 'Dechow' -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 5.0, - delivery_time: 3, - supplier: Supplier:101, - ingredient: Ingredient:1001 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 4.0, - delivery_time: 2, - supplier: Supplier:101, - ingredient: Ingredient:1002 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 6.0, - delivery_time: 3, - supplier: Supplier:101, - ingredient: Ingredient:1003 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 3.5, - delivery_time: 2, - supplier: Supplier:101, - ingredient: Ingredient:1004 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 4.0, - delivery_time: 3, - supplier: Supplier:101, - ingredient: Ingredient:1005 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 3.0, - delivery_time: 2, - supplier: Supplier:101, - ingredient: Ingredient:1006 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 5.0, - delivery_time: 3, - supplier: Supplier:101, - ingredient: Ingredient:1007 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 4.5, - delivery_time: 2, - supplier: Supplier:101, - ingredient: Ingredient:1008 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 3.5, - delivery_time: 2, - supplier: Supplier:101, - ingredient: Ingredient:1009 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 5.5, - delivery_time: 3, - supplier: Supplier:101, - ingredient: Ingredient:1010 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 6.0, - delivery_time: 3, - supplier: Supplier:101, - ingredient: Ingredient:1011 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 5.0, - delivery_time: 3, - supplier: Supplier:101, - ingredient: Ingredient:1012 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 7.0, - delivery_time: 4, - supplier: Supplier:102, - ingredient: Ingredient:2001 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 5.0, - delivery_time: 3, - supplier: Supplier:103, - ingredient: Ingredient:3001 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 6.5, - delivery_time: 4, - supplier: Supplier:103, - ingredient: Ingredient:3002 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 7.0, - delivery_time: 4, - supplier: Supplier:103, - ingredient: Ingredient:3003 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 4.5, - delivery_time: 3, - supplier: Supplier:102, - ingredient: Ingredient:4001 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 6.0, - delivery_time: 4, - supplier: Supplier:101, - ingredient: Ingredient:5001 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 3.5, - delivery_time: 2, - supplier: Supplier:103, - ingredient: Ingredient:6408 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 2.0, - delivery_time: 2, - supplier: Supplier:101, - ingredient: Ingredient:7043 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 2.5, - delivery_time: 2, - supplier: Supplier:101, - ingredient: Ingredient:6300 -}; - -CREATE OrderContainsIngredients CONTENT { - quantity: 2, - order: Order:3001, - ingredient: Ingredient:1001 -}; - -CREATE OrderContainsIngredients CONTENT { - quantity: 3, - order: Order:3001, - ingredient: Ingredient:1002 -}; - -CREATE OrderContainsIngredients CONTENT { - quantity: 1, - order: Order:3002, - ingredient: Ingredient:1003 -}; - -CREATE OrderContainsIngredients CONTENT { - quantity: 1, - order: Order:3003, - ingredient: Ingredient:1004 -}; - -CREATE OrderContainsIngredients CONTENT { - quantity: 2, - order: Order:3004, - ingredient: Ingredient:1005 -}; - -CREATE OrderContainsIngredients CONTENT { - quantity: 1, - order: Order:3005, - ingredient: Ingredient:1006 -}; - -CREATE OrderContainsIngredients CONTENT { - quantity: 3, - order: Order:3005, - ingredient: Ingredient:1007 -}; - -CREATE OrderContainsIngredients CONTENT { - quantity: 2, - order: Order:3005, - ingredient: Ingredient:1008 -}; - -CREATE OrderContainsIngredients CONTENT { - quantity: 1, - order: Order:3005, - ingredient: Ingredient:1009 -}; - -CREATE OrderContainsIngredients CONTENT { - quantity: 2, - order: Order:3005, - ingredient: Ingredient:1010 -}; - -CREATE OrderContainsIngredients CONTENT { - quantity: 1, - order: Order:3005, - ingredient: Ingredient:1011 -}; - -CREATE OrderContainsIngredients CONTENT { - quantity: 3, - order: Order:3005, - ingredient: Ingredient:1012 -}; - CREATE RecipeContainsIngredients CONTENT { - amount: 3, + quantity: 3, recipe: Recipe:4001, ingredient: Ingredient:1001, }; CREATE RecipeContainsIngredients CONTENT { - amount: 2, + quantity: 2, recipe: Recipe:4001, ingredient: Ingredient:1002, }; CREATE RecipeContainsIngredients CONTENT { - amount: 1, + quantity: 1, recipe: Recipe:4001, ingredient: Ingredient:1003, }; CREATE RecipeContainsIngredients CONTENT { - amount: 1, + quantity: 1, recipe: Recipe:4001, ingredient: Ingredient:1004, }; CREATE RecipeContainsIngredients CONTENT { - amount: 1, + quantity: 1, recipe: Recipe:4001, ingredient: Ingredient:1005, }; CREATE RecipeContainsIngredients CONTENT { - amount: 1, + quantity: 1, recipe: Recipe:4002, ingredient: Ingredient:1003, }; CREATE RecipeContainsIngredients CONTENT { - amount: 2, + quantity: 2, recipe: Recipe:4002, ingredient: Ingredient:1004, }; CREATE RecipeContainsIngredients CONTENT { - amount: 1, + quantity: 1, recipe: Recipe:4002, ingredient: Ingredient:1005, }; CREATE RecipeContainsIngredients CONTENT { - amount: 1, + quantity: 1, recipe: Recipe:4003, ingredient: Ingredient:1002, }; CREATE RecipeContainsIngredients CONTENT { - amount: 2, + quantity: 2, recipe: Recipe:4003, ingredient: Ingredient:1004, }; CREATE RecipeContainsIngredients CONTENT { - amount: 2, + quantity: 2, recipe: Recipe:4003, ingredient: Ingredient:1005, }; CREATE RecipeContainsIngredients CONTENT { - amount: 1, + quantity: 1, recipe: Recipe:4003, ingredient: Ingredient:1006, }; CREATE RecipeContainsIngredients CONTENT { - amount: 1, + quantity: 1, recipe: Recipe:4003, ingredient: Ingredient:1007, }; CREATE RecipeContainsIngredients CONTENT { - amount: 1, + quantity: 1, recipe: Recipe:4003, ingredient: Ingredient:1008, }; CREATE RecipeContainsIngredients CONTENT { - amount: 1, + quantity: 1, recipe: Recipe:4003, ingredient: Ingredient:1009, }; CREATE RecipeContainsIngredients CONTENT { - amount: 1, + quantity: 1, recipe: Recipe:4004, ingredient: Ingredient:1003, }; CREATE RecipeContainsIngredients CONTENT { - amount: 2, + quantity: 2, recipe: Recipe:4004, ingredient: Ingredient:1007, }; CREATE RecipeContainsIngredients CONTENT { - amount: 1, + quantity: 1, recipe: Recipe:4004, ingredient: Ingredient:1010, }; CREATE RecipeContainsIngredients CONTENT { - amount: 1, + quantity: 1, recipe: Recipe:4005, ingredient: Ingredient:1005, }; CREATE RecipeContainsIngredients CONTENT { - amount: 1, + quantity: 1, recipe: Recipe:4005, ingredient: Ingredient:1006, }; CREATE RecipeContainsIngredients CONTENT { - amount: 1, + quantity: 1, recipe: Recipe:4005, ingredient: Ingredient:1007, }; CREATE RecipeContainsIngredients CONTENT { - amount: 2, + quantity: 2, recipe: Recipe:4005, ingredient: Ingredient:1008, }; CREATE RecipeContainsIngredients CONTENT { - amount: 1, + quantity: 1, recipe: Recipe:4005, ingredient: Ingredient:1009, }; CREATE RecipeContainsIngredients CONTENT { - amount: 1, + quantity: 1, recipe: Recipe:4005, ingredient: Ingredient:1011, }; CREATE RecipeContainsIngredients CONTENT { - amount: 1, + quantity: 1, recipe: Recipe:4005, ingredient: Ingredient:1012, }; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 4.0, - delivery_time: 2, - supplier: Supplier:102, - ingredient: Ingredient:3003 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 3.0, - delivery_time: 2, - supplier: Supplier:102, - ingredient: Ingredient:6408 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 5.0, - delivery_time: 3, - supplier: Supplier:102, - ingredient: Ingredient:7043 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 6.0, - delivery_time: 4, - supplier: Supplier:102, - ingredient: Ingredient:6300 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 5.0, - delivery_time: 3, - supplier: Supplier:103, - ingredient: Ingredient:4001 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 6.0, - delivery_time: 4, - supplier: Supplier:103, - ingredient: Ingredient:5001 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 7.5, - delivery_time: 4, - supplier: Supplier:103, - ingredient: Ingredient:9001 -}; - -CREATE SupplierContainsIngredients CONTENT { - delivery_cost: 4.0, - delivery_time: 3, - supplier: Supplier:101, - ingredient: Ingredient:3002 -};