Skip to content
Snippets Groups Projects
Commit 704a25ca authored by TERRU Theo's avatar TERRU Theo
Browse files

Patch

parent 4513d937
No related branches found
No related tags found
No related merge requests found
......@@ -18,8 +18,7 @@ CREATE TABLE robotise.machine (
CREATE TABLE robotise.ingredient (
id_ingredient INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
id_bec INT REFERENCES machine(id_bec),
nom_ingredient VARCHAR (50) NOT NULL,
UNIQUE id_bec
nom_ingredient VARCHAR (50) NOT NULL
);
CREATE TABLE robotise.cocktail (
......@@ -45,4 +44,4 @@ INSERT INTO robotise.ingredient (id_bec, nom_ingredient) VALUES (2, 'ananas');
INSERT INTO robotise.ingredient (id_bec, nom_ingredient) VALUES (NULL, 'cramberry');
INSERT INTO robotise.composition (id_cocktail, id_ingredient, quantite) VALUES (1, 1, 3);
INSERT INTO robotise.composition (id_cocktail, id_ingredient, quantite) VALUES (1, 2, 6);
INSERT INTO robotise.composition (id_cocktail, id_ingredient, quantite) VALUES (1, 3, 10);
\ No newline at end of file
INSERT INTO robotise.composition (id_cocktail, id_ingredient, quantite) VALUES (1, 3, 10);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment