fixed: foreignkeys
This commit is contained in:
parent
da0445ccf6
commit
af0d895227
@ -42,17 +42,17 @@ CREATE TABLE `utente`
|
|||||||
CREATE TABLE `elencoIngredienti`
|
CREATE TABLE `elencoIngredienti`
|
||||||
( /*Liste_Zutaten*/
|
( /*Liste_Zutaten*/
|
||||||
`id` int auto_increment NOT NULL PRIMARY KEY,
|
`id` int auto_increment NOT NULL PRIMARY KEY,
|
||||||
`ingredientiID` varchar(36) NOT NULL, /*ZutatenID*/
|
`ingredientiID` int NOT NULL, /*ZutatenID*/
|
||||||
`elencoID` varchar(36) NOT NULL, /*ListeID*/
|
`elencoID` int NOT NULL, /*ListeID*/
|
||||||
`follaID` varchar(36) NOT NULL, /*MengeID*/
|
`follaID` int NOT NULL, /*MengeID*/
|
||||||
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
CREATE TABLE `utenteElenco`
|
CREATE TABLE `utenteElenco`
|
||||||
( /*Benutzer_Liste*/
|
( /*Benutzer_Liste*/
|
||||||
`id` int auto_increment NOT NULL PRIMARY KEY,
|
`id` int auto_increment NOT NULL PRIMARY KEY,
|
||||||
`elencoID` varchar(36) NOT NULL, /*ListeID*/
|
`elencoID` int NOT NULL, /*ListeID*/
|
||||||
`utenteID` varchar(36) NOT NULL, /*BenutzerID*/
|
`utenteID` int NOT NULL, /*BenutzerID*/
|
||||||
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user